This commit is contained in:
Meisam Bahadori 2026-07-26 19:02:09 +02:00 committed by Holger Vogt
parent 19a8e10dc7
commit 31769b7e95
1 changed files with 10 additions and 0 deletions

View File

@ -187,6 +187,16 @@ INPgetNetTok(char **line, char **token, int gobble)
break;
if (*point == ',')
break;
/* '(' must terminate a token here, matching the leading-garbage
skip above (which already treats a leading '(' as a boundary)
and matching INPgetTok(). Without this, a token immediately
followed by '(' with no space -- e.g. an OSDI .model card's
`modname devtype(p1=v1 p2=v2)`, no space before '(' -- gets
misparsed as one token spanning into the parameter list,
swallowing the opening paren and the first parameter's name
together, silently dropping that parameter's value. */
if (*point == '(')
break;
if (*point == ')')
break;
}