Merge pull request #3263 from datauwu/bsdtar-fix-oob-read
bsdtar: fix 1-byte OOB read in substitution handling
This commit is contained in:
1 file changed
+2
@@ -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 '\\':
|
||||
|
||||
Reference in new issue
Block a user