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

Delimiters in a variable matching not properly tracked. #14

Open
LinZhihao-723 opened this issue Dec 15, 2024 · 0 comments
Open

Delimiters in a variable matching not properly tracked. #14

LinZhihao-723 opened this issue Dec 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@LinZhihao-723
Copy link
Contributor

Bug

The current implementation doesn't correctly track the delimiters in a variable matching when simulating DFAs. Instead of backtracking to the last one, we should backtrack to the first one seen in the simulation.

log-surgeon version

bf3cf2b

Environment

Any

Reproduction steps

  • Add a schema variable that contains multiple delimiters, n
  • Parse a log that contains a substring (surrounded by delimiters) that matches until the last delimiter
  • The lexer will not backtrack to the first delimiter in the substring
@LinZhihao-723 LinZhihao-723 added the bug Something isn't working label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant