Using highlight on search will create a crash

Bug #1863444 reported by Sopor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AirDC++
Undecided
Unassigned

Bug Description

If i want to highlight text when i search i can do that in Highlight, so i added a highlight like this:
Text to match: $Re:(?i:(DBRETAiL)$)
Text color: Red
Context: Search

If i now search for "dbretail" it will crash even if it wont find any match. Here is the crash log:
Code: c0000005 ( Access violation )
Version: AirDC++ 3.61a-26-g84d2d x64
Build: 4132
Major: 6
Minor: 2
Build: 9200
SP: 0
Type: 1
Time: 2020-02-15 23:04:11
TTH: TFYOVHPJKPF3E2CRGSU7VY34U2IKZTQSJLQ4EOQ

c:\Projects\airdc-git\boost\boost\regex\v4\perl_matcher_common.hpp(836): boost::re_detail_107200::perl_matcher<std::_String_iterator<std::_String_val<std::_Simple_types<char> > >=0xFFFFFFFF,std::allocator<boost::sub_match<std::_String_iterator<std::_String_val<std::_Simple_types<char> > > > >=0x000000FA,boost::regex_traits<wchar_t=0x00000000,boost::w32_regex_traits<wchar_t> > >::find_restart_any
c:\Projects\airdc-git\boost\boost\regex\v4\perl_matcher_common.hpp(315): boost::re_detail_107200::perl_matcher<std::_String_iterator<std::_String_val<std::_Simple_types<char> > >=0xC5E22218,std::allocator<boost::sub_match<std::_String_iterator<std::_String_val<std::_Simple_types<char> > > > >=0x00007FF7,boost::regex_traits<wchar_t=0xE3B9D200,boost::w32_regex_traits<wchar_t> > >::find_imp
c:\Projects\airdc-git\boost\boost\regex\v4\regex_search.hpp(145): boost::regex_search<std::_String_iterator<std::_String_val<std::_Simple_types<char> > >=0xC5E19D5F,wchar_t=0x00007FF7,boost::regex_traits<wchar_t=0x89B73E10,boost::w32_regex_traits<wchar_t> > >
c:\Projects\airdc-git\windows\SearchFrm.cpp(1702): SearchFrame::onCustomDraw
c:\Projects\airdc-git\windows\SearchFrm.h(83): SearchFrame::ProcessWindowMessage
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\atlmfc\include\atlwin.h(3572): ATL::CWindowImplBaseT<WTL::CMDIWindow=0xB3A615C8,ATL::CWinTraits<1456406528=0x00007FFD,64> >::WindowProc
atlthunk!0x7FFDB3A615C8: ?
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D59FC: SendMessageW
USER32!0x7FFDD42D5768: SendMessageW
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\atlmfc\include\atlwin.h(3307): ATL::CWindowImplRoot<ATL::CWindow>::ForwardNotifications
c:\Projects\airdc-git\windows\FilteredListViewCtrl.h(69): FilteredListViewCtrl<TypedTreeListViewCtrl<SearchFrame::SearchInfo=0xC5CB3592,1019=0x00007FF7,dcpp::HashValue<dcpp::TigerHash>=0x8A605DA0,std::hash<dcpp::HashValue<dcpp::TigerHash> *>=0x000002CC,std::equal_to<dcpp::HashValue<dcpp::TigerHash> *>=0x00000000,1>=0x00000000,SearchFrame=0x0000004E,1019=0x00000000,7>::ProcessWindowMessage
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\atlmfc\include\atlwin.h(3572): ATL::CWindowImplBaseT<WTL::CListViewCtrlT<ATL::CWindow>=0xB3A617D8,ATL::CWinTraits<1442840576=0x00007FFD,0> >::WindowProc
atlthunk!0x7FFDB3A617D8: ?
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D59FC: SendMessageW
USER32!0x7FFDD42D5768: SendMessageW
COMCTL32!0x7FFDC1B97715: CCSetScrollInfo
COMCTL32!0x7FFDC1BB6FA3: Ordinal20
COMCTL32!0x7FFDC1B7E5B8: DPA_GetPtr
COMCTL32!0x7FFDC1B7D437: DPA_GetPtr
COMCTL32!0x7FFDC1B7D367: DPA_GetPtr
COMCTL32!0x7FFDC1B7D1B3: DPA_GetPtr
COMCTL32!0x7FFDC1B7D0B7: DPA_GetPtr
COMCTL32!0x7FFDC1B92833: Ordinal395
COMCTL32!0x7FFDC1B91D29: Ordinal395
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D60BE: CallWindowProcW
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\atlmfc\include\atlwin.h(3575): ATL::CWindowImplBaseT<WTL::CListViewCtrlT<ATL::CWindow>=0xB3A61808,ATL::CWinTraits<1442840576=0x00007FFD,0> >::WindowProc
atlthunk!0x7FFDB3A61808: ?
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D60BE: CallWindowProcW
COMCTL32!0x7FFDC1B8B079: DefSubclassProc
COMCTL32!0x7FFDC1B8AD88: DSA_GetItem
COMCTL32!0x7FFDC1B8B079: DefSubclassProc
COMCTL32!0x7FFDC1B8AEA2: DSA_GetItem
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D60BE: CallWindowProcW
c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\atlmfc\include\atlwin.h(4623): ATL::CContainedWindowT<ATL::CWindow=0xB3A61958,ATL::CWinTraits<1442840576=0x00007FFD,0> >::WindowProc
atlthunk!0x7FFDB3A61958: ?
USER32!0x7FFDD42D63ED: CallWindowProcW
USER32!0x7FFDD42D5FBC: DispatchMessageW
USER32!0x7FFDD42E2753: IsWindowVisible
ntdll!0x7FFDD533FE14: KiUserCallbackDispatcher
win32u!0x7FFDD2321764: NtUserDispatchMessage
USER32!0x7FFDD42D5ECC: DispatchMessageW
c:\Projects\airdc-git\windows\WTL\atlapp.h(664): WTL::CMessageLoop::Run
c:\Projects\airdc-git\windows\main.cpp(452): Run
c:\Projects\airdc-git\windows\main.cpp(676): wWinMain
d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): __scrt_common_main_seh
KERNEL32!0x7FFDD3557BD4: BaseThreadInitThunk
ntdll!0x7FFDD530CED1: RtlUserThreadStart

Sopor (sopor)
Changed in airdcpp:
status: New → Fix Committed
Sopor (sopor)
Changed in airdcpp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers