You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently had an issue with Adiar, which uses TPIE. Running the example with clang’s undefined behavior sanitizer revealed unsigned overflows when computing offsets in the following method:
I recently had an issue with Adiar, which uses TPIE. Running the example with clang’s undefined behavior sanitizer revealed unsigned overflows when computing offsets in the following method:
tpie/tpie/array.h
Line 56 in 663a261
The overflow happens e.g. in case of
n = (size_t) -1
. Usingssize_t
(i.e. the signed version ofsize_t
) as argument seems to fix the issue.The text was updated successfully, but these errors were encountered: