You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the wad header has an infotableofs that is not 4-byte aligned for whatever reason, accessing lump_info->filepos will crash on platforms like ARM where unaligned memory access is not allowed.
There are attributes/pragmas that can be used to mark structures as 'packed' so that the compiler generates the necessary code to access unaligned memory safely on platforms that require it.
On the other hand, maybe running dsda-doom on anything but x86 doesn't matter.
The text was updated successfully, but these errors were encountered:
I'd like everything in the issues tab to be actionable and intended to be addressed, so in this case I decided to close it, although the problem does still exist as you said :^)
A lot of the file parsing code uses casts from
char*
/byte*
to structs,short
,int
, etc. This generates a lot clang warnings about pointer alignment.In a lot of cases this is harmless, as the buffer pointer is guaranteed to be aligned due to program logic. In others it's not, e.g.
If the wad header has an
infotableofs
that is not 4-byte aligned for whatever reason, accessinglump_info->filepos
will crash on platforms like ARM where unaligned memory access is not allowed.There are attributes/pragmas that can be used to mark structures as 'packed' so that the compiler generates the necessary code to access unaligned memory safely on platforms that require it.
On the other hand, maybe running dsda-doom on anything but x86 doesn't matter.
The text was updated successfully, but these errors were encountered: