FEXCore: Avoid potential OOB reads, and flag clobbers in ValidateCode

An instruction could be on the edge of a page and less than 16 bytes
long.
This commit is contained in:
Billy Laws committed 2025-09-02 22:41:59 +01:00
1 parent b98acdf97a
commit 20fcbb9c62
4 files changed
+52 -45

No files matched your search

+4
View File
@@ -274,6 +274,10 @@ static void PrintArg(fextl::stringstream* out, const IRListView*, FEXCore::IR::B
}
}
static void PrintArg(fextl::stringstream* out, const IRListView*, const std::array<uint8_t, 0x10>& Arg) {
*out << fextl::fmt::format("{:02x}", fmt::join(Arg, ""));
}
void Dump(fextl::stringstream* out, const IRListView* IR) {
auto HeaderOp = IR->GetHeader();