This commit is contained in:
Michael Messner
2026-10-09 11:50:59 +02:00
parent 20b144e80a
commit bbcedcc623
2 changed files with 6 additions and 3 deletions
@@ -1,2 +1 @@
SERVER: AsusWRT/3.0.0.4 UPnP/1.1 MiniUPnPd/1.9
SERVER: AsusWRT/3.0.0.4 UPnP/1.1 MiniUPnPd/1.9
@@ -109,7 +109,9 @@ bvi_raw_grep_identifier() {
# * the optional outer ' quoting is removed
# * multi_grep identifiers are split on the AND marker
# * the per fragment " quoting is removed
# * ^ and $ are dropped, the corpus holds a context window around the match
# * only a leading ^ and a trailing $ are dropped, the corpus holds a context
# window around the match - a blanket removal of ^ and $ would corrupt
# escaped literals like \$Revision and leave an invalid ERE
bvi_normalize_identifier() {
local lRAW_IDENTIFIER="${1:-}"
@@ -120,7 +122,9 @@ bvi_normalize_identifier() {
local lIDENTIFIER_FRAGMENT=""
while IFS= read -r lIDENTIFIER_FRAGMENT; do
lIDENTIFIER_FRAGMENT="${lIDENTIFIER_FRAGMENT//\"/}"
lIDENTIFIER_FRAGMENT="${lIDENTIFIER_FRAGMENT//[\^\$]/}"
# keep this in sync with create_minimal_binary_corpus in S09
lIDENTIFIER_FRAGMENT="${lIDENTIFIER_FRAGMENT%$}"
lIDENTIFIER_FRAGMENT="${lIDENTIFIER_FRAGMENT#^}"
[[ -z "${lIDENTIFIER_FRAGMENT}" ]] && continue
printf '%s\n' "${lIDENTIFIER_FRAGMENT}"
done < <(printf '%s\n' "${lIDENTIFIER_FULL//AND/$'\n'}")