mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:17:16 +03:00
off-by-one for the case when it adds /? and a terminating zero to the URL
This commit is contained in:
parent
b8fad99f09
commit
1282aad4a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue