Files
ppsspp/Core/Util
Henrik Rydgård eb68bdba0b BlockAllocator: fix null deref in GetBlockTag, bound DoState's block count
GetBlockTag() dereferenced GetBlockFromAddress()'s result without a
null check, unlike every other accessor in this file. Callers
(NetAdhocCommon.cpp, sceNet.cpp, sceNetAdhocMatching.cpp) pass the
result straight into strcmp() while recovering from a stale address
left over from an old/corrupted savestate - precisely the situation
where the address may no longer resolve to a block. Return "" instead
of dereferencing a null block, so strcmp() simply reports a mismatch
(correctly triggering those callers' recovery path) instead of
crashing.

DoState() read the saved block count directly from the savestate with
no validation before looping that many times allocating Blocks - a
corrupt/malicious savestate claiming an enormous count would drive an
effectively unbounded allocation loop. Clamp it to how many block
records could plausibly still fit in the remaining stream data.
2026-08-11 08:43:52 +02:00
..
2026-08-09 22:10:54 +02:00
2025-07-11 15:09:15 +02:00
2025-08-31 20:20:59 +02:00
2026-08-03 19:11:07 +02:00
2026-08-07 11:24:22 +02:00
2025-03-27 01:58:53 +01:00