Commit 76d6c02
Sentinel: Validate GPU compression output sizes
Added security validation in `src/batch_cuda.rs` to check output sizes returned by the GPU kernel.
This prevents potential buffer overflows or panics (DoS) if the GPU returns corrupted or malicious size values.
Verified that `offset + size <= total_output_bound` and `size <= expected_bound`.
Co-authored-by: 404Setup <[email protected]>1 parent 14bf153 commit 76d6c02
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
123 | 134 | | |
124 | 135 | | |
125 | 136 | | |
| |||
0 commit comments