cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Patrick: Diff for /curl/lib/url.c between version 1.656 and 1.657

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Wed, 17 Oct 2007 20:35:13 +0200

 

> Is this
http://cool.haxx.se/cvs.cgi/curl/lib/url.c.diff?r1=1.660&r2=1.661
OK for you ?

If types are of equal size, then negative values of postfieldsize are
accepted: the sign bit is turned into the unsigned MSB of the malloc
parameter ;-)
Maybe that is what you want. Else you should test for < 0 even when size
is equal ...

Hey! covering all cases is not so simple as it first appears, is'nt it
!!!
Received on 2007-10-17