gnucash master: Defer calling the bl::format::str()'s c-str() until point of use.
John Ralls
jralls at code.gnucash.org
Thu Dec 22 14:00:54 EST 2022
Updated via https://github.com/Gnucash/gnucash/commit/80c015d6 (commit)
from https://github.com/Gnucash/gnucash/commit/0421ff83 (commit)
commit 80c015d6d623b0a1bbaafed0279dfff61054b5d5
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Dec 22 10:58:39 2022 -0800
Defer calling the bl::format::str()'s c-str() until point of use.
Otherwise the string is a temporary that gets destructed at the end
of the statement and passing the char* to gnc_update_splash_screen
is a use-after-free.
Fixes macOS CI.
Summary of changes:
gnucash/gnucash.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
More information about the gnucash-patches
mailing list