]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix bsdtar zero-length pattern issue. 2787/head
authorARJANEN Loïc Jean David <ljd@luigiscorner.mu>
Fri, 14 Nov 2025 19:34:48 +0000 (20:34 +0100)
committerARJANEN Loïc Jean David <ljd@luigiscorner.mu>
Thu, 20 Nov 2025 23:44:38 +0000 (00:44 +0100)
commit3150539edb18690c2c5f81c37fd2d3a35c69ace5
tree4de111b5278df37d11a595ebc2faa764adb23fad
parent8dbb3b4d54213f988fce77c7fa7eaf63249cdbb5
Fix bsdtar zero-length pattern issue.

Uses the sed-like way (and Java-like, and .Net-like, and Javascript-like…) to fix this issue of advancing the string to be processed by one if the match is zero-length.

Fixes libarchive/libarchive#2725 and solves libarchive/libarchive#2438.
tar/subst.c
tar/test/test_option_s.c