The code was built using CFLAGS and CXXFLAGS set to -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment. This exposed a number of memory issues in the tests that are fixed in this PR.
The code was built using CFLAGS and CXXFLAGS set to
-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment
. This exposed a number of memory issues in the tests that are fixed in this PR.