Description
The raster Rust crate's crop function (src/editor.rs) clamps the crop width/height against source dimensions but only clamps the offset_x/offset_y parameters against 0, never against the source width/height.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| kosinix | raster | ≤ 0.2.1 | — |
References
- https://github.com/kosinix/raster/issues/30 third-party-advisory