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

Give more meaningful error in UiaOperationAbstraction when MalformedBytecode is returned from the operation #72

Open
beweedon opened this issue Apr 13, 2021 · 0 comments

Comments

@beweedon
Copy link
Contributor

MalformedBytecode can occur when:

  • The size of the bytecode is above the maximum size
  • The bytecode version isn't supported by the provider-side UIA
  • An unsupported opcode is used
  • An opcode is used improperly (e.g. it's at the end of the bytecode stream even though it should take arguments)
  • Generally any part of the initial remote operation state (e.g. bytecode, imports, requested results, etc.) fails to be read on the remote side

Currently UiaOperationAbstraction throws E_FAIL from Resolve when MalformedBytecode is encountered. It might be good to throw a more informative error, or provide a mechanism to detect when the error is due to MalformedBytecode.

@zhayuli

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

No branches or pull requests

1 participant