diff options
author | Kai Kang <kai.kang@windriver.com> | 2014-06-20 14:06:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-24 19:54:12 +0100 |
commit | 3c7b5ec1cae6186a64e0be2c05b64b05add08c97 (patch) | |
tree | c202d0e5b91becc2e8c79467be98420e51a4340e /meta/recipes-devtools/syslinux/syslinux_6.01.bb | |
parent | cc480eafe576aa6c56a58f6ef71bf8be705aa8b1 (diff) | |
download | poky-3c7b5ec1cae6186a64e0be2c05b64b05add08c97.tar.gz |
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.
(From OE-Core rev: 41bd9dbf6f3e0add6a9e2cb20cfcbff44d785ea4)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/syslinux/syslinux_6.01.bb')
-rw-r--r-- | meta/recipes-devtools/syslinux/syslinux_6.01.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.01.bb b/meta/recipes-devtools/syslinux/syslinux_6.01.bb index 89204b03ae..e8a1fd4ffe 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.01.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.01.bb | |||
@@ -13,7 +13,9 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/boot/syslinux/6.xx/syslinux-${PV}.tar | |||
13 | file://0002-memscan-build-a-linked-list-of-memory-scanners.patch \ | 13 | file://0002-memscan-build-a-linked-list-of-memory-scanners.patch \ |
14 | file://0003-PXELINUX-Add-bios-memscan-function.patch \ | 14 | file://0003-PXELINUX-Add-bios-memscan-function.patch \ |
15 | file://0004-pxe-use-bios_fbm-and-real_base_mem-to-calculate-free.patch \ | 15 | file://0004-pxe-use-bios_fbm-and-real_base_mem-to-calculate-free.patch \ |
16 | file://syslinux-fix-parallel-building-issue.patch" | 16 | file://syslinux-fix-parallel-building-issue.patch \ |
17 | file://isohybrid-fix-overflow-on-32-bit-system.patch \ | ||
18 | " | ||
17 | 19 | ||
18 | SRC_URI[md5sum] = "6945ee89e29119d459baed4937bbc534" | 20 | SRC_URI[md5sum] = "6945ee89e29119d459baed4937bbc534" |
19 | SRC_URI[sha256sum] = "83a04cf81e6a46b80ee5a321926eea095af3498b04317e3674b46c125c7a5b43" | 21 | SRC_URI[sha256sum] = "83a04cf81e6a46b80ee5a321926eea095af3498b04317e3674b46c125c7a5b43" |