Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix small ubsan issue in EventBaseAtomicNotificationQueue
Summary: `sizeof()` produces an unsigned value, and `result` can be `-1`, so this comparison was technically UB. For extra fun, triggering a ubsan issue in this location changes `errno`. This probably shouldn't actually be detected as a ubsan issue, since the `sizeof()` is trivially known at compile time, but C++ semantics say otherwise :( Fixes: #1953 Reviewed By: vitalii-topoliuk Differential Revision: D44110957 fbshipit-source-id: f41f7d3ef9fb71c0e5368f5c4ebbabd814b91609
- Loading branch information