boostorg / boostorg/regex

Crash in regex_match

Open
#233 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
119
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Boost version being used: 1.83.0.4

```
inline bool regex_match(const std::basic_string& s,
const basic_regex& e,
match_flag_type flags = match_default)

```
My application is using the above function for a regex_match and it is crashing

```
0 core.so!boost::re_detail_500::perl_matcher >, boost::regex_traits > >::match_all_states() + 0x1ff

rax = 0x000055f29fe1ad01 rdx = 0x00007f234021a6b0

rcx = 0x00007f234021a6b0 rbx = 0x00007f232db9bc20

rsi = 0x0000000000000003 rdi = 0x00007f232db9bc20

rbp = 0x0000000000000000 rsp = 0x00007f232db9bae0

r8 = 0x00007f232db9c61c r9 = 0x0000000000000000

r10 = 0x00007f232db9c61c r11 = 0xffffffffffffffff

r12 = 0x00007f232db9c608 r13 = 0x00007f23400f9380

r14 = 0x00007f235931a5c0 r15 = 0x00007f235931a2e0

rip = 0x00007f2356ffe8df

Found by: given as instruction pointer in context

1 core.so!boost::re_detail_500::perl_matcher >, boost::regex_traits > >::match_prefix() + 0xb4

rbx = 0x0000000000000004 rbp = 0x0000000000000000

rsp = 0x00007f232db9bb00 r12 = 0x00007f232db9c608

r13 = 0x00007f23400f9380 r14 = 0x00007f232db9bc20

r15 = 0x00007f232db9bc20 rip = 0x00007f2356ffe424

Found by: call frame info

2 core.so!boost::re_detail_500::perl_matcher >, boost::regex_traits > >::match_imp() + 0x226

rbx = 0x00007f2340098950 rbp = 0x0000000000000000

rsp = 0x00007f232db9bb20 r12 = 0x00007f232db9c608

r13 = 0x00007f23400f9380 r14 = 0x00007f232db9bc20

r15 = 0x00007f232db9bc20 rip = 0x00007f2357c3be36

Found by: call frame info
```

What are the potential causes of crash ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.