[Scummvm-git-logs] scummvm master -> a944b46afd66e865f2c3cdbe4459e515b9f27c40

kelmer44 noreply at scummvm.org
Wed Jun 10 09:28:53 UTC 2026


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
a944b46afd PELROCK: Make sure pointer is properly reserved. PVS-Studio V575


Commit: a944b46afd66e865f2c3cdbe4459e515b9f27c40
    https://github.com/scummvm/scummvm/commit/a944b46afd66e865f2c3cdbe4459e515b9f27c40
Author: kelmer (kelmer at gmail.com)
Date: 2026-06-10T11:25:33+02:00

Commit Message:
PELROCK: Make sure pointer is properly reserved. PVS-Studio V575

Changed paths:
    engines/pelrock/sound.cpp


diff --git a/engines/pelrock/sound.cpp b/engines/pelrock/sound.cpp
index 940a1336a24..3a082f0918a 100644
--- a/engines/pelrock/sound.cpp
+++ b/engines/pelrock/sound.cpp
@@ -204,6 +204,7 @@ int SoundManager::playSound(SonidoFile sound, int channel, int loopCount) {
 		uint32 pcmSize = sound.size - headerSize;
 		byte *pcmData = (byte *)malloc(pcmSize);
 		assert(pcmData);
+		assert(data);
 		memcpy(pcmData, data + headerSize, pcmSize);
 		free(data);
 




More information about the Scummvm-git-logs mailing list