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

Strangerke noreply at scummvm.org
Fri May 10 07:25:45 UTC 2024


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

Summary:
a1adf8ffdf BAGEL: Fix 2 potential null dereferencing in showResiduePrintedReview() (CID 1544870)


Commit: a1adf8ffdfe33d2d4bbdc618ad6f44fbb54bf483
    https://github.com/scummvm/scummvm/commit/a1adf8ffdfe33d2d4bbdc618ad6f44fbb54bf483
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2024-05-10T08:25:37+01:00

Commit Message:
BAGEL: Fix 2 potential null dereferencing in showResiduePrintedReview() (CID 1544870)

Changed paths:
    engines/bagel/baglib/rp_object.cpp


diff --git a/engines/bagel/baglib/rp_object.cpp b/engines/bagel/baglib/rp_object.cpp
index 0351806831a..74aff1d8ed5 100644
--- a/engines/bagel/baglib/rp_object.cpp
+++ b/engines/bagel/baglib/rp_object.cpp
@@ -1379,6 +1379,11 @@ void CBagRPObject::showResiduePrintedReview() {
 		pLogWld = (CBagLog *)g_SDevManager->getStorageDevice(LOG_WLD);
 	}
 
+	if (!pLogWld) {
+		warning("Unexpected null logWld in showResiduePrintedReview");
+		return;
+	}
+	
 	// Count items in this queue.
 	int nCount = pLogWld->getObjectCount();
 




More information about the Scummvm-git-logs mailing list