-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix the thorrtler whitelist bitmask #14149
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
Conversation
Before we actually didn't check each bit of the bitmask. Now we do. Signed-off-by: Roeland Jago Douma <[email protected]>
| $bitmask = 1 << (7 - ($i % 8)); | ||
|
|
||
| $part = $part & $bitmask; | ||
| $orig = $orig & $bitmask; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$part &= $bitmask; and $orig &= $bitmask; would also work but is hard to read.
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
|
/backport to stable15 |
|
/backport to stable14 |
|
backport to stable15 in #14151 |
|
backport to stable14 in #14152 |
Before we actually didn't check each bit of the bitmask. Now we do.
Testing is easy. Just try to run the added testcases without this patch.