The current p5-IO-Interface code does an incorrect pointer usage, basically: getifaddrs(&ifap); while (1) { (some handling) ifap = ifap -> ifa_next; <-- 1) } freeifaddrs(ifap); <-- The freeifaddrs() will be passed with a potentionally different pointer because of 1). Fix: The proposed changeset saves the ifap pointer and call freeifaddrs() with the saved one to avoid this problem. How-To-Repeat: Call the function on latest -CURRENT.
Responsible Changed From-To: freebsd-ports-bugs->perl Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed with approval from swills@ via IRC.
Responsible Changed From-To: perl->delphij Take.
delphij 2012-05-15 20:48:06 UTC FreeBSD ports repository Modified files: net/p5-IO-Interface Makefile Added files: net/p5-IO-Interface/files patch-Interface.xs Log: Fix an incorrect pointer usage and pass the right pointer to freeifaddrs(), which would cause a free() inside allocated chunk. Without this change, the class could crash with jemalloc debugging options enabled. The patch have also been submitted to upstream maintainer. Reported by: lev Submitted by: delphij PR: ports/167938 Approved by: perl@ (swills) Revision Changes Path 1.13 +1 -0 ports/net/p5-IO-Interface/Makefile 1.1 +27 -0 ports/net/p5-IO-Interface/files/patch-Interface.xs (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"