Skip to content

Conversation

@selimkeles
Copy link
Contributor

In 16 bit and 8 bit architectures, overflow and underflow issues were occuring while using functions lfs_frombe32 and lfs_fromle32.

In 16 bit and 8 bit architectures, overflow and underflow issues were occuring while using functions lfs_frombe32 and lfs_fromle32
@selimkeles
Copy link
Contributor Author

selimkeles commented May 5, 2025

Hi @geky ,

Created PR for issue bitshift-overflow, which I tested and works just fine with 16-bit architecture. Sorry about the branch naming convention, spotted "fix-foo" style just after creating the PR.

@geky-bot
Copy link
Collaborator

geky-bot commented May 5, 2025

Tests passed ✓, Code: 17116 B (+0.0%), Stack: 1448 B (+0.0%), Structs: 812 B (+0.0%)
Code Stack Structs Coverage
Default 17116 B (+0.0%) 1448 B (+0.0%) 812 B (+0.0%) Lines 2432/2594 lines (+0.0%)
Readonly 6230 B (+0.0%) 448 B (+0.0%) 812 B (+0.0%) Branches 1279/1610 branches (-0.0%)
Threadsafe 17968 B (+0.0%) 1448 B (+0.0%) 820 B (+0.0%) Benchmarks
Multiversion 17188 B (+0.0%) 1448 B (+0.0%) 816 B (+0.0%) Readed 29369693876 B (+0.0%)
Migrate 18780 B (+0.0%) 1752 B (+0.0%) 816 B (+0.0%) Proged 1482874766 B (+0.0%)
Error-asserts 17896 B (+0.0%) 1440 B (+0.0%) 812 B (+0.0%) Erased 1568888832 B (+0.0%)

@geky
Copy link
Member

geky commented May 5, 2025

Thanks for this, looks perfect to me! Will bring this in on the next patch release.

Sorry about the branch naming convention, spotted "fix-foo" style just after creating the PR.

No worries, I've seen worse. Branch names more-or-less go away after merging anyways.

@geky geky added the next patch label May 5, 2025
@geky geky added this to the v2.11 milestone May 13, 2025
@geky geky changed the base branch from master to devel May 13, 2025 05:42
@geky geky merged commit c1bf7ce into littlefs-project:devel May 13, 2025
94 checks passed
@geky
Copy link
Member

geky commented May 13, 2025

Bringing this in, thanks for the PR!

@geky geky mentioned this pull request May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants