Boost C++ Libraries: Ticket #13126: regex with ICU crashes with named sub-expressions https://svn.boost.org/trac10/ticket/13126 <p> In "icu.hpp" regex match/search wrappers use internal match_results object instead of the one passed in the args. On success the results are copied, but the named sub-expressions pointer (shared with the regex object) is not copied. This pointer is not checked for validity in the methods accessing named sub-expressions.<br /> Client code using named sub-expressions will crash with ICU wrappers (but work fine without them). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13126 Trac 1.4.3 zhivkot@… Mon, 17 Jul 2017 00:10:04 GMT <link>https://svn.boost.org/trac10/ticket/13126#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13126#comment:1</guid> <description> <p> Also to add that my current workaround is to use implementation specific public methods to set the named sub-expressions pointer: myMatchResults.set_named_subs( myU32regex.get_named_subs() ); </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 01 Aug 2017 18:44:49 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/13126#comment:2 https://svn.boost.org/trac10/ticket/13126#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for this, fixed in <a class="ext-link" href="https://github.com/boostorg/regex/commit/5c543a8e2b88e17607885a6cc23466328c6e0e5f"><span class="icon">​</span>https://github.com/boostorg/regex/commit/5c543a8e2b88e17607885a6cc23466328c6e0e5f</a> </p> Ticket