Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| compiler-rt/lib/hwasan/hwasan.cpp | ||
|---|---|---|
| 469–473 | if (LIKELY(tail_sz <= short_size)) return -1; sptr offset = sz - tail_sz + short_size; return offset < 0 ? 0 : offset; The condition that tail_sz <= short_size makes it impossible for 'offset < 0' (other than if overflow happens? - that should have stricter handling than simply returning a zero offset) | |
| compiler-rt/lib/hwasan/hwasan.cpp | ||
|---|---|---|
| 469–473 | Note that can be "sz < tail_sz" when unaligned begin and end in the same granule. | |
The condition that tail_sz <= short_size makes it impossible for 'offset < 0' (other than if overflow happens? - that should have stricter handling than simply returning a zero offset)