syslinux_add_memmap(): fix failures at address zero, more?
authorH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 23:58:46 +0000 (16:58 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 2 May 2009 23:58:46 +0000 (16:58 -0700)
commit6257a519a5aaafdebe2dcc58672cc585708b596e
treeed218ad3ceed5f14e35da87641d4a2a62a4a9928
parentfc5ece2095fb662f2d90db0fca4e5d3738827142
syslinux_add_memmap(): fix failures at address zero, more?

syslinux_add_memmap() would fail miserably and corrupt the list if an
entry was added at address zero.  Quite possibly other addresses would
have similar problems.  Furthermore, we did an extra "optimization
pass" which should never have been necessary if the algorithm had been
correct in the first place.

This should hopefully fix ALL those bugs.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/syslinux/zonelist.c