qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitcher <...@git.apache.org>
Subject [GitHub] qpid-proton pull request #:
Date Sun, 12 Nov 2017 00:06:00 GMT
Github user astitcher commented on the pull request:

    i can see why you might think the way you do. But actually this is not correct.
    You are assuming that the final string needs to be zero terminated, but this is incorrect.
This code copies the user name from an incoming zero terminated string, and puts it into a
SASL ANONYMOUS frame without it being terminated. This frame does not use zero terminated
    Also note that the original fix was doubly incorrect as it was strlen(username+1) *with
the +1 inside the strlen* this actually allocates 2 characters too few from the point of view
of your comment.


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

View raw message