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

Size issue #4

Open
pauleffect90 opened this issue Dec 11, 2022 · 0 comments
Open

Size issue #4

pauleffect90 opened this issue Dec 11, 2022 · 0 comments

Comments

@pauleffect90
Copy link

frame[1] |= 127;

On 32bit systems (most MCUs out there), size_t is usually 32bits wide. The referenced code could produce unexpected results. I suggest explicitly setting the variable's [data_len] length to 64bits wide.

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