[
https://issues.apache.org/jira/browse/PROTON-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15799155#comment-15799155
]
ASF subversion and git services commented on PROTON-1380:
---------------------------------------------------------
Commit 440131e0efabc14df338125b6df0b0e88527614e in qpid-proton's branch
refs/heads/master from [~astitcher]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;h=440131e ]
PROTON-1380: Avoid freeing strings we pass to cyrus before cyrus finishes using
them.
> Cyrus SASL accesses strings that have been freed
> ------------------------------------------------
>
> Key: PROTON-1380
> URL: https://issues.apache.org/jira/browse/PROTON-1380
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.16.0
> Reporter: Ted Ross
> Assignee: Andrew Stitcher
> Priority: Blocker
>
> If a proton-c user calls pn_sasl_config_name or pn_sasl_config_path, the
> literal defaults are replaced with allocated duplicates of the supplied name
> or path. When the user's transport is eventually freed, these allocated
> strings are also freed (in pn_sasl_free).
> Cyrus SASL retains a global pointer to this freed string and references it
> the next time a transport is created. Since the SASL initialization only
> occurs once per process, the strings are not refreshed and the SASL library
> continues to refer to the freed string.
> There does not appear to be a workaround available for this issue.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]