diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2020-04-18 02:04:17 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2020-04-18 02:04:17 +0000 |
commit | 9b25385882dc8558163704c20233473585d1e5b9 (patch) | |
tree | 7096d1efeeeb8dfcf552a0d49d48757265813bdf /user/cyrus-sasl/CVE-2019-19906.patch | |
parent | 5959188441f553615cc38463766d420730676ad2 (diff) | |
parent | 6cc457e46d466f401c524303f2519fa89d4b5dbc (diff) | |
download | packages-9b25385882dc8558163704c20233473585d1e5b9.tar.gz packages-9b25385882dc8558163704c20233473585d1e5b9.tar.bz2 packages-9b25385882dc8558163704c20233473585d1e5b9.tar.xz packages-9b25385882dc8558163704c20233473585d1e5b9.zip |
Merge branch 'sec/2020.04.06' into 'master'
Security updates for 2020.04.06
See merge request adelie/packages!427
Diffstat (limited to 'user/cyrus-sasl/CVE-2019-19906.patch')
-rw-r--r-- | user/cyrus-sasl/CVE-2019-19906.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/user/cyrus-sasl/CVE-2019-19906.patch b/user/cyrus-sasl/CVE-2019-19906.patch new file mode 100644 index 000000000..acdf68243 --- /dev/null +++ b/user/cyrus-sasl/CVE-2019-19906.patch @@ -0,0 +1,25 @@ +From dcc9f51cbd4ed622cfb0f9b1c141eb2ffe3b12f1 Mon Sep 17 00:00:00 2001 +From: Quanah Gibson-Mount <quanah@symas.com> +Date: Tue, 18 Feb 2020 19:05:12 +0000 +Subject: [PATCH] Fix #587 + +Off by one error in common.c, CVE-2019-19906. + +Thanks to Stephan Zeisberg for reporting +--- + lib/common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/common.c b/lib/common.c +index bc3bf1df..9969d6aa 100644 +--- a/lib/common.c ++++ b/lib/common.c +@@ -190,7 +190,7 @@ int _sasl_add_string(char **out, size_t *alloclen, + + 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; + |