[Scummvm-git-logs] scummvm master -> 7e1c5cd8ac1b21418a8278baa1b511c3aac67f97

Strangerke noreply at scummvm.org
Tue May 6 06:09:14 UTC 2025


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:
7e1c5cd8ac AWE: Fix PVStudio V557 in resource.cpp


Commit: 7e1c5cd8ac1b21418a8278baa1b511c3aac67f97
    https://github.com/scummvm/scummvm/commit/7e1c5cd8ac1b21418a8278baa1b511c3aac67f97
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-05-06T07:09:01+01:00

Commit Message:
AWE: Fix PVStudio V557 in resource.cpp

Changed paths:
    engines/awe/resource.cpp


diff --git a/engines/awe/resource.cpp b/engines/awe/resource.cpp
index 1f9d368fdab..bf50be3174d 100644
--- a/engines/awe/resource.cpp
+++ b/engines/awe/resource.cpp
@@ -422,6 +422,9 @@ void Resource::update(uint16 num, PreloadSoundProc preloadSound, void *data) {
 	case DT_ATARI:
 	case DT_ATARI_DEMO:
 	case DT_DOS:
+		if (num >= ENTRIES_COUNT_20TH)
+			error("Resource::update - Resource number too high %d", num);
+
 		MemEntry *me = &_memList[num];
 		if (me->status == STATUS_NULL) {
 			me->status = STATUS_TOLOAD;




More information about the Scummvm-git-logs mailing list