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

internal/match: fix panic at EOF when TraceDFA > 0 #36

Merged
merged 1 commit into from
Jan 27, 2021
Merged

Conversation

jba
Copy link
Contributor

@jba jba commented Jan 14, 2021

With TraceDFA > 0, Scan sometimes panics by indexing a slice with a
negative value. This fixes the panic.

The fix is trivial: index the slice with a variable that was already
adjusted non-negative for the purpose but not used.

With TraceDFA > 0, Scan sometimes panics by indexing a slice with a
negative value. This fixes the panic.

The fix is trivial: index the slice with a variable that was already
adjusted non-negative for the purpose but not used.
@google-cla google-cla bot added the cla: yes CLA for author on file label Jan 14, 2021
@rsc rsc merged commit 5aa300f into google:main Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA for author on file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants