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: Tor Arntsen <tor_at_spacetec.no>
Date: Tue, 16 Oct 2007 17:42:55 +0200

On 10/16/07, Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch> wrote:
>
> > The attached patch addresses the size_t overflow you're performing
> with less compiler warnings. Is this patch ok for you ?
>
> I don't think so: some systems may define size_t as signed: in that
> case, your cast will have sign bit set :-(

I thought size_t was always unsigned? It seems to be on the systems I
use (aix/linux/solaris/irix). For signed there's ssize_t.

-Tor
Received on 2007-10-16