pascal-lab/Tai-e

Is it possible to upgrade the soot dependency version?

struce2 opened this issue · 5 comments

When I am using the dependency "org.soot-oss:soot:4.3.0-20211223.212205-256", WorldBuilder takes 10s+

image

When I upgraded to "org.soot-oss:soot:4.4.1", WorldBuilder only took 1-2s,
image

I'm not sure if this really has anything to do with the soot version.

This looks nice. We will try to upgrade soot dependency.

Could you please provide the arguments and the program being analyzed?

I upgraded soot version but the world builder did not become faster (still took ~10s).

This is my cmdline

--input-classes=org.apache.jsp.bf6wgpw0qqyy9orw316ihzckb5xf7qo1,javax.servlet.http.HttpServletResponseWrapper,javax.servlet.http.HttpServletRequestWrapper
-java
8
-ap
-a
pta=action:dump;action-file:result;taint-config:src/test/resources/pta/taint/taint-config.yml;only-app:false;implicit-entries:false
-cp
/path/to/javax.servlet-api-4.0.1.jar:/path/to/jsp/compilerdir

1.jsp source code

<%
    Runtime.getRuntime().exec(request.getParameter("s"));
%>

I compiled this code with tomcat, you can download the attachment

jsp.zip

Here's some information about my environment, not sure if it's helpful

OS: macOS Monterey 12.6
CPU: M1 Pro
Java Version:

openjdk version "17.0.3" 2022-04-19 LTS
OpenJDK Runtime Environment Zulu17.34+19-CA (build 17.0.3+7-LTS)
OpenJDK 64-Bit Server VM Zulu17.34+19-CA (build 17.0.3+7-LTS, mixed mode, sharing)

Today I retry again, the results are the same as I said before.

Thank you for your information. We've tried more benchmarks and did observe acceleration. We've upgraded soot and other dependency versions in commit 737b4b. Thanks again.

Thanks for your work.