Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Off by one error in common.c, CVE-2019-19906.

Thanks to Stephan Zeisberg for reporting
  • Loading branch information
quanah authored and aiobofh committed Mar 4, 2020
1 parent 0d7aeb1 commit b0bf594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t *alloclen,

if (add==NULL) add = "(null)";

addlen=strlen(add); /* only compute once */
addlen=strlen(add)+1; /* only compute once */
if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
return SASL_NOMEM;

Expand Down

0 comments on commit b0bf594

Please sign in to comment.