]> git.proxmox.com Git - grub2.git/commit
kern/misc: Add STRING type for internal printf() format handling
authorThomas Frauendorfer | Miray Software <tf@miray.de>
Mon, 15 Feb 2021 13:04:26 +0000 (14:04 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:20 +0000 (15:54 +0100)
commit1a2a5aff71e8edba436398492279de434abfe7a3
tree05083be12dec904f4ac085ff516c36ee0ea5ca18
parent7f11bde3143b21b40d8225ea1d641e0f83b5a01e
kern/misc: Add STRING type for internal printf() format handling

Set printf() argument type for "%s" to new type STRING. This is in
preparation for a follow up patch to compare a printf() format string
against an expected printf() format string.

For "%s" the corresponding printf() argument is dereferenced as pointer
while all other argument types are defined as integer value. However,
when validating a printf() format it is necessary to differentiate "%s"
from "%p" and other integers. So, let's do that.

Signed-off-by: Thomas Frauendorfer | Miray Software <tf@miray.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/misc.c