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

sev- noreply at scummvm.org
Sun Oct 12 23:59:20 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:
f6d2ef63c1 DIRECTOR: Avoid dumping empty 'junk' and 'free' chunks


Commit: f6d2ef63c1b285bd475318fa04bf5316c87a05b0
    https://github.com/scummvm/scummvm/commit/f6d2ef63c1b285bd475318fa04bf5316c87a05b0
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-10-13T01:58:48+02:00

Commit Message:
DIRECTOR: Avoid dumping empty 'junk' and 'free' chunks

Changed paths:
    engines/director/archive.cpp


diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp
index 8e9931099a6..549b230e687 100644
--- a/engines/director/archive.cpp
+++ b/engines/director/archive.cpp
@@ -278,6 +278,11 @@ void Archive::dumpChunk(Resource &res, Common::DumpFile &out) {
 	}
 	uint32 len = resStream->size();
 
+	if (res.tag == MKTAG('f','r','e','e') || res.tag == MKTAG('j','u','n','k')) {
+		if (len == 0)
+			return;
+	}
+
 	if (dataSize < len) {
 		data = (byte *)malloc(resStream->size());
 		dataSize = resStream->size();




More information about the Scummvm-git-logs mailing list