]> git.proxmox.com Git - grub2.git/commit
kern/parser: Introduce process_char() helper
authorChris Coulson <chris.coulson@canonical.com>
Tue, 5 Jan 2021 22:17:28 +0000 (22:17 +0000)
committerColin Watson <cjwatson@debian.org>
Sun, 13 Jun 2021 23:40:46 +0000 (00:40 +0100)
commit45812770ce81194ede99bba4c868b3a244fc37ee
treed00b108d786968fa7bfd2250f85245e697dc9b5e
parent8d06222bb8fb5d610dcdadb221d1846e7de88980
kern/parser: Introduce process_char() helper

grub_parser_split_cmdline() iterates over each command line character.
In order to add error checking and to simplify the subsequent error
handling, split the character processing in to a separate function.

Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Patch-Name: 2021-02-security/094-kern-parser-Introduce-process_char-helper.patch
grub-core/kern/parser.c