vcombey / fallible_collections

impl fallible collections in rust, quite as describe in RFC 2116
Apache License 2.0
31 stars 14 forks source link

remove all get_unchecked_mut occurances. #42

Closed bmickael closed 1 year ago

bmickael commented 1 year ago

The use of get_unchecked_mut beyond the boundaries of a slice, as is the case in the file node.rs, leads at best to a runtime panic, and at worst to completely undefined behavior.

All the integration tests for Turbofish OS are now working thanks to the following modifications. Even though I haven't noticed any memory violations with fsanitize=address, the code I'm presenting here looks a bit like bullshit, doesn't it?

:cow: