Re:Heap-based buffer overflow in Sudo
by j16sdiz on Tuesday January 26, 2021 @08:44PM
(#25923280)
It is a uid (as in user id), not uuid.
Don’t think you can use sum type for that
[ Parent
| on HN ]
Re:Heap-based buffer overflow in Sudo
by steveklabnik on Tuesday January 26, 2021 @08:51PM
(#25923330)
It is a user id, but that bug happened because a -1 was being returned as an error code in one place, and then being accidentally passed in another place. The sum type would be used as the “this possibly errors” return type in the first function, making the bug effectively impossible to happen by accident.