Undefined behavior in bit shift
This was revealed by gcc's undefined behavior sanitizer. The files Src/Containers/F{,Sub}Octree.hpp (“include” instead of “Src” in recent branches) contain several instances of:
~(~0x00LL << (3 * some_expression ))
where ~0x00LL
evaluates to -1LL
. Left-shifting a negative number is
undefined behavior in C++.
Solution: sed -i 's/~0x00LL/~0ULL/' Src/Containers/F{,Sub}Octree.hpp
Impacted versions: every branch and tagged commit is affected.