cognium-dev 4.13.1 → 4.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +21 -5
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -34356,8 +34356,7 @@ class CSharpCredit {
34356
34356
  }
34357
34357
  if (tainted.size === 0)
34358
34358
  return false;
34359
- const call = withoutStringLiterals(this.sinkText(sinkLine));
34360
- const rest = this.withoutSanitizerCalls(type, lastCallArguments(call) ?? call);
34359
+ const rest = this.withoutSanitizerCalls(type, this.receivedOperands(type, sinkLine));
34361
34360
  if (this.builtinSanitizes(type, rest))
34362
34361
  return false;
34363
34362
  for (const v of tainted)
@@ -34365,6 +34364,23 @@ class CSharpCredit {
34365
34364
  return true;
34366
34365
  return false;
34367
34366
  }
34367
+ receivedOperands(type, sinkLine) {
34368
+ const text = withoutStringLiterals(this.sinkText(sinkLine)).replace(/\s*;?\s*(?:\/\/.*)?$/, "");
34369
+ const property = /^\s*[A-Za-z_][\w.]*\.[A-Za-z_]\w*\s*=(?!=)\s*(.*)$/.exec(text);
34370
+ if (property)
34371
+ return property[1];
34372
+ if (!text.endsWith(")"))
34373
+ return text;
34374
+ const args2 = lastCallArguments(text);
34375
+ if (args2 === null)
34376
+ return text;
34377
+ const open = text.length - args2.length - 2;
34378
+ const callStart = text.slice(0, open).search(/[A-Za-z_][\w.]*\s*$/);
34379
+ const lastCall = callStart < 0 ? "" : text.slice(callStart);
34380
+ if (lastCall && this.withoutSanitizerCalls(type, lastCall).trim() === "")
34381
+ return text;
34382
+ return args2;
34383
+ }
34368
34384
  withoutSanitizerCalls(type, text) {
34369
34385
  const res = [];
34370
34386
  for (const { re, type: t } of CSHARP_SANITIZER_RES)
@@ -51970,7 +51986,7 @@ var colors = {
51970
51986
  };
51971
51987
 
51972
51988
  // src/version.ts
51973
- var version = "4.13.1";
51989
+ var version = "4.13.2";
51974
51990
 
51975
51991
  // src/formatters.ts
51976
51992
  var LIBRARY_API_SURFACE_TAG2 = "library-api-surface:caller-responsibility";
@@ -52522,8 +52538,8 @@ function generateSarifResults(results, crossFileData) {
52522
52538
 
52523
52539
  // src/build-info.ts
52524
52540
  var buildInfo = {
52525
- gitSha: "51b2da7",
52526
- builtAt: "2026-10-08T18:47:29.958Z"
52541
+ gitSha: "3937b7b",
52542
+ builtAt: "2026-10-08T19:28:03.582Z"
52527
52543
  };
52528
52544
 
52529
52545
  // src/utils/args.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognium-dev",
3
- "version": "4.13.1",
3
+ "version": "4.13.2",
4
4
  "description": "Static Application Security Testing CLI for detecting security vulnerabilities via taint tracking",
5
5
  "bin": {
6
6
  "cognium-dev": "dist/cli.js"
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@cognium/project-profile-detect": "1.1.2",
68
- "circle-ir": "4.13.1"
68
+ "circle-ir": "4.13.2"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/node": "^26.6.4",