AppThreat / atom

Atom is a novel intermediate representation for applications and a standalone tool that is powered by chen.
https://appthreat.com
Apache License 2.0
39 stars 2 forks source link

Update chen for improved performance with header analysis #88

Closed prabhu closed 8 months ago

prabhu commented 8 months ago

-l h must be a bit faster now. This is achieved by:

{
      "code" : "#include<sys/socket.h>",
      "fullName" : "sys/socket.h",
      "signature" : "sys/socket.h",
      "fileName" : "",
      "lineNumber" : null,
      "columnNumber" : null,
      "usages" : [
      ]
    },

instead of

{
      "code" : "",
      "fullName" : "/usr/include/asm-generic/socket.h:12:12:SO_REUSEADDR:0",
      "signature" : "",
      "fileName" : "/usr/include/asm-generic/socket.h",
      "lineNumber" : 12,
      "columnNumber" : null,
      "usages" : [

If you prefer the depth and detail shown in (2), use -l c.

prabhu commented 8 months ago

Creating a usage slice using -l h is now finishing in GitHub actions in around an hour. With 32GB heap memory, it is finishing in under 15 minutes.