summaryrefslogtreecommitdiff
path: root/ldlinux.asm
diff options
context:
space:
mode:
authorhpa <hpa>2001-05-28 19:48:26 +0000
committerhpa <hpa>2001-05-28 19:48:26 +0000
commitbd22b333ed9d4682ab605f5b34830c30445fe14b (patch)
tree635560dd8fa8fe83587484feefa724e4304d6ce0 /ldlinux.asm
parent29964387607886b1080d46691f9716ca86128024 (diff)
downloadsyslinux-bd22b333ed9d4682ab605f5b34830c30445fe14b.tar.gz
Fix stack-smash bug.syslinux-1.63-pre1
Diffstat (limited to 'ldlinux.asm')
-rw-r--r--ldlinux.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 50e5e29f..c4647141 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -259,7 +259,6 @@ xbs_vgatmpbuf equ 2*trackbufsize
absolute 5000h ; Here we keep our BSS stuff
-StackBuf equ $ ; Start the stack here (grow down - 4K)
VKernelBuf: resb vk_size ; "Current" vkernel
alignb 4
AppendBuf resb max_cmd_len+1 ; append=
@@ -341,6 +340,8 @@ VGAFileMBuf resb 11 ; Mangled VGA image name
section .text
org 7C00h
+StackBuf equ $ ; Start the stack here (grow down - 4K)
+
;
; Primary entry point. Tempting as though it may be, we can't put the
; initial "cli" here; the jmp opcode in the first byte is part of the