mirror of
https://github.com/libretro/ppsspp.git
synced 2025-01-27 03:35:14 +00:00
Fix some overflow/null deref warnings.
This commit is contained in:
parent
83373b8d87
commit
8830d3603e
@ -914,7 +914,7 @@ void PostPutAction::run(MipsCall &call) {
|
||||
WARN_LOG(HLE, "sceMpegRingbufferPut clamping packetsAdded old=%i new=%i", packetsAdded, ringbuffer.packetsFree);
|
||||
packetsAdded = ringbuffer.packetsFree;
|
||||
}
|
||||
int actuallyAdded = ctx->mediaengine->addStreamData(Memory::GetPointer(ringbuffer.data), packetsAdded * 2048) / 2048;
|
||||
int actuallyAdded = ctx->mediaengine == NULL ? 8 : ctx->mediaengine->addStreamData(Memory::GetPointer(ringbuffer.data), packetsAdded * 2048) / 2048;
|
||||
if (actuallyAdded != packetsAdded) {
|
||||
WARN_LOG_REPORT(HLE, "sceMpegRingbufferPut(): unable to enqueue all added packets, going to overwrite some frames.");
|
||||
}
|
||||
|
@ -679,7 +679,7 @@ lMaybeLDRHetc:
|
||||
case 13:
|
||||
case 14: // FPU
|
||||
{
|
||||
char text[256];
|
||||
char text[128];
|
||||
if (!DisasmVFP(instr, text)) {
|
||||
goto lUndefined;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user