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

UB in color.c color_esycc_to_rgb - left shift and integer underflow #1443

Open
pauldreik opened this issue Aug 25, 2022 · 0 comments
Open

UB in color.c color_esycc_to_rgb - left shift and integer underflow #1443

pauldreik opened this issue Aug 25, 2022 · 0 comments

Comments

@pauldreik
Copy link

Using ubsan and afl, I found the following errors:

runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
runtime error: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'

See #1442 for code to reproduce it.

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

No branches or pull requests

1 participant