]> git.ipfire.org Git - thirdparty/grub.git/commit
gnulib/regexec: Fix possible null-dereference
authorDarren Kenny <darren.kenny@oracle.com>
Thu, 5 Nov 2020 10:57:14 +0000 (10:57 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:16 +0000 (15:54 +0100)
commit0b7f347638153e403ee2dd518af3ce26f4f99647
tree2596db57578b236c713a1e76888446ab16d19084
parent3a37bf120a9194c373257c70175cdb5b337bc107
gnulib/regexec: Fix possible null-dereference

It appears to be possible that the mctx->state_log field may be NULL,
and the name of this function, clean_state_log_if_needed(), suggests
that it should be checking that it is valid to be cleaned before
assuming that it does.

Fixes: CID 86720
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
bootstrap.conf
conf/Makefile.extra-dist
grub-core/lib/gnulib-patches/fix-regexec-null-deref.patch [new file with mode: 0644]