Displaying 1 result from an estimated 1 matches for "l1138".
Did you mean:
1138
2017 Dec 16
3
Clang 5, UBsan, runtime error: addition of unsigned offset to X overflowed to Y
We have code that processes a buffer in the forward or backwards
direction. It looks similar to the following
(https://github.com/weidai11/cryptopp/blob/master/adv-simd.h#L1138):
uint8_t * ptr = ...
size_t len = ...
size_t inc = 16;
if (flags & REVERSE_DIRECTION)
{
ptr += len - inc;
inc = 0-inc;
}
while (len > 16)
{
// process blocks
ptr += inc;
len -= 16;
}
Clang 5.0 and UBsan is producing findings
(https://travis-ci.org/noloader/cryptopp/...