Cut down on Claude's excesses

This commit is contained in:
Henrik Rydgård committed 2026-08-11 15:43:48 +02:00
1 parent 6929a0d9ae
commit a3bf3c7153
2 files changed
+5 -8

No files matched your search

+1 -3
View File
@@ -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;