Skip to content

Segfault during eval of a regex #10

@sharksforarms

Description

@sharksforarms

Found this interesting segfault today! Seems to happen using this regex, possibly others... But if you remove a single x, it no longer segfaults...

Here is a barebone example

use pcre2::bytes::RegexBuilder;

fn main() {
    let rgx = RegexBuilder::new().jit_if_available(true).build("xxxx|xxxx|xxxx").unwrap();
    rgx.is_match(&Vec::new()).unwrap();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions