diff options
Diffstat (limited to 'sys-apps/fwupd/files/fwupd-1.8.11-empty_kernel_cmdline.patch')
-rw-r--r-- | sys-apps/fwupd/files/fwupd-1.8.11-empty_kernel_cmdline.patch | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/sys-apps/fwupd/files/fwupd-1.8.11-empty_kernel_cmdline.patch b/sys-apps/fwupd/files/fwupd-1.8.11-empty_kernel_cmdline.patch deleted file mode 100644 index 42d5915397b8..000000000000 --- a/sys-apps/fwupd/files/fwupd-1.8.11-empty_kernel_cmdline.patch +++ /dev/null @@ -1,19 +0,0 @@ -From 7e502cf7d3da00a978201455f3a3799ae4aded75 Mon Sep 17 00:00:00 2001 -From: Richard Hughes <richard@hughsie.com> -Date: Mon, 6 Mar 2023 16:56:05 +0000 -Subject: [PATCH] Fix a critical warning when parsing an empty kernel cmdline - -Fix the bounds check so we never pass a bufsz of zero to fu_strsplit(). - -Resolves: https://github.com/fwupd/fwupd/issues/5575 ---- a/libfwupdplugin/fu-kernel.c -+++ b/libfwupdplugin/fu-kernel.c -@@ -253,7 +253,7 @@ fu_kernel_get_cmdline(GError **error) - if (!g_file_get_contents("/proc/cmdline", &buf, &bufsz, error)) - return NULL; - hash = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); -- if (bufsz > 0) { -+ if (bufsz > 1) { - g_auto(GStrv) tokens = fu_strsplit(buf, bufsz - 1, " ", -1); - for (guint i = 0; tokens[i] != NULL; i++) { - g_auto(GStrv) kv = NULL; |