synth: Put in missing bounds check for `-lut`

This commit is contained in:
Martin Povišer 2024-02-22 17:22:56 +01:00
parent d5934357f3
commit d77b792156
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ struct SynthPass : public ScriptPass {
flatten = true; flatten = true;
continue; continue;
} }
if (args[argidx] == "-lut") { if (args[argidx] == "-lut" && argidx + 1 < args.size()) {
lut = atoi(args[++argidx].c_str()); lut = atoi(args[++argidx].c_str());
continue; continue;
} }