[Scummvm-cvs-logs] CVS: tools descumm.cpp,1.75,1.76
Max Horn
fingolfin at users.sourceforge.net
Thu Sep 11 04:31:07 CEST 2003
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv1880
Modified Files:
descumm.cpp
Log Message:
add an assert to ensure i is positive
Index: descumm.cpp
===================================================================
RCS file: /cvsroot/scummvm/tools/descumm.cpp,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- descumm.cpp 11 Sep 2003 11:00:17 -0000 1.75
+++ descumm.cpp 11 Sep 2003 11:20:42 -0000 1.76
@@ -265,6 +265,8 @@
i = get_byte();
else
i = get_word();
+
+ assert(i >= 0);
if (scriptVersion <= 2 &&
i < ARRAYSIZE(var_names2) && var_names2[i]) {
More information about the Scummvm-git-logs
mailing list