]> git.ipfire.org Git - thirdparty/curl.git/commit
Curl_urldecode: don't allow NULL as receiver
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Feb 2014 22:57:40 +0000 (23:57 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Feb 2014 22:57:40 +0000 (23:57 +0100)
commitd3d871cb4fe1512b689bb29cb49473cfcf91c684
treef90fa28a5afb4fc404a2385677eb5301ee1fcccd
parentdb981b7b30c8ed35ebdeab198fdf52afd8f49433
Curl_urldecode: don't allow NULL as receiver

For a function that returns a decoded version of a string, it seems
really strange to allow a NULL pointer to get passed in which then
prevents the decoded data from being returned!

This functionality was not documented anywhere either.

If anyone would use it that way, that memory would've been leaked.

Bug: https://github.com/bagder/curl/pull/90
Reported-by: Arvid Norberg
lib/escape.c