Commit Graph

3 Commits

Author SHA1 Message Date
Darren Kenny
dc28cd75dc 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>

Patch-Name: 2021-02-security/025-gnulib-regexec-Fix-possible-null-dereference.patch
2021-02-27 14:48:17 +00:00
Darren Kenny
ad3b3b1252 gnulib/regexec: Resolve unused variable
This is a really minor issue where a variable is being assigned to but
not checked before it is overwritten again.

The reason for this issue is that we are not building with DEBUG set and
this in turn means that the assert() that reads the value of the
variable match_last is being processed out.

The solution, move the assignment to match_last in to an ifdef DEBUG too.

Fixes: CID 292459

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>

Patch-Name: 2021-02-security/022-gnulib-regexec-Resolve-unused-variable.patch
2021-02-27 14:47:06 +00:00
Colin Watson
00f6db2247 Import grub2_2.04~rc1.orig.tar.xz 2019-05-14 10:20:03 +01:00