cyrus-sasl/cyrus-sasl-bug587.patch
Tomáš Chvátal 8921302ca2 Accepting request 751708 from home:stroeder:branches:network
- 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
2019-11-29 09:49:12 +00:00

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;