Closed calcmogul closed 3 years ago
These are all test bugs
https://github.com/wpilibsuite/allwpilib/blob/main/ntcore/src/test/native/cpp/ValueTest.cpp#L231
Calling ConvertToC multiple times with an NT_Value as a parameter will leak the allocation. NT_DisposeValue must be called again before each extra call to ConvertToC
I got the following warnings from GCC 11's address sanitizer.
I ran ntcore_test from a CMake build of https://github.com/calcmogul/allwpilib/tree/sanitizers with the Asan build type.