cvs commit: src/lib/libarchive archive_read_support_format_tar.c
archive_read_support_format_zip.c
archive_string.c archive_string_sprintf.c archive_write_disk.c
Tim Kientzle
kientzle at FreeBSD.org
Sun Jul 15 19:14:00 UTC 2007
kientzle 2007-07-15 19:13:59 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive_read_support_format_tar.c
archive_read_support_format_zip.c
archive_string.c archive_string_sprintf.c
archive_write_disk.c
Log:
archive_string_ensure() used to call exit(3) if it
couldn't allocate more memory for a string. Change
this so it returns NULL in that case, and update
all of its callers to handle the error. Some of
those callers can now return errors back to the
client instead of calling exit(3).
Approved by: re (bmah)
Revision Changes Path
1.60 +12 -2 src/lib/libarchive/archive_read_support_format_tar.c
1.14 +2 -1 src/lib/libarchive/archive_read_support_format_zip.c
1.11 +6 -5 src/lib/libarchive/archive_string.c
1.9 +3 -1 src/lib/libarchive/archive_string_sprintf.c
1.13 +4 -1 src/lib/libarchive/archive_write_disk.c
More information about the cvs-src
mailing list