Skip to content

Fix Routing's methods_ Bitmask Overflow#1169

Merged
gittiver merged 3 commits intoCrowCpp:masterfrom
DavidPetkovsek:bug/uint64-methods
Mar 29, 2026
Merged

Fix Routing's methods_ Bitmask Overflow#1169
gittiver merged 3 commits intoCrowCpp:masterfrom
DavidPetkovsek:bug/uint64-methods

Conversation

@DavidPetkovsek
Copy link
Copy Markdown
Contributor

Methods have more than 32 values which means we can't use a 32 bit value to represent it.

If someone attempts to use an HTTPMethod towards the end of the enum set with this mask, it will overflow and will act as if a different HTTPMethod was used.

Copy link
Copy Markdown
Member

@gittiver gittiver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you resolve the comments?

@DavidPetkovsek
Copy link
Copy Markdown
Contributor Author

Resolved

@gittiver gittiver merged commit 9b8bd14 into CrowCpp:master Mar 29, 2026
20 checks passed
@DavidPetkovsek DavidPetkovsek deleted the bug/uint64-methods branch March 30, 2026 14:32
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