Merge pull request #3263 from datauwu/bsdtar-fix-oob-read

bsdtar: fix 1-byte OOB read in substitution handling
This commit is contained in:
Dustin L. Howett authored and GitHub committed 2026-07-07 09:24:58 -05:00
commit 108381c805
1 file changed
+2
+2
View File
@@ -264,6 +264,8 @@ apply_substitution(struct bsdtar *bsdtar, const char *name, char **result,
++i;
c = rule->result[i];
if (c == '\0')
break;
switch (c) {
case '~':
case '\\':