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

dreammaster noreply at scummvm.org
Tue Jul 7 20:59:32 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:
b7c9ebe6f9 MADS: Fix read size in room_load_hotspots


Commit: b7c9ebe6f9bebb7a52b31aabfb46c5e83ca317b6
    https://github.com/scummvm/scummvm/commit/b7c9ebe6f9bebb7a52b31aabfb46c5e83ca317b6
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-07-08T06:59:24+10:00

Commit Message:
MADS: Fix read size in room_load_hotspots

Changed paths:
    engines/mads/madsv2/core/room.cpp


diff --git a/engines/mads/madsv2/core/room.cpp b/engines/mads/madsv2/core/room.cpp
index 63a25173088..a89ef6912e0 100644
--- a/engines/mads/madsv2/core/room.cpp
+++ b/engines/mads/madsv2/core/room.cpp
@@ -390,7 +390,7 @@ HotPtr room_load_hotspots(int id, int *num_spots) {
 	{
 		size_t bytes_to_read = num_to_read * HotSpot::SIZE;
 		byte *buffer = (byte *)malloc(bytes_to_read);
-		if (!loader_read(buffer, memory_needed, 1, &load_handle)) {
+		if (!loader_read(buffer, bytes_to_read, 1, &load_handle)) {
 			free(buffer);
 			goto done;
 		}




More information about the Scummvm-git-logs mailing list