Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix out of bounds read in backend_tk.#14461

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:masterfromanntzer:tkoutofbounds
Jun 7, 2019

Conversation

anntzer
Copy link
Contributor

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 thiscloses#14225, can you confirm?

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Really, we should specify somewhere how rounding of bboxes passed toblit() (and to copy_from_bbox()) works, but at least this patch willavoid out-of-bounds reads in the tk blit.
@anntzeranntzer added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJun 6, 2019
@anntzeranntzer added this to thev3.1.1 milestoneJun 6, 2019
Copy link
Member

@WeatherGodWeatherGod left a comment

Choose a reason for hiding this comment

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

makes sense as a sanitation measure. A little concerned that out-of-bounds stuff can happen, but it is probably benign.

@cgohlke
Copy link
Contributor

As an extra layer of protection one could raise an error inmpl_tk_blit if any values are out of bounds, e.g.height < y2 orx1 < 0 etc.

@tacaswell
Copy link
Member

I will follow up with a PR at the c level.

timhoffm added a commit that referenced this pull requestJun 7, 2019
…461-on-v3.1.xBackport PR#14461 on branch v3.1.x (Fix out of bounds read in backend_tk.)
@anntzeranntzer deleted the tkoutofbounds branchJune 7, 2019 06:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@WeatherGodWeatherGodWeatherGod approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v3.1.1
Development

Successfully merging this pull request may close these issues.

Matplotlib crashes on windows while maximizing plot window when using Multicursor
5 participants
@anntzer@cgohlke@tacaswell@WeatherGod@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp