Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
CURL_MAX_INPUT_LENGTH: largest acceptable string input size #3805
This limits all accepted input strings passed to libcurl to be less than
The 1000000 number is arbitrary picked and is meant to detect mistakes
NOTE_ This does not apply to
Adds test 1559 that verifies the functionality.
This limits all accepted input strings passed to libcurl to be less than CURL_MAX_INPUT_LENGTH (1000000) bytes, for these API calls: curl_easy_setopt() and curl_url_set(). The 1000000 number is arbitrary picked and is meant to detect mistakes or abuse, not to limit actual practical use cases. By limiting the acceptable string lengths we also reduce the risk of integer overflows all over. NOTE_ This does not apply to `CURLOPT_POSTFIELDS`.