Skip to content

Commit

Permalink
issue #9229 Crash with Segmentation fault in ClassDefImpl::mergeMembers
Browse files Browse the repository at this point in the history
Incorrect translation of regular expression:
```
  static const std::regex reg("[[:space:]:|]",std::regex::optimize);
```
to
```
  static const reg::Ex reg(R"([\s|])");
```
this should have been:
```
  static const reg::Ex reg(R"([\s:|])");
```
  • Loading branch information
albert-github committed Mar 28, 2022
1 parent 91095fb commit 5930ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vhdldocgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ void VhdlDocGen::parseFuncProto(const QCString &text,QCString& name,QCString& re

QCString VhdlDocGen::getIndexWord(const QCString &c,int index)
{
static const reg::Ex reg(R"([\s|])");
static const reg::Ex reg(R"([\s:|])");
auto ql=split(c.str(),reg);

if (index < static_cast<int>(ql.size()))
Expand Down

0 comments on commit 5930ab7

Please sign in to comment.