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

fix: "index out of bounds" on antialiasing check #38

Merged
merged 1 commit into from
Jun 2, 2021

Conversation

eWert-Online
Copy link
Collaborator

I found an issue with the antialiasing check while running one of our test-suites with osnap.
If the "comp" image is 1px smaller than the original and there happens to be an antialiasing check right on the edge, we are running out of the bounds of the image.

I managed to reproduce it reliably and implemented a test and fix for it 🙂

Bildschirmfoto 2021-06-01 um 18 22 59

It's a little hard to see, because of the whitespace changes, but it is pretty much only a bounds check inside hasManySiblingsWithSameColor.

@dmtrKovalenko dmtrKovalenko changed the title Fix "index out of bounds" on antialiasing check fix: "index out of bounds" on antialiasing check Jun 2, 2021
@dmtrKovalenko dmtrKovalenko merged commit a3c4f52 into main Jun 2, 2021
@dmtrKovalenko dmtrKovalenko deleted the fix-aa-index-out-of-bounds branch June 2, 2021 13:42
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