Skip to content

v4.0.5

Latest

Choose a tag to compare

@prabhu prabhu released this 02 Dec 11:21
84979f0

This release fixes a hang of the native binary on Java projects (#436) and builds on chen 4.0.7 and cpg2 3.1.3.

The native image no longer hangs or crashes on Java records with compact constructors, module-info.java files, annotated receiver parameters, record patterns or intersection casts. Its reflection metadata is now generated from the runtime classpath by rules (JavaParser AST nodes, Babel nodes, Scala lazy val fields and enumerations, h2 storage classes, service providers and bundled resources) rather than taken only from traced runs, and a test fails when the committed metadata no longer matches the classpath. A fatal error in a worker, such as a StackOverflowError on a deeply nested expression, now fails the pass instead of leaving the process waiting (cpg2 3.1.3), and javasrc2cpg reports such a file as unparsed and keeps going (chen 4.0.7).

chen 4.0.7 also adds crypto source and sink tags for Python, PHP, Ruby, C and C++, and JavaScript and TypeScript alongside Java, and atom collects crypto flows for those languages. It names CommonJS default exports such as express() after their package, and stops the parse cache from copying an output directory that holds the cache.

Thanks to @almaz045 for reporting #436 with a precise analysis of both causes, and to August Johansson (@webdevred) for reporting AppThreat/chen#354.

What's Changed

  • Install Ruby in the post-publish smoke test by @prabhu in #435
  • Register every JavaParser AST node's fields in the native image metadata by @prabhu in #437

Full Changelog: v4.0.4...v4.0.5