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

xdr_inline invalid memory access: #11

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

martinetd
Copy link
Member

  • inline_xdr_string tries to compute strlen on strings that are not
    necessarily valid, for a value we do not need
  • mem_free does not use its second argument, which already was invalid
    in inline_xdr_bytes and now is in inline_xdr_free. mem_free has a comment
    cautioning about using second argument where it is defined, hopefully -1
    should be easier to spot than some uninitialized variable if someone ever
    tries to change it.

Signed-off-by: Dominique Martinet [email protected]

 - inline_xdr_string tries to compute strlen on strings that are not
necessarily valid, for a value we do not need
 - mem_free does not use its second argument, which already was invalid
in inline_xdr_bytes and now is in inline_xdr_free. mem_free has a comment
cautioning about using second argument where it is defined, hopefully -1
should be easier to spot than some uninitialized variable if someone ever
tries to change it.

Signed-off-by: Dominique Martinet <[email protected]>
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