1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-13 14:40:22 +00:00
freebsd/usr.bin/ar
Kai Wang 517dbe2e45 - 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
2008-03-02 07:01:01 +00:00
..
ar.1
ar.c Since the program is installed as 'bsdranlib', we need to 2008-02-24 18:07:46 +00:00
ar.h
Makefile Make again BSD ar(1) the default system ar(1), now properly handling 2008-02-25 16:16:17 +00:00
read.c
util.c
write.c - Do not malloc buffer for 0-size member when reading from archive. 2008-03-02 07:01:01 +00:00