15 lines
519 B
Text
15 lines
519 B
Text
$NetBSD: patch-CVE-2019-19906,v 1.1 2020/05/14 14:27:32 nia Exp $
|
|
|
|
https://github.com/cyrusimap/cyrus-sasl/commit/dcc9f51cbd4ed622cfb0f9b1c141eb2ffe3b12f1.patch
|
|
|
|
--- lib/common.c.orig 2018-01-19 14:13:40.000000000 +0000
|
|
+++ lib/common.c
|
|
@@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t
|
|
|
|
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;
|
|
|