off-by-one bug in inet_network in uclibc-0.9.29

Mike Frysinger vapier at gentoo.org
Sat Sep 15 01:15:06 PDT 2007


On Saturday 16 June 2007, Natanael Copa wrote:
> propolice caught an off-by-one bug in inet_network()

ugh ... looks like the test had been failing but due to a bug in the version 
we pulled from glibc, it didnt actually exit non-zero ...

> While i was there, I inhanced the test a bit so it catches things like
> 1.1.1.257
>
> Alternative would be to use this implementation:
> http://lists.freebsd.org/pipermail/freebsd-bugs/2006-February/016870.html
>
> I tested it, it is actually smaller than uclibc uses now, and it does a
> better job.

indeed ... rejects more things than glibc and is smaller, me likes :)

merged !
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://busybox.net/lists/uclibc/attachments/20070915/8cf6f88d/attachment.pgp 


More information about the uClibc mailing list