[Fb-contrib-commit] SF.net SVN: fb-contrib: [1008] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-03-16 17:35:13
|
Revision: 1008 http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1008&view=rev Author: dbrosius Date: 2008-03-16 10:35:14 -0700 (Sun, 16 Mar 2008) Log Message: ----------- avoid index out of bounds exceptions Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2008-03-16 02:45:28 UTC (rev 1007) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/ConfusingFunctionSemantics.java 2008-03-16 17:35:14 UTC (rev 1008) @@ -169,7 +169,7 @@ String calledRet = Type.getReturnType(calledSig).getSignature(); if ("V".equals(calledRet)) { int calledObjOffset = Type.getArgumentTypes(calledSig).length; - if (stack.getStackDepth() >= calledObjOffset) { + if (stack.getStackDepth() > calledObjOffset) { OpcodeStack.Item item = stack.getStackItem(calledObjOffset); int reg = item.getRegisterNumber(); ParmUsage pu = possibleParmRegs.get(Integer14.valueOf(reg)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |