aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING.UBDL
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2023-02-13 20:40:42 +0000
committerMichael Brown <mcb30@ipxe.org>2023-02-13 21:36:03 +0000
commitef77c453f2de4ee97dd7ae2e9f0ba6c9aafcd874 (patch)
treedbdd17ee66f496fa89dbf8ae0854b6031474b9ed /COPYING.UBDL
parent3c83843e111ece30d3dfb5143d5e6aed6164d587 (diff)
downloadipxe-imagecmdline.tar.gz
[image] Check delimiters when parsing command-line key-value argumentsimagecmdline
The Linux kernel bzImage image format and the CPIO archive constructor will parse the image command line for certain arguments of the form "key=value". This parsing is currently implemented using strstr() in a way that can cause a false positive suffix match. For example, a command line containing "highmem=<n>" would erroneously be treated as containing a value for "mem=<n>". Fix by centralising the logic used for parsing such arguments, and including a check that the argument immediately follows a whitespace delimiter (or is at the start of the string). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'COPYING.UBDL')
0 files changed, 0 insertions, 0 deletions