mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Cut down on Claude's excesses
This commit is contained in:
1 parent
6929a0d9ae
commit
a3bf3c7153
2 files changed
+5
-8
No files matched your search
+1
-3
@@ -154,9 +154,7 @@ bool ReplayExecuteBlob(int version, const std::vector<uint8_t> &data) {
|
||||
|
||||
if ((int)item.info.action & (int)ReplayAction::MASK_SIDEDATA) {
|
||||
// Subtraction-based check (rather than i + item.info.size > sz) avoids
|
||||
// wraparound on platforms where size_t is 32-bit, where a large enough
|
||||
// item.info.size could otherwise make the addition overflow and wrap
|
||||
// below sz, defeating this bounds check before the memcpy below.
|
||||
// wraparound on platforms where size_t is 32-bit. Bound checking because memcpy.
|
||||
if (item.info.size > sz - i) {
|
||||
ERROR_LOG(Log::System, "Truncated replay data at %lld during side data", (long long)i);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user