mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix buffer overrun
This commit is contained in:
parent
36822d6eef
commit
1536c24331
1 changed files with 1 additions and 1 deletions
|
@ -3045,7 +3045,7 @@ unfold(const unsigned char *src, const unsigned char *end, BOOL *folded)
|
|||
*/
|
||||
if (tmp > src)
|
||||
{
|
||||
unsigned char buf[tmp - src];
|
||||
unsigned char buf[tmp - src + 1];
|
||||
unsigned char *ptr;
|
||||
|
||||
ptr = decodeWord(buf, src, tmp, encoding);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue