aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-17 19:38:45 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-17 19:38:45 -0700
commit3cd4be7cb586507d6ad9f5a9cfc3544977f6152e (patch)
tree0373ef9c9825c56dfb96229c1a55121480fb476e
parent417fd5c59cf7907a95cc45b65c69a748a980fea7 (diff)
downloadsyslinux-3cd4be7cb586507d6ad9f5a9cfc3544977f6152e.tar.gz
syslinux-3cd4be7cb586507d6ad9f5a9cfc3544977f6152e.tar.xz
syslinux-3cd4be7cb586507d6ad9f5a9cfc3544977f6152e.zip
Fix stack clobber when loading CD boot sectors.
-rw-r--r--isolinux.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/isolinux.asm b/isolinux.asm
index 4d2a4728..acf7806c 100644
--- a/isolinux.asm
+++ b/isolinux.asm
@@ -212,7 +212,9 @@ xbs_vgatmpbuf equ 2*trackbufsize
;; CD-ROM sector (2K) of the file, so the number one priority is actually
;; loading the rest.
;;
-StackBuf equ $
+StackBuf equ $-44 ; 44 bytes needed for
+ ; the bootsector chainloading
+ ; code!
bootsec equ $