vfx-rs / openexr-bind

cppmm bindings for OpenEXR
BSD 3-Clause "New" or "Revised" License
11 stars 6 forks source link

RgbaInputFile::set_frame_buffer is unsound #34

Closed anderslanglands closed 3 years ago

anderslanglands commented 3 years ago

Going through the long-form docs and realised RgbaInputFile::set_frame_buffer is unsound because we're giving it a non-mut slice to read into. Naughty. Changing this to a mut ref will mean we can't do the chunked read from readRgba3 example in safe Rust.

anderslanglands commented 3 years ago

nvm my eyes weren't working properly