FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

you can't call CGDataProviderCreateWithData on a stack pointer by lawrence-danna-apple · Pull Request #17263 · matplotlib/matplotlib · GitHub

Repository navigation

you can't call CGDataProviderCreateWithData on a stack pointer - #17263

Merged
dopplershift merged 1 commit into
matplotlib:masterfrom
lawrence-danna-apple:cgdataprovider
May 2, 2020
Merged

dopplershift merged 1 commit into
matplotlib:masterfrom
lawrence-danna-apple:cgdataprovider

Conversation

Copy link
Copy Markdown
Contributor

It's illegal to call CGDataProviderCreateWithData on a stack pointer.

Without this fix, matplotlib will crash on an upcoming release of Mac OS, becuase
the CGDataProvider it creates will be accessed on a different thread after
its stack allocation's lifetime has ended.

…s not allowed

Without this fix, matplotlib will crash on an upcoming release of Mac OS, becuase
the CGDataProvider it creates will be accessed on a different thread after
it's stack allocation's lifetime has ended.
tacaswell added this to the v3.2.2 milestone Apr 29, 2020

Copy link
Copy Markdown
Member

Thanks!

@lawrence-danna-apple would you be willing to comment on #17084 ?

QuLogic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Someone on macOS should test this, but the (Obj)C code makes sense.

tacaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I agree, code changes look correct, but someone with an OSX machine should test this out and then merge.

dopplershift left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Tested and seems to work fine for me here.

dopplershift merged commit d03f9e5 into matplotlib:master May 2, 2020
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 2, 2020
QuLogic added a commit that referenced this pull request May 2, 2020
…263-on-v3.2.x

Backport PR #17263 on branch v3.2.x (you can't call CGDataProviderCreateWithData on a stack pointer)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL