Stanislav Sedov 6760b335c6 - Prevent buffer overflow in IPFilter's load_http function used to load
ipfilter tables via http by the user-level ippool utility. Previously
  the 1024-byte buffer used to store a http request coudld easily overflow
  if the length of the hostname part of the url passes exceeded 496 bytes. [1]
- Use snprintf to prevent possieble buffer overflows in future. [2]
- Do not try to close the descriptor twice on failure. [2]

Reported by:	Maksymilian Arciemowicz <cxib@securityreason.com> [1]
Obtained from:	NetBSD CVS [2]
MFC after:	2 weeks
2009-05-29 16:24:23 +00:00
..
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-10-18 21:42:51 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-10-18 21:42:51 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-10-18 21:42:51 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00
2007-06-04 02:54:36 +00:00