HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow (/usr/lib/x86_64-linux-gnu/libasan.so.6+0x3d0b9) doctest version:v2.4.0 Operating ...
edited by onqtam Description The following test case causes ASAN to report stack-buffer-overflow. It seems that the array is viewed as NULL terminated string and the library tries to read 4 bytes from it instead of 3. DOCTEST_TEST_CASE("simple_test") {chararr[] = {'a','b','c'};...