- Add RateLimitConfig for configuration management with YAML binding support. - Introduce RateLimitDecision to encapsulate the result of rate limit checks. - Implement RateLimitMetrics for OpenTelemetry metrics tracking. - Create RateLimitMiddleware for enforcing rate limits on incoming requests. - Develop RateLimitService to orchestrate instance and environment rate limit checks. - Add RateLimitServiceCollectionExtensions for dependency injection registration.
32 lines
905 B
JSON
32 lines
905 B
JSON
{
|
|
"$schema": "https://stellaops.io/schemas/sample-manifest.v1.json",
|
|
"sampleId": "gt-0004",
|
|
"version": "1.0.0",
|
|
"category": "basic",
|
|
"description": "Function pointer call to sink - REACHABLE",
|
|
"language": "c",
|
|
"expectedResult": {
|
|
"reachable": true,
|
|
"tier": "executed",
|
|
"confidence": 0.9
|
|
},
|
|
"source": {
|
|
"files": ["main.c"],
|
|
"entrypoint": "main",
|
|
"sink": "strcpy",
|
|
"vulnerability": "CWE-120"
|
|
},
|
|
"callChain": [
|
|
{"function": "main", "file": "main.c", "line": 18},
|
|
{"function": "<function_ptr>", "file": "main.c", "line": 19},
|
|
{"function": "copy_data", "file": "main.c", "line": 8},
|
|
{"function": "strcpy", "file": "<libc>", "line": null}
|
|
],
|
|
"annotations": {
|
|
"notes": "Indirect call via function pointer - harder for static analysis",
|
|
"difficulty": "medium"
|
|
},
|
|
"createdAt": "2025-12-17T00:00:00Z",
|
|
"createdBy": "corpus-team"
|
|
}
|