[Scummvm-tracker] [ScummVM :: Bugs] #15179: AGS: lzwexpand SIGBUS on strict-alignment archs
ScummVM :: Bugs
trac at scummvm.org
Wed Oct 9 21:55:05 UTC 2024
#15179: AGS: lzwexpand SIGBUS on strict-alignment archs
------------------------------------+--------------------------
Reporter: dwatteau | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: AGS
Version: | Resolution:
Keywords: strict-alignment,sigbus | Game:
------------------------------------+--------------------------
Comment (by dwatteau):
FWIW, this was also caught by UBSan on regular x86:
{{{
engines/ags/shared/util/lzw.cpp:225:32: runtime error: load of misaligned
address 0x5e50b242f227 for type 'const int16_t', which requires 2 byte
alignment
0x5e50b242f227: note: pointer points here
00 00 c8 00 00 d0 00 d0 ff 00 d0 00 d0 00 d0 00 d0 00 d0 00 d0 00 d0
00 d0 ff 00 d0 00 d0 00 d0
^
}}}
I've just opened Github PR https://github.com/scummvm/scummvm/pull/6185
which fixes the issue with Maniac Mansion Deluxe, here.
--
Ticket URL: <https://bugs.scummvm.org/ticket/15179#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list