[ scummvm-Bugs-871656 ] DIG: overlapping memory in memcpy() call

SourceForge.net noreply at sourceforge.net
Tue Jan 6 14:34:35 CET 2004


Bugs item #871656, was opened at 2004-01-07 00:34
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=871656&group_id=37116

Category: iMuse/Music
Group: The Dig
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Gray (khalek)
Assigned to: Nobody/Anonymous (nobody)
Summary: DIG: overlapping memory in memcpy() call

Initial Comment:
eriktorbjorn mentioned on irc the following valgrind
warning that occurs with the dig just after the intro
has been escaped, I subsequently confirmed it and here
it is...

==20575== Thread 2:
==20575== Source and destination overlap in
memcpy(0x3CFE726C, 0x3CFE8C43, 7674)==20575==    at
0x3C01F0DE: memcpy (mac_replace_strmem.c:113)
==20575==    by 0x809FD5E:
Scumm::IMuseDigital::bundleMusicHandler()
(imuse_digi.cpp:1339)
==20575==    by 0x809F5DA:
Scumm::IMuseDigital::music_handler(void*)
(imuse_digi.cpp:1189)
==20575==    by 0x8199DB4: Timer::handler(int)
(timer.cpp:99)


If these sections of memory are indeed supposed to be
overlapping memmove() should be used, otherwise this
needs to be fixed.  Either way it needs attention.

Latest CVS, Linux et cetera

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

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




More information about the Scummvm-tracker mailing list