aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-10-02 18:30:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2020-10-02 18:30:53 +0200
commit16e82c61d4db91e2e888600cdee7cf656ba4774c (patch)
treebb3de36e15da98eed3a706bb0829327030359c63 /archival
parenta90a54aead2a082f9bc4d44fd48d1042bcd2c3fb (diff)
downloadbusybox-w32-16e82c61d4db91e2e888600cdee7cf656ba4774c.tar.gz
busybox-w32-16e82c61d4db91e2e888600cdee7cf656ba4774c.tar.bz2
busybox-w32-16e82c61d4db91e2e888600cdee7cf656ba4774c.zip
tar: fix fallout of last_char_is(NULL) no longer being allowed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival')
-rw-r--r--archival/libarchive/get_header_tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libarchive/get_header_tar.c b/archival/libarchive/get_header_tar.c
index b3131ff2d..2ab3c04b8 100644
--- a/archival/libarchive/get_header_tar.c
+++ b/archival/libarchive/get_header_tar.c
@@ -352,7 +352,7 @@ char FAST_FUNC get_header_tar(archive_handle_t *archive_handle)
352 /* case 0: */ 352 /* case 0: */
353 case '0': 353 case '0':
354#if ENABLE_FEATURE_TAR_OLDGNU_COMPATIBILITY 354#if ENABLE_FEATURE_TAR_OLDGNU_COMPATIBILITY
355 if (last_char_is(file_header->name, '/')) { 355 if (file_header->name && last_char_is(file_header->name, '/')) {
356 goto set_dir; 356 goto set_dir;
357 } 357 }
358#endif 358#endif