forked from pool/cyrus-sasl
8921302ca2
- added backport-patch cyrus-sasl-bug587.patch which fixes off-by-one error in _sasl_add_string function (see https://github.com/cyrusimap/cyrus-sasl/issues/587) - added backport-patch cyrus-sasl-bug587.patch which fixes off-by-one error in _sasl_add_string function (see https://github.com/cyrusimap/cyrus-sasl/issues/587) OBS-URL: https://build.opensuse.org/request/show/751708 OBS-URL: https://build.opensuse.org/package/show/network/cyrus-sasl?expand=0&rev=77
11 lines
386 B
Diff
11 lines
386 B
Diff
--- cyrus-sasl-2.1.27.orig/lib/common.c 2018-11-08 18:29:57.000000000 +0100
|
|
+++ cyrus-sasl-2.1.27/lib/common.c 2019-11-28 21:15:11.246656079 +0100
|
|
@@ -190,7 +190,7 @@
|
|
|
|
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;
|