matchlen may be wrong
Open
- Dominant language
- C
- Stars
- 1.5k
- Forks
- 212
- PR merge metrics
- No merged PRs in 30d
Description
`int match_len;`
`char* s = "aa";`
`char* p = ".*a.*a";`
`int match_idx = re_match(p, s, &match_len);`
expected: match_len == 2
result: match_len == 3
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the supplied C example through re_match, then trace how that entry point calculates match_len for `.*a.*a`. Done means the example reports match_len == 2 rather than 3, with the relevant existing behavior still covered by tests or a focused regression case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100