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

Handle protowire.ConsumeField errors not consuming any data #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mb-syss
Copy link

@mb-syss mb-syss commented Jul 26, 2024

I encountered cases where ConsumeField will return an error and consumeBytes will not advance the position. This results in a infinite loop (and memory usage). Skipping to the next byte now to ensure progress.

@arkadiyt
Copy link
Owner

Can you provide a file that exhibits this behavior?

@mb-syss
Copy link
Author

mb-syss commented Jul 29, 2024

Unfortunately I cannot share the binary for which I encountered the issue.

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 this pull request may close these issues.

2 participants