[ scummvm-Bugs-1368343 ] SCUMM: Bad memory access in filename substitution

SourceForge.net noreply at sourceforge.net
Mon Nov 28 17:09:31 CET 2005


Bugs item #1368343, was opened at 2005-11-28 17:09
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=1368343&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: Unknown Crash/Other
Group: All Games
Status: Open
Resolution: None
Priority: 5
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: SCUMM: Bad memory access in filename substitution

Initial Comment:
This happens in the latest CVS snapshot, at least, and
has been happening for a while.

In some cases, the generateSubstResFileName_() is
called with 'filename' being an empty string. In this
case, it will be accessing filename[-1], which could be
bad.

I'm not sure exactly when this happens - I'm filing
this just so that Eugene won't forget about it - but
I'll give two examples of games where it happens for me:

* Monkey Island 1, data files monkey1.000 and
monkey1.001. To run this, I use a "monkey1" target.

* The FM-Towns Fate of Atlantis demo. To run this, I
use a "atlantisa" target.

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

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




More information about the Scummvm-tracker mailing list