You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return MAP_FAILED when mmap fails
I don't properly remember why we ended up with a hodgepodge of return values, but #3218 correctly points out that we are supposed to return `MAP_FAILED`. This should fix that return value and also add sufficient tests to prevent making a similar mistake.
Return MAP_FAILED when mmap fails
I don't properly remember why we ended up with a hodgepodge of return values, but rust-lang/miri#3218 correctly points out that we are supposed to return `MAP_FAILED`. This should fix that return value and also add sufficient tests to prevent making a similar mistake.
Upon failure, mmap is supposed to return MAP_FAILED, not nullptr.
miri/src/shims/unix/mem.rs
Line 75 in 12c868a
Currently mmap returns null pointer in miri.
Is this intentional or accidental?
The text was updated successfully, but these errors were encountered: