2025-08-09 04:23 CEST

spring: maintenance fd02e4ab Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
esainane rtri maintenance 2019-11-03 17:00:24 maintenance ba1702d3
Changeset Prevent nullpo in LuaMenu Reload call (0000481)

* Prevent nullpo in LuaMenu Reload call

`game` can be a null pointer when LuaMenu calls `SpringApp::Reload`.

In practice this didn't cause many problems, as this gets optimised as
a fixed function call, with a null `this` parameter. This led it to be
left unnoticed.

However, when using tools that are stricter about bad behaviour
(-fsanitize=...), this would detect a null pointer dereference and
abort the program.
mod - rts/System/SpringApp.cpp Diff ] File ]