|
|
80913e |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
80913e |
From: Darren Kenny <darren.kenny@oracle.com>
|
|
|
80913e |
Date: Tue, 24 Nov 2020 18:04:22 +0000
|
|
|
80913e |
Subject: [PATCH] gnulib/regcomp: Fix uninitialized re_token
|
|
|
80913e |
|
|
|
80913e |
This issue has been fixed in the latest version of gnulib, so to
|
|
|
80913e |
maintain consistency, I've backported that change rather than doing
|
|
|
80913e |
something different.
|
|
|
80913e |
|
|
|
80913e |
Fixes: CID 73828
|
|
|
80913e |
|
|
|
80913e |
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
|
|
|
80913e |
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|
|
80913e |
---
|
|
|
80913e |
grub-core/gnulib/regcomp.c | 3 +--
|
|
|
80913e |
conf/Makefile.extra-dist | 1 +
|
|
|
80913e |
grub-core/gnulib-fix-regcomp-uninit-token.patch | 12 ++++++++++++
|
|
|
80913e |
3 files changed, 14 insertions(+), 2 deletions(-)
|
|
|
80913e |
create mode 100644 grub-core/gnulib-fix-regcomp-uninit-token.patch
|
|
|
80913e |
|
|
|
80913e |
diff --git a/grub-core/gnulib/regcomp.c b/grub-core/gnulib/regcomp.c
|
|
|
80913e |
index de9f622088f..6d0830ac691 100644
|
|
|
80913e |
--- a/grub-core/gnulib/regcomp.c
|
|
|
80913e |
+++ b/grub-core/gnulib/regcomp.c
|
|
|
80913e |
@@ -3790,8 +3790,7 @@ static bin_tree_t *
|
|
|
80913e |
create_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right,
|
|
|
80913e |
re_token_type_t type)
|
|
|
80913e |
{
|
|
|
80913e |
- re_token_t t;
|
|
|
80913e |
- t.type = type;
|
|
|
80913e |
+ re_token_t t = { .type = type };
|
|
|
80913e |
return create_token_tree (dfa, left, right, &t);
|
|
|
80913e |
}
|
|
|
80913e |
|
|
|
80913e |
diff --git a/conf/Makefile.extra-dist b/conf/Makefile.extra-dist
|
|
|
80913e |
index edbe7846eb1..ee276a87764 100644
|
|
|
80913e |
--- a/conf/Makefile.extra-dist
|
|
|
80913e |
+++ b/conf/Makefile.extra-dist
|
|
|
80913e |
@@ -32,6 +32,7 @@ EXTRA_DIST += grub-core/genemuinitheader.sh
|
|
|
80913e |
|
|
|
80913e |
EXTRA_DIST += grub-core/gnulib-fix-null-deref.diff
|
|
|
80913e |
EXTRA_DIST += grub-core/gnulib-fix-null-state-deref.patch
|
|
|
80913e |
+EXTRA_DIST += grub-core/gnulib-fix-regcomp-uninit-token.patch
|
|
|
80913e |
EXTRA_DIST += grub-core/gnulib-fix-regexec-null-deref.patch
|
|
|
80913e |
EXTRA_DIST += grub-core/gnulib-fix-uninit-structure.patch
|
|
|
80913e |
EXTRA_DIST += grub-core/gnulib-fix-unused-value.patch
|
|
|
80913e |
diff --git a/grub-core/gnulib-fix-regcomp-uninit-token.patch b/grub-core/gnulib-fix-regcomp-uninit-token.patch
|
|
|
80913e |
new file mode 100644
|
|
|
80913e |
index 00000000000..d615745221b
|
|
|
80913e |
--- /dev/null
|
|
|
80913e |
+++ b/grub-core/gnulib-fix-regcomp-uninit-token.patch
|
|
|
80913e |
@@ -0,0 +1,12 @@
|
|
|
80913e |
+--- grub-core/gnulib/regcomp.c
|
|
|
80913e |
++++ grub-core/gnulib/regcomp.c
|
|
|
80913e |
+@@ -3808,8 +3808,7 @@ static bin_tree_t *
|
|
|
80913e |
+ create_tree (re_dfa_t *dfa, bin_tree_t *left, bin_tree_t *right,
|
|
|
80913e |
+ re_token_type_t type)
|
|
|
80913e |
+ {
|
|
|
80913e |
+- re_token_t t;
|
|
|
80913e |
+- t.type = type;
|
|
|
80913e |
++ re_token_t t = { .type = type };
|
|
|
80913e |
+ return create_token_tree (dfa, left, right, &t);
|
|
|
80913e |
+ }
|
|
|
80913e |
+
|