Skip to content

rsetsockopt: fix bit manipulation#11

Open
SiarheiVolkau wants to merge 1 commit intoofiwg:masterfrom
SiarheiVolkau:patch-1
Open

rsetsockopt: fix bit manipulation#11
SiarheiVolkau wants to merge 1 commit intoofiwg:masterfrom
SiarheiVolkau:patch-1

Conversation

@SiarheiVolkau
Copy link
Copy Markdown

I'm not sure if the upper bits are actually used now, but anyway, it might happen in future.
rsetsockopt was unable to set/clear bits properly which position is >= 32.
Moreover, any clear bit operation clears also upper bits (32-63).

Found using static analysis tool PVS-Studio.

I'm not sure if the upper bits are actually used now,
but anyway, it might happen in future.
rsetsockopt was unable to set/clear bits properly which
position is >= 32.
Moreover, any clear bit operation clears also upper bits (32-63).

Found using static analysis tool PVS-Studio.

Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
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.

1 participant