On 2/2/23 1:26 PM, Fabio Valentini wrote:
I'm not familiar with this crate's code (it might be fine,
for all I
know), but the tests themselves look like they're just begging for UB
and crashes :)
I think Josh is more familiar with this kind of stuff, but I think it
*should* be safe to just skip the test that crashes for Fedora builds
of rust-fallible_collections.
Yeah, it's a bogus test input:
https://github.com/vcombey/fallible_collections/issues/35#issuecomment-14...
Even on 64-bit, that would be UB to create the invalid Vec/slice, but it
seems in practice that goes unnoticed and the impossible alloc fails as
the test intends.