Open
Description
windows 11
clang 17.0.3 (installed via VisualStudio Community 2022)
main.cpp:
int main(int argc, char** argv)
{}
or
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInst, HINSTANCE hInstPrev, PSTR cmdline, int cmdshow)
{ }
compiled with (in a vcvars64.bat env):
clang -fsanitize=address main.cpp
or
clang++ -fsanitize=address main.cpp
running the resulting executable outputs:
==22088==interception_win: unhandled instruction at 0x7ff649f1efb3: 4c 8d 15 46 10 f5 ff 49
AddressSanitizer: CHECK failed: sanitizer_common_interceptors_memintrinsics.inc:239 "((__interception::real_memcpy)) != (0)" (0x0, 0x0) (tid=3232)
<empty stack>
(I also get the same error when using -fsanitize=address
on my significant c++ project, but this is the literal minimal repro lol).