Fix buffer overrun from commit 4420c78beb

The newly handled ^ needs to be accounted for when allocating memory.
Found when testing #1936, goes to show what a useful thing that is.
This commit is contained in:
Panu Matilainen 2022-09-06 13:15:44 +03:00
parent 0f0fa49170
commit 19d73f6788
1 changed files with 1 additions and 0 deletions

View File

@ -1107,6 +1107,7 @@ static char * mireDup(rpmTagVal tag, rpmMireMode *modep,
case '.':
case '+':
case '*':
case '^':
if (!brackets) nb++;
break;
case '\\':