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

Added patch to check that overlay's offsets are valid #1227

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

flyyee
Copy link
Contributor

@flyyee flyyee commented Jul 7, 2024

No description provided.

if (out_x0 < 0 ||
out_x0 > out_w ||
out_y0 < 0 ||
out_y0 > out_h) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all the checks against out_w, out_h, in_w, in_h should be >=.

Copy link
Contributor Author

@flyyee flyyee Jul 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed

@farindk farindk merged commit e382107 into strukturag:master Jul 8, 2024
23 of 24 checks passed
@farindk
Copy link
Contributor

farindk commented Jul 8, 2024

Thank you for the report and fix.

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