# HG changeset patch # User Pascal Bellard # Date 1646058925 0 # Node ID 2a12b1c5e2402095241bbc149998561a43d493dd # Parent c8515a1a219e2d9e78981c041cd230c45f0e2462 syslinux/iso2exe: fix possible data corruption diff -r c8515a1a219e -r 2a12b1c5e240 syslinux/stuff/iso2exe/Makefile --- a/syslinux/stuff/iso2exe/Makefile Mon Feb 28 15:06:59 2022 +0100 +++ b/syslinux/stuff/iso2exe/Makefile Mon Feb 28 14:35:25 2022 +0000 @@ -53,5 +53,8 @@ objcopy -O binary $*.o $@ chmod +x $@ +%.lst: %bin + objdump -D -Mintel,i8086 -b binary -m i386 --adjust-vma=0x7C00 $< > $@ + clean: rm -f *.bin *.o *~ diff -r c8515a1a219e -r 2a12b1c5e240 syslinux/stuff/iso2exe/iso2exe.sh --- a/syslinux/stuff/iso2exe/iso2exe.sh Mon Feb 28 15:06:59 2022 +0100 +++ b/syslinux/stuff/iso2exe/iso2exe.sh Mon Feb 28 14:35:25 2022 +0000 @@ -354,12 +354,12 @@ chown root.root ${@/init/rootfs.gz} touch -t 197001010100.00 ${@/init/rootfs.gz} ls -l $@ rootfs.gz - cp $0 $0.$$ + sed '/^##/d;s|[ \t]*###.*||;/^case/,/^esac/d' $0 > $0.$$ + chmod +x $0.$$ cat >> $0.$$ <