Sergey "Shnatsel" Davidoff

Results 943 comments of Sergey "Shnatsel" Davidoff

I have a compiling but untested zune-jpeg adapter in #1876

Oh! I see 0.25 has shipped. Do you want any help with writing a release announcement?

So I've prototyped the `.reserved()` design and I can't say it's particularly great: https://github.com/Shnatsel/image/tree/raii-limits ~~There seems to be no way to put `#[must_use]` on the returned `Limits`. So it's easy...

On Discord, moulins [suggested](https://discord.com/channels/273534239310479360/592856094527848449/1193011792125894696) enforcing stacking of `Limits` using a lifetime: ```rust struct Limits Limit>; } ```

I'll work on adding limits to animation decoders such as GIF using the existing API, then see if there's any benefit to changing it once we have more internal use...

I do recommend trying `rav1e` on its own, since the issue is likely cause by it (`image` doesn't contain any unsafe code in this path). You can use [`cavif`](https://crates.io/crates/cavif) for...

Running miri with `MIRIFLAGS=-Zmiri-tree-borrows` might also be a good idea. It is a slightly more lax memory model that should not run into the "Stacked Borrows rules it violated are...

Ah, `crossbeam-epoch` actually has UB and they use custom MIRIFLAGS to paper over it in CI: https://github.com/crossbeam-rs/crossbeam/blob/3aa2598e3943c791e68d668d9f92e84e748bab65/ci/miri.sh#L25-L38 Let's copy their flags and see if `miri` turns up anything else. It'll...

On an M1 - not likely. The only thing I can think of that wouldn't be supported is SVE, and I doubt `rav1e` has any code using it considering that...

Great! That narrows things down a lot. It's best to report it to the rav1e issue tracker: https://github.com/xiph/rav1e/issues