pxe, efi: Bad read of file size over TFTP on EFI64
commitdbe7f9fdb797047522d588cffcbe5681e12b5807
authorCelelibi <celelibi@gmail.com>
Sun, 1 Dec 2013 21:06:24 +0000 (1 22:06 +0100)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 11 Dec 2013 23:16:01 +0000 (11 15:16 -0800)
treee7c94285bb3dcfbbd60cab2b46a639be6fa7e662
parent870b84dd8714ddfccc9288025331423efa6d76b7
pxe, efi: Bad read of file size over TFTP on EFI64

A fancy pointers logic has been replaced with a plain old if / else
branches. It was assigning only half of a 64 bits integer which is then
assigned to a size_t. Thus leading to a bug on platform where size_t is
64 bits.

Resolves bug #26

Signed-off-by: Celelibi <celelibi@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/pxe/tftp.c