From 822a734c104b5d8e02c5804c11000440de357b49 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 6 Nov 2007 17:14:03 -0800 Subject: [PATCH] isolinux: protect bss variables clobbered due to final sector load The image size loaded is bigger than the real image; this is due to the final sector being fractional. Move variables needed during that stage from .bss to .bss1. XXX: Need to audit to make sure this doesn't affect other derivatives and/or other variables, too. --- isolinux.asm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/isolinux.asm b/isolinux.asm index 5ae5e05..3ede48f 100644 --- a/isolinux.asm +++ b/isolinux.asm @@ -105,7 +105,11 @@ trackbuf resb trackbufsize ; Track buffer goes here getcbuf resb trackbufsize ; ends at 4800h - section .bss + ; Some of these are touched before the whole image + ; is loaded. DO NOT move this to .bss, since the beginning + ; of .bss might be clobbered when loading the last fractional + ; sector. + section .bss1 alignb 4 ISOFileName resb 64 ; ISO filename canonicalization buffer ISOFileNameEnd equ $ -- 2.7.4