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

Length determinant type 0xff not yet supported. #21

Closed
bandzaw opened this issue Apr 23, 2018 · 3 comments
Closed

Length determinant type 0xff not yet supported. #21

bandzaw opened this issue Apr 23, 2018 · 3 comments

Comments

@bandzaw
Copy link

bandzaw commented Apr 23, 2018

Tried to convert my uper based data to json using:
asn1tools convert -i uper -o jer but asn1tools complained that:
error: Length determinant type 0xff not yet supported.

@eerimoq
Copy link
Owner

eerimoq commented Apr 23, 2018

There are a few features missing in the UPER codec, and you found one of them. It would be helpful if you can provide your ASN.1 specification/schema and the data to decode, and I can have a look at it and hopefully implement the missing feature.

@eerimoq
Copy link
Owner

eerimoq commented Apr 24, 2018

Btw, 0xff is an invalid length determinant. Either your data is corrupt, or there is a bug in asn1tools. I modified the code to print a more detailed error message.

Please update to asn1tools version 0.77.0 (pip install -U asn1tools) and answer with the new error message. Include your specification and data to decode as well.

@eerimoq eerimoq closed this as completed Apr 25, 2018
@bandzaw
Copy link
Author

bandzaw commented May 2, 2018

It is very possible my data was corrupt (my data hexdump utility had a bug). Using version 0.78 with correct data successfully allowed me to convert that data to json. Thanks.

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

2 participants