Details
Diff Detail
- Build Status
Buildable 12686 Build 12686: arc lint + arc unit
Event Timeline
include/__hash_table | ||
---|---|---|
2141 | With rehash(0) this is 0 & (0 - 1), which triggers unsigned-integer-overflow. |
include/__hash_table | ||
---|---|---|
2141 | Grumble, grumble. That's not UB, that's just UBSan whining. |
include/__hash_table | ||
---|---|---|
2141 | FWIW, this check isn't enabled in ubsan by default. Android uses it for testing and mititgation in a handful of projects because it does catch errors (stagefright was an unsigned overflow issue). It's good to keep the libc++ headers clean of these issues so we're not dictating the compile flags of libc++ users. |
With rehash(0) this is 0 & (0 - 1), which triggers unsigned-integer-overflow.