[syslinux] Patch: Fix isohybrid.c tool under Windows platforms

Gene Cumm
Sun, 14 May 2017 15:20:46 -0000

On Mon, Apr 10, 2017 at 6:21 AM, Colin Finck via Syslinux
<syslinux at zytor.com> wrote:
> Hi all,
>
> As part of a bigger effort to port the ISOLINUX hybrid mode to ReactOS,
> I've encountered a bug in isohybrid under Windows platforms. Attached
> comes a patch to fix it.
>
> Precisely, if isohybrid currently finds a 0x0A (LF) byte in the MBR code
> (which exists in the strings), it adds a 0x0D (CR) before, thereby
> shifting the MBR bytes to the right and making it invalid.
> This can be fixed by opening the file in binary mode with the "b"
flag.

Thanks for catching this.  It has been committed.

--
-Gene