Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exponential regex #64

Closed
jarmar opened this issue May 6, 2021 · 0 comments · Fixed by #66
Closed

Exponential regex #64

jarmar opened this issue May 6, 2021 · 0 comments · Fixed by #66

Comments

@jarmar
Copy link
Contributor

jarmar commented May 6, 2021

This regex in src/tracer/ebpf/syscall_schema.h has exponential complexity due to the double + signs:

std::regex argFieldTypeName("(field:)([a-zA-Z0-9_\\s\\*]+)+(;)");

This caused ProcMon to hang on startup on my machine. The solution should be to remove the second +.

jarmar added a commit to jarmar/ProcMon-for-Linux that referenced this issue May 6, 2021
jahabibi pushed a commit that referenced this issue May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant