Skip to content

corpus: batch 4 — Java Spring CORS + Rust serde + C rand - #117

Merged
noeljackson merged 1 commit into
mainfrom
corpus/batch-4-java-rust-c
May 14, 2026
Merged

noeljackson merged 1 commit into
mainfrom
corpus/batch-4-java-rust-c

Conversation

@noeljackson

Copy link
Copy Markdown
Owner

Toward #84. Bench 18 → 21. 3 new matcher slugs. Recall 0.9730 → 0.9756, precision 1.0.

🤖 Generated with Claude Code

Bench 18 → 21. Three more matcher slugs.

- java-spring-cors-wildcard: @crossorigin(origins="*") + allowCredentials=true
- rust-deserialize-from-str-untrusted: serde_json::from_str + bincode::deserialize
- c-rand-for-security: rand() in a token-minting routine (security keywords required for matcher to fire — added in a doc comment)

c-rand fixture split into token.c (vulnerable, security-flavoured)
and dice.c (safe, no security keywords) because the matcher's
require_content gates on those keywords AT FILE LEVEL.

rust-serde issue includes rust-panic-on-untrusted in vulnSlugs —
both matchers correctly fire on `from_str(...).unwrap()` and would
otherwise count one as an FP.

Whole-bench: recall 0.9730 → 0.9756, precision 1.0.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@noeljackson
noeljackson merged commit b27fbbf into main May 14, 2026
3 checks passed
@noeljackson
noeljackson deleted the corpus/batch-4-java-rust-c branch May 14, 2026 15:38
@noeljackson noeljackson mentioned this pull request May 14, 2026
13 of 15 tasks
noeljackson added a commit that referenced this pull request May 15, 2026
…#117)

Bench 18 → 21. Three more matcher slugs.

- java-spring-cors-wildcard: @crossorigin(origins="*") + allowCredentials=true
- rust-deserialize-from-str-untrusted: serde_json::from_str + bincode::deserialize
- c-rand-for-security: rand() in a token-minting routine (security keywords required for matcher to fire — added in a doc comment)

c-rand fixture split into token.c (vulnerable, security-flavoured)
and dice.c (safe, no security keywords) because the matcher's
require_content gates on those keywords AT FILE LEVEL.

rust-serde issue includes rust-panic-on-untrusted in vulnSlugs —
both matchers correctly fire on `from_str(...).unwrap()` and would
otherwise count one as an FP.

Whole-bench: recall 0.9730 → 0.9756, precision 1.0.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
noeljackson added a commit that referenced this pull request May 18, 2026
…#117)

Bench 18 → 21. Three more matcher slugs.

- java-spring-cors-wildcard: @crossorigin(origins="*") + allowCredentials=true
- rust-deserialize-from-str-untrusted: serde_json::from_str + bincode::deserialize
- c-rand-for-security: rand() in a token-minting routine (security keywords required for matcher to fire — added in a doc comment)

c-rand fixture split into token.c (vulnerable, security-flavoured)
and dice.c (safe, no security keywords) because the matcher's
require_content gates on those keywords AT FILE LEVEL.

rust-serde issue includes rust-panic-on-untrusted in vulnSlugs —
both matchers correctly fire on `from_str(...).unwrap()` and would
otherwise count one as an FP.

Whole-bench: recall 0.9730 → 0.9756, precision 1.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant