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

dwatteau noreply at scummvm.org
Tue Oct 14 09:21:35 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:
a56b2cc994 AGOS: Set `_action` to a default value when initializing the engine


Commit: a56b2cc99474c441e7ecc4b8eb0c0eb6aef066bf
    https://github.com/scummvm/scummvm/commit/a56b2cc99474c441e7ecc4b8eb0c0eb6aef066bf
Author: Donovan Watteau (contrib at dwatteau.fr)
Date: 2025-10-14T11:19:25+02:00

Commit Message:
AGOS: Set `_action` to a default value when initializing the engine

Otherwise, UndefinedBehaviorSanitizer gives the following runtime
errors:

engines/agos/input.cpp:196:5: load of value 3200171710, which is not
    a valid value for type 'AGOSAction'
engines/agos/input.cpp:576:10: load of value 3200171710, which is not
    a valid value for type 'AGOSAction'

Changed paths:
    engines/agos/agos.cpp


diff --git a/engines/agos/agos.cpp b/engines/agos/agos.cpp
index af27f131169..2103481eebc 100644
--- a/engines/agos/agos.cpp
+++ b/engines/agos/agos.cpp
@@ -345,6 +345,8 @@ AGOSEngine::AGOSEngine(OSystem *system, const AGOSGameDescription *gd)
 	_firstTimeStruct = nullptr;
 	_pendingDeleteTimeEvent = nullptr;
 
+	_action = kActionNone;
+
 	_initMouse = 0;
 	_leftButtonDown = false;
 	_rightButtonDown = false;




More information about the Scummvm-git-logs mailing list