Closed philipnbbc closed 4 months ago
However, no
global-buffer-overflow
error was reported; only a segmentation fault (e.g. shown when using justCXXFLAGS="-fsanitize=address"
).
Changing Debug to Release (see issue comment) exposed the buffer overflow error
Issue #74 was (partially) replicated by building libMXF on Debian 11 with address sanitizer options as suggested for GCC here. However, no
global-buffer-overflow
error was reported; only a segmentation fault (e.g. shown when using justCXXFLAGS="-fsanitize=address"
).Additional installs required:
apt install libasan8 libubsan1
Build:CXXFLAGS="-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize=null -fno-sanitize=alignment" cmake -DCMAKE_BUILD_TYPE=Debug ../bmx/deps/libMXF
Running
MXFDump
onpoc.mxf
(provided in #74) results inFixes #74