Skip to content

fix: preserve fixed metadata state when set_program fails - #155

Closed
pro-utkarshM wants to merge 1 commit into
qmonnet:mainfrom
volnlabs:fix/fixed-mbuff-failed-set-program
Closed

pro-utkarshM wants to merge 1 commit into
qmonnet:mainfrom
volnlabs:fix/fixed-mbuff-failed-set-program

Conversation

@pro-utkarshM

Copy link
Copy Markdown

Validate the replacement program before installing its metadata buffer and pointer offsets. Otherwise a verifier error leaves the old bytecode loaded with the replacement's metadata layout.

Cover default and custom verifier rejection with a regression test that checks the original program still reads the correct packet length.

Validate the replacement program before installing its metadata buffer
and pointer offsets. Otherwise a verifier error leaves the old bytecode
loaded with the replacement's metadata layout.

Cover default and custom verifier rejection with a regression test that
checks the original program still reads the correct packet length.

Signed-off-by: Utkarsh Maurya <projects.utkarshMaurya@gmail.com>
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.

1 participant