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

X-ADR, Error on structure as top element #23

Closed
Krolken opened this issue Feb 17, 2021 · 1 comment
Closed

X-ADR, Error on structure as top element #23

Krolken opened this issue Feb 17, 2021 · 1 comment
Assignees

Comments

@Krolken
Copy link
Contributor

Krolken commented Feb 17, 2021

when reading attributes on certain interface classes the top element is a structure.

Right now the element count seems to be interpreted as a data tag.

data = b'\x02\x07\x06\x00\x00\x00\x00\x12\x00\x00\x11\x00\x11\x00\x12\x00\x00\x12\x00\x00\x12\x00\x00'

 return cls.MAP[tag]
KeyError: 7
@Krolken Krolken self-assigned this Feb 17, 2021
@Krolken
Copy link
Contributor Author

Krolken commented Feb 17, 2021

The issue seems related to getting a not implemented error on UTF8String for the following data:

data=b'\x02\x05\x12\x02\xd0\x12\x0c\xa8\x11\x12\x11\x1e\x0f\xc0'

The tag 05 exists and is interpreted wrongly and shifts the parsing.

Krolken added a commit that referenced this issue Feb 18, 2021
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