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

img_set_pixel appears to be faulty #29

Open
ndevenish opened this issue May 15, 2021 · 1 comment
Open

img_set_pixel appears to be faulty #29

ndevenish opened this issue May 15, 2021 · 1 comment

Comments

@ndevenish
Copy link
Contributor

It looks like it's trying to check if the input x, y is out of range, but it actually checks that y is in range:

cbflib/src/img.c

Lines 2073 to 2078 in 5c31378

if (x < 0 ||
x >= img->size [0] ||
y > 0 ||
y <= img->size [1])
return 0;

@yayahjb
Copy link
Owner

yayahjb commented May 15, 2021 via email

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

2 participants