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

Eliminate undefined behavior of bit shifting signed int. #1947

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

chadf
Copy link
Contributor

@chadf chadf commented Jul 9, 2023

Fix undefined behavior found while fuzzing.

/projects/i2pd/libi2pd/Base.cpp:315:10: runtime error: left shift of negative value -1720975601
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /projects/i2pd/libi2pd/Base.cpp:315:10 in

/projects/i2pd/libi2pd/Base.cpp:308:10: runtime error: left shift of 522165279 by 8 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /projects/i2pd/libi2pd/Base.cpp:308:10 in

@orignal orignal merged commit ca8ec62 into PurpleI2P:openssl Jul 10, 2023
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