[Fb-contrib-commit] SF.net SVN: fb-contrib: [539] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-05-16 04:33:56
|
Revision: 539 Author: dbrosius Date: 2006-05-15 21:33:50 -0700 (Mon, 15 May 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=539&view=rev Log Message: ----------- make sure the supposed array size is > 0 Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java 2006-05-16 04:17:35 UTC (rev 538) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/StaticArrayCreatedInMethod.java 2006-05-16 04:33:50 UTC (rev 539) @@ -67,10 +67,12 @@ case SEEN_NOTHING: if (seen == BIPUSH) { arraySize = getIntConstant(); - state = SEEN_ARRAY_SIZE; + if (arraySize > 0) + state = SEEN_ARRAY_SIZE; }else if ((seen >= ICONST_M1) && (seen <= ICONST_5)) { arraySize = seen - ICONST_M1 - 1; - state = SEEN_ARRAY_SIZE; + if (arraySize > 0) + state = SEEN_ARRAY_SIZE; } break; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |