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

Possible panic with index out of bounds if a Frame in animated WEBP is bigger or offset with bounds is larger than the canvas #1960

Closed
arskov opened this issue Jul 14, 2023 · 1 comment

Comments

@arskov
Copy link

arskov commented Jul 14, 2023

From the discussion in #1959, the code in extended.rs#266 can go out of bound if frame's bounds + offset become larger than the whole image's canvas.

Expected

Implement a cropping logic in the loop around extended.rs#266 which will check if the drawing point goes out of bounds then the corresponding x/y loop should break and continue from the next line.

@arskov
Copy link
Author

arskov commented Jul 15, 2023

Fixed with #1961

@arskov arskov closed this as completed Jul 15, 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

No branches or pull requests

1 participant