1
0
Fork 0
mirror of https://github.com/imjasonh/rustvulncheck synced 2026-07-06 19:02:25 +00:00
No description
Find a file
Claude 76921cfde0
Precise golden integration tests and scanner fixes for edge cases
Scanner fixes:
- Block comment tracking: skip lines inside /* ... */ blocks
- Skip `use` statements from being matched as call sites
- Free function call detection: `parse_cookie(...)` after direct import
- Type-aware suppression: when the receiver's type is positively known
  and doesn't match the vulnerable type, suppress the finding entirely
  (e.g., .abort() on MyHandle vs JoinHandle)

Golden test improvements:
- All assertions are now specific: exact counts (deps, reachable symbols,
  files scanned), exact advisory IDs listed vs reachable, exact call site
  locations (file:line), exact confidence levels (HIGH vs MEDIUM)
- Each test documents its fixture layout and expected positive/negative
  findings in a header comment

New edge_cases_project fixture covering:
- Aliased imports (Decoder as HyperDecoder → dec.decode detected)
- Free function calls (parse_cookie after direct import)
- Commented-out code (block & line comments correctly skipped)
- False positive suppression (abort() on MyHandle, parse() on String)
- Typed method calls (jar.add(c) with explicit CookieJar type)

38 tests total (33 unit + 5 integration), all passing.

https://claude.ai/code/session_011sdj18ZvQYbDVwEKqrWDj1
2026-03-25 13:01:33 +00:00
.github/workflows Add analyze command to detect reachable vulnerable symbols in Rust projects 2026-03-25 10:50:22 +00:00
src Precise golden integration tests and scanner fixes for edge cases 2026-03-25 13:01:33 +00:00
tests Precise golden integration tests and scanner fixes for edge cases 2026-03-25 13:01:33 +00:00
.gitignore Add Phase 1: Offline Database Enrichment pipeline 2026-03-25 01:28:25 +00:00
Cargo.lock Add syn-based type tracking and golden codebase integration tests 2026-03-25 12:44:13 +00:00
Cargo.toml Add syn-based type tracking and golden codebase integration tests 2026-03-25 12:44:13 +00:00
design.md Create design.md 2026-03-25 06:39:54 -04:00