Signed-off-by: Vladimir Serbinenko <phco...@gmail.com> --- .../lib/libgcrypt-patches/08_sexp_leak.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 grub-core/lib/libgcrypt-patches/08_sexp_leak.patch
diff --git a/grub-core/lib/libgcrypt-patches/08_sexp_leak.patch b/grub-core/lib/libgcrypt-patches/08_sexp_leak.patch new file mode 100644 index 000000000..706b95395 --- /dev/null +++ b/grub-core/lib/libgcrypt-patches/08_sexp_leak.patch @@ -0,0 +1,15 @@ +diff -ur ../libgcrypt-1.11.0/src/sexp.c grub-core/lib/libgcrypt/src/sexp.c +--- a/grub-core/lib/libgcrypt-grub/src/sexp.c 2024-03-28 10:07:27.000000000 +0000 ++++ b/grub-core/lib/libgcrypt-grub/src/sexp.c 2025-07-02 17:10:32.714864459 +0000 +@@ -2714,8 +2714,10 @@ + length = 0; + for (s=string; *s; s +=2 ) + { +- if (!hexdigitp (s) || !hexdigitp (s+1)) ++ if (!hexdigitp (s) || !hexdigitp (s+1)) { ++ free (buffer); + return NULL; /* Invalid hex digits. */ ++ } + ((unsigned char*)buffer)[length++] = xtoi_2 (s); + } + *r_length = length; -- 2.49.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel