aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/cli.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-01-04 19:16:39 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-01-04 19:52:26 +0000
commit96f02b37a56382c0e297fdbe4b7002f8ffb8829c (patch)
tree26522588ff2efa74af1e410ff8cbbab77cbcc4a1 /com32/elflink/ldlinux/cli.c
parente1680d483ead4a0afdc672ce9c5c7942941f985b (diff)
downloadsyslinux-96f02b37a56382c0e297fdbe4b7002f8ffb8829c.tar.gz
syslinux-96f02b37a56382c0e297fdbe4b7002f8ffb8829c.tar.xz
syslinux-96f02b37a56382c0e297fdbe4b7002f8ffb8829c.zip
ldlinux: Dynamically alloc memory for kernel and initrd filenames
Absolutely no bounds checking is performed when copying filenames to 'cmdline_buf' and 'initrd_name' which means that sufficiently long strings will scribble over the stack. At best, the files will simply fail to load because the name is garbled. Allocate space for the cmdline at runtime to avoid these overflow problems. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/cli.c')
0 files changed, 0 insertions, 0 deletions