Menu

#256 Segfault Crash on Big Endian machines (with patch)

v2.2.6.*
closed-fixed
nobody
None
5
2020-03-06
2020-03-04
No

prboom-plus 2.5.1.4 crashes with Segfault while loading maps with ZDoom extended nodes on Big Endian machines (tested on PowerPC).

The attached patches import the data from WAD with correct byte order.
If the target type is unsigned, the sign-extended bits are masked for machines where int is larger than 32-Bit (the Endianess-Macros return signed values).
The typecasts are there to make the target types visible.

1 Attachments

Discussion

  • Michael Bäuerle

    This patch uses doom_wtoYT() for all macros.

     

    Last edit: Michael Bäuerle 2020-03-04
  • Andrey Budko

    Andrey Budko - 2020-03-06
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB