gfxboot: fix buffer overrun when loading kernel/initramfs syslinux-4.03
authorColin Watson <cjwatson@ubuntu.com>
Wed, 20 Oct 2010 19:23:02 +0000 (21:23 +0200)
committerSebastian Herbszt <herbszt@gmx.de>
Wed, 20 Oct 2010 19:25:38 +0000 (21:25 +0200)
commit778fcea7d4e3e2a595df0a18475d83d008216117
treea90df2ccb3bc687c67e11d4879100db17afc8e3e
parent94fbd0b8d206102757cecd3dbd67cd701fb70470
gfxboot: fix buffer overrun when loading kernel/initramfs

If the file size wasn't a multiple of 64KB, we could overwrite the next
entry in the malloc arena so reading the initramfs would fail.

Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
com32/gfxboot/gfxboot.c