[ scummvm-Bugs-1734416 ] ITE: Random crashes with the MIDI parser

SourceForge.net noreply at sourceforge.net
Sun Jun 10 16:20:23 CEST 2007


Bugs item #1734416, was opened at 2007-06-10 17:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1734416&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: iMuse/Music
Group: Inherit the Earth
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Filippos (thebluegr)
Assigned to: Nobody/Anonymous (nobody)
Summary: ITE: Random crashes with the MIDI parser

Initial Comment:
Using both ScummVM 0.10.0 branch and 0.11.0 svn under Windows Vista, compiled with MSVC8. ITE is English CD Talkie

The MIDI parser can crash at random places in ITE. It always crashes at sound/midiparser_xmidi.cpp in MidiParser_XMIDI::readVLQ2 at line 58:

58	while (!(pos[0] & 0x80)) {
59		value += *pos++;
60	}

It always crashes at that while loop. Perhaps it is trying to read an invalid location. When it crashes, pos is always 0 (bad pointer).

I've seen it crashing when you change scenes between the general map and the faire and at the Boar Castle, when you enter the Boar castle or when you enter the Boar King's room. As I said, it's pretty random, and it looks like to be some sort of timing/race condition with the MIDI music

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1734416&group_id=37116




More information about the Scummvm-tracker mailing list