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 can reproduce this with clang 10.0.0.1, Boost 1.69.0 (on Fedora 32).
It appears that when the container is empty, clear() takes a null pointer + 1 as the beginning of a loop (a loop which will do nothing because its end is a null pointer as well...), but such arithmetic with null pointer is considered "undefined behavior" in C++.
This code:
compiled with clang and ubsan
clang++ -fsanitize=undefined
fails with:The text was updated successfully, but these errors were encountered: