mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-04 10:08:23 +00:00
gnulib/regcomp: Fix uninitialized re_token
This issue has been fixed in the latest version of gnulib, so to maintain consistency, I've backported that change rather than doing something different. Fixes: CID 73828 Signed-off-by: Darren Kenny <darren.kenny@oracle.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
0b7f347638
commit
03477085f9
@ -79,8 +79,8 @@ cp -a INSTALL INSTALL.grub
|
||||
|
||||
bootstrap_post_import_hook () {
|
||||
set -e
|
||||
for patchname in fix-base64 fix-null-deref fix-null-state-deref fix-regexec-null-deref \
|
||||
fix-uninit-structure fix-unused-value fix-width no-abort; do
|
||||
for patchname in fix-base64 fix-null-deref fix-null-state-deref fix-regcomp-uninit-token \
|
||||
fix-regexec-null-deref fix-uninit-structure fix-unused-value fix-width no-abort; do
|
||||
patch -d grub-core/lib/gnulib -p2 \
|
||||
< "grub-core/lib/gnulib-patches/$patchname.patch"
|
||||
done
|
||||
|
@ -31,6 +31,7 @@ EXTRA_DIST += grub-core/genemuinitheader.sh
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-base64.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-null-deref.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-null-state-deref.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-regexec-null-deref.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-uninit-structure.patch
|
||||
EXTRA_DIST += grub-core/lib/gnulib-patches/fix-unused-value.patch
|
||||
|
15
grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
Normal file
15
grub-core/lib/gnulib-patches/fix-regcomp-uninit-token.patch
Normal file
@ -0,0 +1,15 @@
|
||||
--- a/lib/regcomp.c 2020-11-24 17:06:08.159223858 +0000
|
||||
+++ b/lib/regcomp.c 2020-11-24 17:06:15.630253923 +0000
|
||||
@@ -3808,11 +3808,7 @@
|
||||
create_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right,
|
||||
re_token_type_t type)
|
||||
{
|
||||
- re_token_t t;
|
||||
-#if defined GCC_LINT || defined lint
|
||||
- memset (&t, 0, sizeof t);
|
||||
-#endif
|
||||
- t.type = type;
|
||||
+ re_token_t t = { .type = type };
|
||||
return create_token_tree (dfa, left, right, &t);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user