busybox 1.13.x, 1.14.x (possibly 1.15.x) - incorrect whitespace handling in netmask

Denys Vlasenko vda.linux at googlemail.com
Fri Oct 16 21:58:14 UTC 2009


On Friday 16 October 2009 11:05, Maciek Borzecki wrote:
> There's an issue with 1.13.x and 1.14.x version wrt. whitespace
> handling in netmask entry in /etc/network/interfaces. If there is more
> than single whitespace between netmask and address the
> count_netmask_bits will return bogs value (uint32_t)-1. This will
> result in ip complaining about netmask and spitting out the following
> line:
> Error: an inet prefix is expected rather than "10.10.17.99/4294967295"
> 
> Looking at the code the issue should still be valid in 1.15.x. The
> patch was submitted to debian bug report here:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503230
> Indeed, the patch seems to fix the issue. It might be reasonable to merge it.

By doing this fix in a different place, we maybe covering more cases.
Please test attached patch.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3.patch
Type: text/x-diff
Size: 698 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091016/d70887d8/attachment.bin>


More information about the busybox mailing list