]> code.ossystems Code Review - openembedded-core.git/commit
syslinux: fix isohybird overflows on 32 bit system
authorKai Kang <kai.kang@windriver.com>
Fri, 20 Jun 2014 06:06:30 +0000 (14:06 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jun 2014 18:53:02 +0000 (19:53 +0100)
commit41bd9dbf6f3e0add6a9e2cb20cfcbff44d785ea4
treedfa524eac671be18f4c19bd3908736e7abb5800d
parent15dbdfc6a7e3f03862d9c670ffd2ae8f4d9d8b69
syslinux: fix isohybird overflows on 32 bit system

When call isohybrid with option '-u', it overflows on a 32 bits host. It
seeks to 512 bytes before the end of the image to install gpt header. If
the size of image is larger than LONG_MAX, it overflows fseek() and
cause error:

isohybrid: wrlinux-image-x86-64-20140505110100.iso: seek error - 8: Invalid argument

Replace fseek with fseeko to fix this issue.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/syslinux/files/isohybrid-fix-overflow-on-32-bit-system.patch [new file with mode: 0644]
meta/recipes-devtools/syslinux/syslinux_6.01.bb