[BACK]Return to patch-CVE-2019-19906 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / security / cyrus-sasl / patches

File: [cvs.NetBSD.org] / pkgsrc / security / cyrus-sasl / patches / Attic / patch-CVE-2019-19906 (download)

Revision 1.1, Thu May 14 14:27:32 2020 UTC (2 years, 8 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Branch point for: pkgsrc-2020Q1

cyrus-sasl: Fix CVE-2019-19906

$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;