python-pillow / Pillow

Python Imaging Library (Fork)
https://python-pillow.org
Other
12.32k stars 2.23k forks source link

Fix SEGFAULT from calling FT_New_Face/FT_Done_Face in multiple threads #8496

Closed lysnikolaou closed 3 weeks ago

lysnikolaou commented 4 weeks ago

Fixes #8454.

Changes proposed in this pull request:

lysnikolaou commented 4 weeks ago

Is anything here actually using the new changes in pythoncapi_compat.h?

There's no reason to stick with an old version, but I'm curious if there is a reason for updating it in what looks like an unrelated PR?

No, upgrading pythoncapi_compat was actually needed in an earlier version of my patch, but I actually ended up not needing the new stuff.

However, I thought that it might be okay for the header to be upgraded anyway, that's why I left it in.