[Fb-contrib-commit] SF.net SVN: fb-contrib:[1665] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2011-05-05 01:00:44
|
Revision: 1665
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1665&view=rev
Author: dbrosius
Date: 2011-05-05 01:00:38 +0000 (Thu, 05 May 2011)
Log Message:
-----------
fix some SPP temporary trim() false positives
Modified Paths:
--------------
trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java
Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java
===================================================================
--- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java 2011-04-30 19:46:27 UTC (rev 1664)
+++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java 2011-05-05 01:00:38 UTC (rev 1665)
@@ -345,6 +345,12 @@
.addSourceLine(this));
}
}
+ if (stack.getStackDepth() > 0) {
+ OpcodeStack.Item item = stack.getStackItem(0);
+ if ("trim".equals(item.getUserValue())) {
+ item.setUserValue(null);
+ }
+ }
} else if (((seen >= ALOAD_0) && (seen <= ASTORE_3)) || (seen == ALOAD)) {
lastLoadWasString = false;
LocalVariableTable lvt = getMethod().getLocalVariableTable();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|