bbc / bmx

Library and utilities to read and write broadcasting media files. Primarily supports the MXF file format
BSD 3-Clause "New" or "Revised" License
62 stars 17 forks source link

Add some fixes found when building with -fsanitize #79

Closed philipnbbc closed 3 months ago

philipnbbc commented 3 months ago

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.