=================================================================
==27797==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6100011229fc at pc 0x7fffe061e899 bp 0x7fffccd7f070 sp 0x7fffccd7f060
READ of size 4 at 0x6100011229fc thread T11
#0 0x7fffe061e898 in Tokenizer::KMP_Find(wchar_t const*, int, wchar_t const*, int) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1716
#1 0x7fffe061f5ee in Tokenizer::GetFirstTokenPosition(wchar_t const*, unsigned long, wchar_t const*, unsigned long) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1929
#2 0x7fffe061ef1d in Tokenizer::GetMacroExpandedText(Token const*, wxString&) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1843
#3 0x7fffe061e2a6 in Tokenizer::ReplaceMacroUsage(Token const*) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1665
#4 0x7fffe061aeb4 in Tokenizer::CheckMacroUsageAndReplace() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1089
#5 0x7fffe061a404 in Tokenizer::DoGetToken() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:966
#6 0x7fffe0619c55 in Tokenizer::PeekToken() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:904
#7 0x7fffe05eb56a in ParserThread::HandleFunction(wxString&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:2463
#8 0x7fffe05e3630 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1188
#9 0x7fffe05e93ce in ParserThread::HandleClass(ParserThread::EClassType) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:2112
#10 0x7fffe05e25c6 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:882
#11 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#12 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#13 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#14 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#15 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#16 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#17 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#18 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#19 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#20 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#21 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#22 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#23 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#24 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#25 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#26 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#27 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#28 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#29 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#30 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#31 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#32 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#33 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#34 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#35 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#36 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#37 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#38 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#39 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#40 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#41 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#42 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#43 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#44 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#45 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#46 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#47 0x7fffe05c369c in Parser::Parse(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:345
#48 0x7fffe05c8a45 in Parser::ParseFile(wxString const&, bool, bool) /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parser.cpp:670
#49 0x7fffe05e6f08 in ParserThread::HandleIncludes() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:1738
#50 0x7fffe05e14e2 in ParserThread::DoParse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:653
#51 0x7fffe05e0961 in ParserThread::Parse() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.cpp:533
#52 0x7fffe05f595c in ParserThread::Execute() /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/parserthread.h:192
#53 0x7ffff1aa05cf (libcodeblocks.so+0x6b35cf)
#54 0x7ffff2978642 in wxThread::CallEntry() ../git/include/wx/thrimpl.cpp:356
#55 0x7ffff2982d55 in wxThreadInternal::PthreadStart(wxThread*) ../git/src/unix/threadpsx.cpp:869
#56 0x7ffff29831d1 in wxPthreadStart ../git/src/unix/threadpsx.cpp:819
#57 0x7ffff083215b (/lib64/libpthread.so.0+0x815b)
#58 0x7ffff05650ae in clone (/lib64/libc.so.6+0x1040ae)
0x6100011229fc is located 0 bytes to the right of 188-byte region [0x610001122940,0x6100011229fc)
allocated by thread T11 here:
#0 0x7ffff6efde60 in operator new(unsigned long) /var/tmp/portage/sys-devel/gcc-6.4.0-r5/work/gcc-6.4.0/libsanitizer/asan/asan_new_delete.cc:60
#1 0x7ffff114e3ae in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) /var/tmp/portage/sys-devel/gcc-8.2.0-r6/work/build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_string.tcc:265
Thread T11 created by T0 here:
#0 0x7ffff6e67448 in __interceptor_pthread_create /var/tmp/portage/sys-devel/gcc-6.4.0-r5/work/gcc-6.4.0/libsanitizer/asan/asan_interceptors.cc:236
#1 0x7ffff297d739 in wxThreadInternal::Create(wxThread*, unsigned int) ../git/src/unix/threadpsx.cpp:1121
SUMMARY: AddressSanitizer: heap-buffer-overflow /home/obfuscated/projects/codeblocks/git/src/plugins/codecompletion/parser/tokenizer.cpp:1716 in Tokenizer::KMP_Find(wchar_t const*, int, wchar_t const*, int)
Shadow bytes around the buggy address:
0x0c208021c4e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c4f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c500: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c510: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c520: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
=>0x0c208021c530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00[04]
0x0c208021c540: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
0x0c208021c550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04
0x0c208021c560: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c570: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c208021c580: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==27797==ABORTING
This from a minimlal wxwidgets type of project...