forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michal Vasilek <[email protected]>
- Loading branch information
1 parent
e965229
commit f7717bd
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
From dcc9f51cbd4ed622cfb0f9b1c141eb2ffe3b12f1 Mon Sep 17 00:00:00 2001 | ||
From: Quanah Gibson-Mount <[email protected]> | ||
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(-) | ||
|
||
--- a/lib/common.c | ||
+++ b/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; | ||
|