check-arithmetic
Detect integer overflow, underflow, precision loss, and unsafe type casting in Rust/Anchor source code to prevent arithmetic vulnerabilities in Solana programs.
Instructions
Detect integer overflow/underflow, precision loss, and unsafe type casting.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_code": "<source_code>"
},
"name": "check-arithmetic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes | Rust/Anchor source code |