[Scummvm-tracker] [ScummVM :: Bugs] #15546: Dreamweb French crashes right at the start
ScummVM :: Bugs
trac at scummvm.org
Sun Dec 1 23:54:44 UTC 2024
#15546: Dreamweb French crashes right at the start
-------------------+-------------------------------
Reporter: criezy | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: Engine: Dreamweb
Version: | Resolution:
Keywords: | Game:
-------------------+-------------------------------
Comment (by criezy):
The debugger gives us this info:
{{{
frame #5: 0x00000001001c3130
scummvm`DreamWeb::DreamWebEngine::printDirect(this=0x0000000116530800,
string=0x000000016fdf80e0, x=13, y=0x000000016fdf8100, maxWidth='\xf0',
centered=false, kerning=false) at print.cpp:141:21
138 uint16 i = offset;
139 do {
140 uint8 c = (*string)[0];
-> 141 uint8 nextChar = (*string)[1];
142 ++(*string);
143 if ((c == 0) || (c == ':')) {
144 return c;
(lldb) p c
(uint8) '\0'
}}}
So it appears that we have an empty string and `nextChar` is thus read
beyond the end of the string.
This should be fairly easy to fix...
--
Ticket URL: <https://bugs.scummvm.org/ticket/15546#comment:1>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list