-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added SpringBootAnalyzer #531
Conversation
…r sets better Java major in ClassVisitor
lang-java/src/main/java/org/eclipse/steady/java/SpringBootAnalyzer.java
Outdated
Show resolved
Hide resolved
lang-java/src/main/java/org/eclipse/steady/java/SpringBootAnalyzer.java
Outdated
Show resolved
Hide resolved
rest-backend/src/main/java/org/eclipse/steady/backend/repo/V_AppVulndepRepository.java
Show resolved
Hide resolved
@serenaponta I updated the JavaDoc of |
@serenaponta please wait a little more before merging, I might have found another problem in the meantime |
Found it: If the Fixed by calling |
Added
SpringBootAnalyzer
to inspect and instrument Spring Boot applications packaged as executable, self-contained JARs (with foldersBOOT-INF/lib
andBOOT-INF/classes
). For example, a given executabletarget/foo.jar
will be rewritten totarget/vulas/target/foo-steady-instr.jar
.In this context, the following other improvements were implemented:
ClassVisitor
sets the major version of the instrumented class to major of the original file, unless that is bigger than the JVM at hand (in which case this major is taken).vulas.core.instr.blacklist.classes
has been reduced to the packagesorg.apache.maven.surefire,org.junit,org.eclipse.steady,org.jacoco.
, which makes that more traces will be collected, esp. forjackson
andjavassist
. This is possible because the instrumentation agentlang-java...with-dependencies
repackages many more classes than before.plugin-maven
does not depend any more onlang-java...with-dependencies
, which requires that this file has to be copied explicitly before any instrumentation (the corresponding command is printed to the console).VulasConfiguration
.ZipSlipAnalyzer
log messages in case of non-problematic files.VulasAgentMojo
.TODO
s