mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-04 04:48:38 +00:00
Add fail-safe for invalid RPN commands in bad object files
This commit is contained in:
@@ -456,6 +456,11 @@ static int32_t computeRPNExpr(Patch const &patch, std::vector<Symbol> const &fil
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LCOV_EXCL_START
|
||||||
|
default:
|
||||||
|
fatalAt(patch, "Invalid RPN command $%02x", static_cast<uint32_t>(command));
|
||||||
|
// LCOV_EXCL_STOP
|
||||||
}
|
}
|
||||||
|
|
||||||
pushRPN(value, isError);
|
pushRPN(value, isError);
|
||||||
|
|||||||
Reference in New Issue
Block a user