curl-users
Re: seg fault with config file in DOS mode, and an extra newline
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Oct 2002 19:40:28 +0200 (MET DST)
Date: Fri, 11 Oct 2002 19:40:28 +0200 (MET DST)
On Fri, 11 Oct 2002, Roth, Kevin P. wrote:
> I can easily reproduce the following segmentation fault
It's funny how one single byte can make a big difference! This fix removed
the problem for me. This problem has been present undiscovered since November
2000 (introduced in curl 7.5)!
diff -u -r1.147 main.c
--- src/main.c 23 Sep 2002 13:22:47 -0000 1.147
+++ src/main.c 11 Oct 2002 17:36:13 -0000
@@ -1774,7 +1774,7 @@
case '\n':
case '*':
case '\0':
- free(line);
+ free(aline);
continue;
}
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-10-11