cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curlrc parsing

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 23 Jan 2004 17:30:02 +0100

"Daniel Stenberg" <daniel-curl_at_haxx.se> said:

> Since isspace(newline) will return true, this will pass the newline... Won't
> this (simpler) patch fix this problem for you?

No, it's still parsing out-of-bounds because of "*line++ = 0;".
The string from my_get_line() in my case was "--netrc-optional\0".
If there's a trailing newline it becomes "--netrc-optional\0\0" so the
parser doesn't step out-of-bounds.

--gv

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-26