libshiboken: Fix crashes with static strings in Python 3.11
authorFriedemann Kleint <Friedemann.Kleint@qt.io>
Fri, 24 Jun 2022 07:22:01 +0000 (09:22 +0200)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 8 Jan 2023 20:06:53 +0000 (20:06 +0000)
commit32207b1d89a610e6a6a1b980bd1019a4073d5d65
tree32f4e6cd7e5c4807f572aa6aeca731c6f75a1e1c
parent37cd0951ed79feba0541f807ef24ee5b3a2bc22c
libshiboken: Fix crashes with static strings in Python 3.11

In Python 3.11, some strings come with a refcount above decimal
1000000000, apparently indicating that they are interned. Replace the
mechanism by PyUnicode_InternFromString().

Task-number: PYSIDE-1960
Pick-to: 6.3 6.2 5.15
Change-Id: I6436afee351f89da5814b5d6bc76970b1b508168
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
(cherry picked from commit a09a1db8391243e6bb290ee66bb6e3afbb114c61)

Gbp-Pq: Name libshiboken-Fix-crashes-with-static-strings-in-Python-3.11.patch
sources/shiboken2/libshiboken/sbkstring.cpp