[cups.bugs] Re: [LOW] STR #1769: nnn.* style causes a error

Michael Sweet mike at easysw.com
Thu Jun 15 13:10:08 PDT 2006


[STR Closed w/Resolution]

OK, the problem is that glibc's sscanf() is filling unassigned values with
garbage - they have been initialized to 0 prior to the sscanf call in
get_addr_and_mask, but after the call "ipcount" is 3 and ip[3] contains
garbage!

Anyways, attached is a patch that works around this and adds a little
extra validation for the IP values for good measure...

Link: http://www.cups.org/str.php?L1769
Version: 1.2-current
Fix Version: 1.3-current (r5660)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: str1769.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20060615/81bb4c6d/attachment.ksh>


More information about the cups mailing list