You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
661 B

  1. From dcc9f51cbd4ed622cfb0f9b1c141eb2ffe3b12f1 Mon Sep 17 00:00:00 2001
  2. From: Quanah Gibson-Mount <quanah@symas.com>
  3. Date: Tue, 18 Feb 2020 19:05:12 +0000
  4. Subject: [PATCH] Fix #587
  5. Off by one error in common.c, CVE-2019-19906.
  6. Thanks to Stephan Zeisberg for reporting
  7. ---
  8. lib/common.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. --- a/lib/common.c
  11. +++ b/lib/common.c
  12. @@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t
  13. if (add==NULL) add = "(null)";
  14. - addlen=strlen(add); /* only compute once */
  15. + addlen=strlen(add)+1; /* only compute once */
  16. if (_buf_alloc(out, alloclen, (*outlen)+addlen)!=SASL_OK)
  17. return SASL_NOMEM;