| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Really, we should specify somewhere how rounding of bboxes passed to blit() (and to copy_from_bbox()) works, but at least this patch will avoid out-of-bounds reads in the tk blit.
There was a problem hiding this comment.
makes sense as a sanitation measure. A little concerned that out-of-bounds stuff can happen, but it is probably benign.
Sorry, something went wrong.
|
As an extra layer of protection one could raise an error in mpl_tk_blit if any values are out of bounds, e.g. height < y2 or x1 < 0 etc. |
Sorry, something went wrong.
|
I will follow up with a PR at the c level. |
Sorry, something went wrong.
…461-on-v3.1.x Backport PR #14461 on branch v3.1.x (Fix out of bounds read in backend_tk.)
| Back | FazBrowse Home | New Git URL |
Really, we should specify somewhere how rounding of bboxes passed to
blit() (and to copy_from_bbox()) works, but at least this patch will
avoid out-of-bounds reads in the tk blit.
@aliaa @cgohlke I think this closes #14225, can you confirm?
PR Summary
PR Checklist