SootDiff: bytecode comparison across different Java compilers
Andreas Dann, Ben Hermann, Eric Bodden · 2019
Different Java compilers and compiler versions, e.g., javac or ecj, produce different bytecode from the same source code. This makes it hard to trace if the bytecode of an open-source library really matches the provided source code. Moreover, it prevents one from detecting which open-source libraries have been re-compiled and rebundled into a single jar, which is a common way to distribute an application. Such rebundling is problematic because it prevents one to check if the jar file contains open-source libraries with known vulnerabilities. To cope with these problems, we propose the tool SootDiff that uses Soot's intermediate representation Jimple, in combination with code clone detection techniques, to reduce dissimilarities introduced by different compilers, and to identify clones. Our results show that SootDiff successfully identifies clones in 102 of 144 cases, whereas bytecode comparison succeeds in 58 cases only.
Cited by 16 works. doi:10.1145/3315568.3329966
Authors
References
- AnO(ND) difference algorithm and its variations
- CCFinder: a multilinguistic token-based code clone detection system for large scale source code
- Discrete logarithms inGF(p)
- Clone detection using abstract syntax trees
- Experiment on the automatic detection of function clones in a software system using metrics
- Substring matching for clone detection and change tracking
- Deducing similarities in Java sources from bytecodes
- The Soot framework for Java program analysis: a retrospective
- Do developers update their library dependencies?
- Survey of Research on Software Clones