Date: Sun, 2 Mar 2008 07:01:01 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/ar write.c Message-ID: <200803020701.m227115K036541@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kaiw 2008-03-02 07:01:01 UTC FreeBSD src repository Modified files: usr.bin/ar write.c Log: - Do not malloc buffer for 0-size member when reading from archive. - Fix a malloc buffer overrun: Use a while loop to check whether the string buffer is big enough after resizing, since doubling once might not be enough when a very long member name or symbol name is provided. - Fix typo. Reported by: Michael Plass <mfp49_freebsd@plass-family.net> Tested by: Michael Plass <mfp49_freebsd@plass-family.net> Reviewed by: jkoshy Approved by: jkoshy Revision Changes Path 1.4 +17 -11 src/usr.bin/ar/write.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803020701.m227115K036541>