Skip to content

Commit 308c29b

Browse files
hyperpolymathclaude
andcommitted
fix: eliminate self-scan false positives, fix broken API calls after cargo update
- Add strip_string_literals_rs() to analyzer: strips regular strings and raw strings before pattern matching, preventing detection-string literals (e.g. content.matches("unsafe {")) from triggering their own rules on self-scan - Handle character literals (especially '"') in the stripper to avoid incorrectly treating adjacent double-quote char literals as string starts - Add "runtime/" to walk_directory skip list — mutation artifacts from amuck are not source code and should not be scanned - Fix getrandom::getrandom → getrandom::fill (getrandom 0.3 API change) - Fix eframe 0.34 App trait: add required ui() stub, fix run_native closure to return Ok(Box::new(app)) as required by updated API - Fix http:// → https:// in kin.rs algorithm reference comment - Update panic-attacker.toml.example: rename [xray] → [assail] to match the 2026-02-08 binary rename (panic-attacker → panic-attack, xray → assail) - Resolve Cargo.lock libc version conflict (0.2.180 → 0.2.183) Self-scan result: 40 → 23 findings; Critical+High false positives eliminated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7667f97 commit 308c29b

6 files changed

Lines changed: 110 additions & 82 deletions

File tree

Cargo.lock

Lines changed: 51 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

panic-attacker.toml.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
22
# panic-attacker configuration file example
3-
# Copy to panic-attacker.toml and customize
3+
# Copy to panic-attack.toml and customize
44

5-
[xray]
6-
# Default verbosity for X-Ray scans
5+
[assail]
6+
# Default verbosity for assail scans
77
verbose = false
88

99
# Include hidden files in analysis

0 commit comments

Comments
 (0)