aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2002-10-24 05:46:28 +0000
committerhpa <hpa>2002-10-24 05:46:28 +0000
commitd684e72385132bd87e46e5a8fdf591da9ee8ba2c (patch)
tree9a252be668047a8d5eeae7af2119a7608963f178
parentde9e52085ecde8375bbc1e4859f086ec2bb28f5c (diff)
downloadsyslinux-d684e72385132bd87e46e5a8fdf591da9ee8ba2c.tar.gz
syslinux-d684e72385132bd87e46e5a8fdf591da9ee8ba2c.tar.xz
syslinux-d684e72385132bd87e46e5a8fdf591da9ee8ba2c.zip
Fix bug which causes ISOLINUX to choke on initrds > 128 MB.
-rw-r--r--NEWS4
-rw-r--r--isolinux.asm7
2 files changed, 8 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 1c483dd8..5f6f2225 100644
--- a/NEWS
+++ b/NEWS
@@ -14,8 +14,12 @@ Changes in 2.00:
chunks of the UNDI code segment! Thanks to Kevin Tran for
finding this bug.
* ISOLINUX: Fix a bug related to slashes in pathnames.
+ * ISOLINUX: Fix a bug in handling initrds over 128 MB.
* ALL: Make the <Ctrl-V> key print out the version; this is
to help debugging.
+ * Add a small script, mkdiskimage, to create a DOS-formatted
+ hard disk image using mtools. This may be useful in
+ conjunction with MEMDISK.
Changes in 1.76:
* ISOLINUX: Remove code no longer used which caused hangs on
diff --git a/isolinux.asm b/isolinux.asm
index 7966f9ea..9e41add4 100644
--- a/isolinux.asm
+++ b/isolinux.asm
@@ -1424,7 +1424,7 @@ unmangle_name: call strcpy
; On entry:
; ES:BX -> Buffer
; SI -> File pointer
-; CX -> Cluster count; 0FFFFh = until end of file
+; CX -> Cluster count
; On exit:
; SI -> File pointer (or 0 on EOF)
; CF = 1 -> Hit EOF
@@ -1436,9 +1436,10 @@ getfssec:
push cs
pop ds ; DS <- CS
- cmp cx,[si+file_left]
+ movzx ecx,cx
+ cmp ecx,[si+file_left]
jna .ok_size
- mov cx,[si+file_left]
+ mov ecx,[si+file_left]
.ok_size:
mov bp,cx