dhcp3-server goes into infinite loop and fill syslog when EOF unexpectedly occurs in a pool statement.

Guillaume Knispel gknispel at proformatique.com
Wed Jun 27 10:03:03 UTC 2007


Hi,
I encountered a bug in dhcp3-server 3.0.4-13 of Debian Etch, which
is also present in 3.0.4-14, and seems to also be in upstream 3.0.5
and 3.0.6rc2.

The problem is in a do {} while () loop in parse_pool_statement that
does not test for end of file conditions.

I attach a configuration file that demonstrate the problem and a
patch that fixes it, I hope without any bad side effect.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=334980
and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430772

Cheers
-- 
Guillaume KNISPEL
Proformatique - 67 rue Voltaire - 92800 Puteaux
Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70
gknispel at proformatique.com - http://www.proformatique.com/




More information about the dhcp-hackers mailing list