Add fail-safe for invalid RPN commands in bad object files

This commit is contained in:
Rangi
2026-07-07 17:02:46 -04:00
parent 08e83601f5
commit 30fd4514dc
+5
View File
@@ -456,6 +456,11 @@ static int32_t computeRPNExpr(Patch const &patch, std::vector<Symbol> const &fil
}
break;
}
// LCOV_EXCL_START
default:
fatalAt(patch, "Invalid RPN command $%02x", static_cast<uint32_t>(command));
// LCOV_EXCL_STOP
}
pushRPN(value, isError);