]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add null check to string in archive_pathmatch 1488/head
authorOliver Ford <ojford@gmail.com>
Wed, 27 Jan 2021 14:39:42 +0000 (14:39 +0000)
committerOliver Ford <ojford@gmail.com>
Wed, 27 Jan 2021 14:39:42 +0000 (14:39 +0000)
commit9ce2234954f20d06c7843db65f288219481bd2b4
tree5245aa32489dfec28919b8fa2ed3d3fa19190a3d
parent858fa8eaa9435340d2bda988715e0d9023089bec
Add null check to string in archive_pathmatch

Adds a null check for the string parameter in archive_pathmatch
and archive_pathmatch_w to prevent a null pointer dereference.

Reported in github issue #1483.
libarchive/archive_pathmatch.c
libarchive/test/test_archive_pathmatch.c