You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by GitBox <gi...@apache.org> on 2019/11/14 16:30:02 UTC

[GitHub] [qpid-dispatch] ganeshmurthy commented on a change in pull request #619: DISPATCH-1480: properly settle messages received by the edge address …

ganeshmurthy commented on a change in pull request #619: DISPATCH-1480: properly settle messages received by the edge address …
URL: https://github.com/apache/qpid-dispatch/pull/619#discussion_r346416345
 
 

 ##########
 File path: src/router_core/modules/edge_router/addr_proxy.c
 ##########
 @@ -460,8 +461,14 @@ static void on_transfer(void           *link_context,
 
         qd_parse_free(body);
         qd_iterator_free(iter);
+    } else {
+        qd_log(ap->core->log, QD_LOG_WARNING,
+               "Edge Address Proxy: received an invalid message body, rejecting");
+        dispo = PN_REJECTED;
     }
 
+    qdrc_endpoint_settle_CT(ap->core, dlv, dispo);
 
 Review comment:
   Did Address Sanitizer find this bug during run time presumably when the addr_proxy's on_transfer() received an invalid message body? In other words, was an invalid message body sent to this function? If yes, in addition to this fix, should the caller also be fixed to send a valid message?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org