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

fix(cfi): Skip functions with unknown unwind codes #234

Merged
merged 2 commits into from
May 12, 2020

Conversation

jan-auer
Copy link
Member

Since unwind operator codes are variable-length encoded, it is not possible to reliably continue parsing once an unknown code has been encountered. Other functions in the same file can still continue valid unwind information, so rather than failing the entire file, just skip the invalid entries.

This is an expected error. Since more unwind operators could be added in the future, we should be lenient.

@jan-auer jan-auer requested a review from a team May 12, 2020 06:42
@jan-auer jan-auer self-assigned this May 12, 2020
* master:
  build(py): Pin flake8 and restore python linting (#235)
@jan-auer jan-auer merged commit 96b5184 into master May 12, 2020
@jan-auer jan-auer deleted the fix/skip-invalid-opcodes branch May 12, 2020 10:05
jan-auer added a commit that referenced this pull request May 12, 2020
* master:
  fix(cfi): Skip functions with unknown unwind codes (#234)
  build(py): Pin flake8 and restore python linting (#235)
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.

None yet

2 participants