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

Byron Campen bcampen at estacado.net
Wed May 5 14:05:59 CDT 2010


	Yeah, looks like this should work if the sign multiplication is just removed. I'll add a test.

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/51be2f42/attachment.bin>


More information about the resiprocate-devel mailing list