Skip to content

Fix get_jwt() on ARM 32bit #111

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

Closed
wants to merge 1 commit into from

Conversation

swaeberle
Copy link
Contributor

The sizeof() was operated on char * returning the architecture's pointer size, instead of the length of the char[]. On 64bit it worked only by chance, on 32bit the jwt_location was stripped at the wrong position.

The `sizeof()` was operated on `char *` returning the architecture's
pointer size, instead of the length of the `char[]`.
On 64bit it worked only by chance, on 32bit the `jwt_location` was
stripped at the wrong position.

Signed-off-by: Stephan Wurm <[email protected]>
@JoshMcCullough
Copy link
Contributor

I believe we should be using srtlen(...) instead of sizeof(...)...thoughts?

@JoshMcCullough
Copy link
Contributor

Closing this; fixing with #115.

@JoshMcCullough
Copy link
Contributor

PR: #116

@JoshMcCullough
Copy link
Contributor

Fixed in the 2.0.3 release. Thanks for pointing out the issue!

@swaeberle swaeberle deleted the fix/get-jwt-on-arm branch December 5, 2023 08:12
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