[reSIProcate] ParseBuffer::integer() does not parse negative integers

Byron Campen bcampen at estacado.net
Wed May 5 14:23:13 CDT 2010


	Wow, testParseBuffer isn't even in runtests.sh. No wonder we never noticed this...

Best regards,
Byron Campen

> Hi.
> 
> The functionality was broken by r6512 of /main/rutil/ParseBuffer.cxx
> 
> The following condition is always true, for it is expanded to
> (0 > negative number) for the first digit.
> 
>      if(signum*last > signum*num)
>      {
>         fail(__FILE__, __LINE__,"Overflow detected.");
>      }
> 
> -- 
> ...Bye..Dmitry.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2482 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20100505/4d945c88/attachment.bin>


More information about the resiprocate-devel mailing list