aboutsummaryrefslogtreecommitdiff
path: root/contrib/libarchive/test_utils
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2019-12-31 00:05:06 +0000
committerMartin Matuska <mm@FreeBSD.org>2019-12-31 00:05:06 +0000
commit79085fd3b922771b329bc3d218b6d52daab8a9a4 (patch)
tree0be388c5a494e0a83ddf62335683817eb15a27d0 /contrib/libarchive/test_utils
parent140da6f8feffc58c77f66c9fca487b74ede0afa5 (diff)
parent6922acad9a482c17c7af1acdb4d11d03f19bb1dc (diff)
MFV r356163,r356197:
Update libarchive to 3.4.1 Relevant vendor changes since last update: Issue #351: Refactor and implement private state logic for write filters PR #1252: RAR5 reader - verify window size for solid files (OSS-Fuzz 15482) PR #1255: zip writer - don't append unused NUL for directories PR #1260: Fix sparse file offset overflow on 32-bit systems PR #1263: UNICODE filename support for reading lha/lzh format Issue #1276: Bugfix and optimize archive_wstring_append_from_mbs() PR #1288: Add the "xattrhdr" option to pax write options PR #1295: 7z reader - fix reading archives with digests in PackInfo PR #1296: RAR5 reader - verify window size for multivolume archives PR #1297: ZIP reader - support LZMA_STREAM_END marker in 'lzma alone' files Issue #1298: Fix a heap-buffer-overflow in archive_string_append_from_wcs() OSS-Fuzz 19360, 19362: LHA reader - plug two memory leaks on error Fix possible off-by-one when dealing with readlink(2) MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=356212
Diffstat (limited to 'contrib/libarchive/test_utils')
-rw-r--r--contrib/libarchive/test_utils/test_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libarchive/test_utils/test_main.c b/contrib/libarchive/test_utils/test_main.c
index 1b9af9a9c37b..1b44edf171d9 100644
--- a/contrib/libarchive/test_utils/test_main.c
+++ b/contrib/libarchive/test_utils/test_main.c
@@ -1863,7 +1863,7 @@ is_symlink(const char *file, int line,
return (0);
if (contents == NULL)
return (1);
- linklen = readlink(pathname, buff, sizeof(buff));
+ linklen = readlink(pathname, buff, sizeof(buff) - 1);
if (linklen < 0) {
failure_start(file, line, "Can't read symlink %s", pathname);
failure_finish(NULL);