[Scummvm-cvs-logs] CVS: scummvm actor.cpp,1.25,1.26
Marcus Comstedt
marcus_c at users.sourceforge.net
Mon Feb 25 15:01:04 CET 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv9028
Modified Files:
actor.cpp
Log Message:
Added an assertion to catch buffer overruns in actorTalk().
Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/actor.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** actor.cpp 22 Feb 2002 16:06:09 -0000 1.25
--- actor.cpp 25 Feb 2002 23:00:32 -0000 1.26
***************
*** 972,975 ****
--- 972,976 ----
_msgPtrToAdd = charset._buffer;
_messagePtr = addMessageToStack(_messagePtr);
+ assert(_msgPtrToAdd - charset._buffer < sizeof(charset._buffer));
if (_actorToPrintStrFor==0xFF) {
More information about the Scummvm-git-logs
mailing list