From: Yang Tse Date: Thu, 11 Jul 2013 11:29:48 +0000 (+0200) Subject: url.c: fix SIGSEGV X-Git-Tag: curl-7_32_0~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b16b7f9d3a139cc7665208e4d19e4f90287f1e8a;p=thirdparty%2Fcurl.git url.c: fix SIGSEGV --- diff --git a/lib/url.c b/lib/url.c index 6ecf7b53b8..a9760631d6 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3858,6 +3858,8 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data, else { /* sanitise paths and remove ../ and ./ sequences according to RFC3986 */ char *newp = Curl_dedotdotify(path); + if(!newp) + return CURLE_OUT_OF_MEMORY; if(strcmp(newp, path)) { rebuild_url = TRUE;