sim: igen: fix hang when decoding boolean rule constants

The parser for boolean rules fails to skip over the , separator in
the options which makes it hang forever.  No dc files in the tree
use boolean rules atm which is why no one noticed.
This commit is contained in:
Mike Frysinger 2022-11-11 01:35:42 +07:00
parent 16cceb84be
commit ef7c5fd15d

View File

@ -131,6 +131,8 @@ load_decode_table (const char *file_name)
break;
}
chp = skip_to_separator (chp, ",");
if (*chp == ',')
++chp;
chp = skip_spaces (chp);
}
}