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

unexpected EOF while decoding 260 bytes #12

Closed
dweidenfeld opened this issue Mar 14, 2018 · 2 comments
Closed

unexpected EOF while decoding 260 bytes #12

dweidenfeld opened this issue Mar 14, 2018 · 2 comments

Comments

@dweidenfeld
Copy link

Maybe you could help me solving my issue.

I've posted all necessary information in issue prashanthpai/sunrpc#3 because I thought it could be an issue with his library.
Now we figured out that it is more an issue with variable length opaque data on the decoding side ;)

If you want me to paste all information from the other issue in this issue, I'll do that.

Thanks :)

@dweidenfeld
Copy link
Author

Okay, so it is not directly an issue with the variable length opaque, but with the following uint32 in combination with the []byte structure.

If I change the structure to

type ClientOwner4 struct {
	CoVerifier Verifier4
	CoOwnerID  []byte
}

type EXCHANGEID4args struct {
	EiaClientOwner    ClientOwner4
	//EiaFlags          uint32
	EiaStateProtect   StateProtect4
	EiaClientImplID   NfsImplID4
}

It works partially.
The CoOwnerID got the correct values, but I think the mapping is wrong for the following data structures.
The StateProtect4 and NfsImplID4 are getting the wrong values and I think this is because I skipped the uint32 in between.

Do you have an idea how to fix the issue?

@dweidenfeld
Copy link
Author

Ok. Got it.

I haven seen, that the EiaClientImplID has to be an array 🤣

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