[
https://issues.apache.org/jira/browse/DISPATCH-2199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17382333#comment-17382333
]
ASF subversion and git services commented on DISPATCH-2199:
-----------------------------------------------------------
Commit 2b34a1687911d89225d87a63786862dac9f57992 in qpid-dispatch's branch
refs/heads/main from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=2b34a16 ]
DISPATCH-2199: Container link handlers to use qd_alloc safe_ptr functions
* use qd_alloc_deref_safe_ptr in cleanup_link
* use qd_alloc_set_safe_ptr in qd_link_set_incoming_msg
This closes #1300
> Cleanup_link code in container.c does not use safe_ptr properly
> ---------------------------------------------------------------
>
> Key: DISPATCH-2199
> URL: https://issues.apache.org/jira/browse/DISPATCH-2199
> Project: Qpid Dispatch
> Issue Type: Test
> Components: Router Node
> Affects Versions: 1.16.1
> Reporter: Charles E. Rolke
> Assignee: Charles E. Rolke
> Priority: Major
> Fix For: 1.17.0
>
>
> This code manually performs the function of public interface
> qd_alloc_deref_safe_ptr() .
> {code:java}
> // cleanup any inbound message that has not been forwarded
> qd_message_t *msg = link->incoming_msg.ptr;
> if (msg && qd_alloc_sequence(msg) == link->incoming_msg.seq)
> qd_message_free(msg);
> {code}
> Modifications to qd_alloc_deref_safe_ptr are not applied to this code block
> and will spoil research efforts.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]