Skip to content

Commit

Permalink
Use generic type for c/c++ instead of conan
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

Updated wrapdb

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

Load evinser dynamically. Fixes #686

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>

Update atom to bring improved peformance in header analysis mode
  • Loading branch information
prabhu committed Nov 2, 2023
1 parent 0456929 commit a3bc5f1
Show file tree
Hide file tree
Showing 8 changed files with 731 additions and 236 deletions.
14 changes: 10 additions & 4 deletions bin/cdxgen.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
import { findUpSync } from "find-up";
import { load as _load } from "js-yaml";
import { postProcess } from "../postgen.js";
import { analyzeProject, createEvinseFile, prepareDB } from "../evinser.js";
import { ATOM_DB } from "../utils.js";

// Support for config files
Expand Down Expand Up @@ -490,6 +489,7 @@ const checkPermissions = (filePath) => {
}
// Evidence generation
if (args.evidence) {
const evinserModule = await import("../evinser.js");
const evinseOptions = {
_: args._,
input: options.output,
Expand All @@ -503,10 +503,16 @@ const checkPermissions = (filePath) => {
dataFlowSlicesFile: options.dataFlowSlicesFile,
reachablesSlicesFile: options.reachablesSlicesFile
};
const dbObjMap = await prepareDB(evinseOptions);
const dbObjMap = await evinserModule.prepareDB(evinseOptions);
if (dbObjMap) {
const sliceArtefacts = await analyzeProject(dbObjMap, evinseOptions);
const evinseJson = createEvinseFile(sliceArtefacts, evinseOptions);
const sliceArtefacts = await evinserModule.analyzeProject(
dbObjMap,
evinseOptions
);
const evinseJson = evinserModule.createEvinseFile(
sliceArtefacts,
evinseOptions
);
bomNSData.bomJson = evinseJson;
if (args.print && evinseJson) {
printOccurrences(evinseJson);
Expand Down
Loading

0 comments on commit a3bc5f1

Please sign in to comment.