Skip to content

Unsafe Rust: Integer overflow is not UB #3122

@hurryabit

Description

@hurryabit

Slide https://google.github.io/comprehensive-rust/unsafe-deep-dive/introduction/may_overflow.html in the Unsage Rust course claims that integer overflow is UB in release mode. This is simply not true. See https://doc.rust-lang.org/book/ch03-02-data-types.html#integer-overflow for details.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions