david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/arch/i386/prefix
Michael Brown ea3be0f4a6 [zbin] Fix check for existence of most recent output byte
The code in lzma_literal() checks to see if we are at the start of the
compressed input data in order to determine whether or not a most
recent output byte exists.  This check is incorrect, since
initialisation of the decompressor will always consume the first five
bytes of the compressed input data.

Fix by instead checking whether or not we are at the start of the
output data stream.  This is, in any case, a more logical check.

This issue was masked during development and testing since virtual
machines tend to zero the initial contents of RAM; the spuriously-read
"most recent output byte" is therefore likely to already be a zero
when running in a virtual machine.

Reported-by: Robin Smidsrød <robin@smidsrod.no>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
2015-02-26 13:01:55 +00:00
..
bootpart.S [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
dskprefix.S [build] Use unique entry symbols for each prefix 2011-02-23 21:12:56 +00:00
exeprefix.S [pcbios] Inhibit all calls to INT 15,e820 and INT 15,e801 during POST 2013-03-11 01:20:01 +00:00
hdprefix.S [build] Use unique entry symbols for each prefix 2011-02-23 21:12:56 +00:00
isaromprefix.S [build] Allow ISA ROMs to be built 2014-08-22 17:34:07 +01:00
kkkpxeprefix.S [pxe] Provide PXENV_FILE_EXIT_HOOK only for ipxelinux.0 builds 2011-12-11 02:28:04 +00:00
kkpxeprefix.S [build] Use unique entry symbols for each prefix 2011-02-23 21:12:56 +00:00
kpxeprefix.S [build] Use unique entry symbols for each prefix 2011-02-23 21:12:56 +00:00
libprefix.S [prefix] Call decompressor in flat real mode when DEBUG=libprefix is enabled 2015-02-26 12:56:07 +00:00
lkrnprefix.S [lkrnprefix] Make real-mode setup code relocatable 2014-05-15 13:04:47 +01:00
mbr.S Added active partition locator, and simple MBR built using it. 2007-07-05 00:21:01 +01:00
mromprefix.S [mromprefix] Allow for .mrom images larger than 128kB 2014-08-26 15:17:56 +01:00
nbiprefix.S [nbiprefix] Set up real-mode stack before jumping to .text16 2013-03-08 17:41:51 +00:00
nullprefix.S Prevent hundreds of errors from "make symcheck". The prefix exit path 2005-04-23 14:57:53 +00:00
pciromprefix.S [build] Allow ISA ROMs to be built 2014-08-22 17:34:07 +01:00
pxeprefix.S [pxe] Always retrieve cached DHCPACK and apply to relevant network device 2013-10-25 17:29:25 +01:00
romprefix.S [build] Allow product URI to be customised via config/branding.h 2015-02-11 14:11:28 +00:00
undiloader.S [romprefix] Fix incorrect pointer offset in undiloader.S 2013-05-14 14:51:19 +01:00
unlzma.S [zbin] Fix check for existence of most recent output byte 2015-02-26 13:01:55 +00:00
unlzma16.S [zbin] Use LZMA compression 2015-02-25 14:06:13 +00:00
unnrv2b.S [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
unnrv2b16.S [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
usbdisk.S Use partition type 0xeb ("EtherBoot"), to avoid any attempts to mount 2007-07-05 14:20:55 +01:00