Skip to content

Commit

Permalink
Fix #587
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 committed Feb 18, 2020
1 parent a7b92c8 commit 332b8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.c
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 332b8c5

Please sign in to comment.