]> git.proxmox.com Git - grub2.git/commit
kern/parser: Introduce terminate_arg() helper
authorChris Coulson <chris.coulson@canonical.com>
Thu, 7 Jan 2021 19:53:55 +0000 (19:53 +0000)
committerColin Watson <cjwatson@debian.org>
Sat, 27 Feb 2021 14:50:21 +0000 (14:50 +0000)
commit3ab27438bca07e9d76833b20d01359d3e93cd6da
treef284775e3bbd170dfeb8f96a06be54303ece931f
parent7feb878e82a6ff51c3ba0bbc5a7c15c983c44d8e
kern/parser: Introduce terminate_arg() helper

process_char() and grub_parser_split_cmdline() use similar code for
terminating the most recent argument. Add a helper function for this.

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