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

off-by-one for the case when it adds /? and a terminating zero to the URL

parent b8fad99f
No related branches found
No related tags found
No related merge requests found
......@@ -3738,7 +3738,7 @@ operate(struct Configurable *config, int argc, char *argv[])
/*
* Then append ? followed by the get fields to the url.
*/
urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 2);
urlbuffer=(char *)malloc(strlen(url) + strlen(httpgetfields) + 3);
if(!urlbuffer) {
helpf("out of memory\n");
return CURLE_OUT_OF_MEMORY;
......
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