summaryrefslogtreecommitdiff
path: root/lib/variables.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2021-11-09 16:39:37 +0100
committerPeter Jones <pjones@redhat.com>2021-12-10 14:56:54 -0500
commit4804ba077381dcd0288d98e3d08bc87ee77afad1 (patch)
tree83b40d749af79b782695106fafc1591332d77614 /lib/variables.c
parent4e513405b4f1641710115780d19dcec130c5208f (diff)
downloadefi-boot-shim-4804ba077381dcd0288d98e3d08bc87ee77afad1.tar.gz
efi-boot-shim-4804ba077381dcd0288d98e3d08bc87ee77afad1.zip
fallback: fix fallback not passing arguments of the first boot option
The buffer used to read the data in the CSV is declared as a stack variable in the try_boot_csv() function, but a pointer to the arguments field of the first boot option is stored in the global first_new_option_args variable. Later, when is used set the arguments to boot the first entry, the variable points to memory that no longer exists. This leads to booting an entry with garbage as arguments instead of the correct value. Reported-by: Alexander Larsson <alexl@redhat.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Diffstat (limited to 'lib/variables.c')
0 files changed, 0 insertions, 0 deletions