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

Error with DSB tickets: The length in TLB Payload counts unicode characters instead of bytes #97

Open
craftbyte opened this issue Jan 22, 2025 · 2 comments · May be fixed by #100
Open

Comments

@craftbyte
Copy link
Contributor

It seems like the DSB issuing system is countring unicode characters for the U_TLAY instead of raw bytes, crashing the TLB parser in the library. Should we perform a try catch to handle this case?

Example working ticket from DSB with no Unicode:

Image

Example non-working ticket to Copenhagen:

Image

The library crashes at the second one with length=588; index=588

@craftbyte
Copy link
Contributor Author

Confirmed this also happens with SJ tickets.

@CGantert345
Copy link
Contributor

I will contact DSB and SJ.

@CGantert345 CGantert345 linked a pull request Jan 27, 2025 that will close this issue
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 a pull request may close this issue.

2 participants