Skip to content
Snippets Groups Projects
Commit 12e78a08 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Gisle Vanem fixed a single-byte overflow

parent 9273096a
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ char *appendstring(char *string, /* original string */
{
int len = strlen(buffer);
if((len + *stringlen) > *stralloc) {
if((len + *stringlen) >= *stralloc) {
char *newptr= realloc(string, *stralloc*2);
if(newptr) {
string = newptr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment