Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit efa4867

Browse files
committed
Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
2 parents b0fb94d + 49e6180 commit efa4867

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ Projected release date: 2013-11-24
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
14+
Python executable and not removed by the linker's optimizer.
15+
1316
- Issue #19306: Add extra hints to the faulthandler module's stack
1417
dumps that these are "upside down".
1518

@@ -67,6 +70,9 @@ Core and Builtins
6770
PyMem_Realloc().
6871

6972
- Issue #19199: Remove ``PyThreadState.tick_counter`` field
73+
=======
74+
- Issue #19279: UTF-7 decoder no more produces illegal strings.
75+
>>>>>>> other
7076

7177
- Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at
7278
least one place so as to avoid regressions.

Python/pythonrun.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ int Py_IsolatedFlag = 0; /* for -I, isolate from user's env */
116116

117117
PyThreadState *_Py_Finalizing = NULL;
118118

119+
/* Hack to force loading of object files */
120+
int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \
121+
PyOS_mystrnicmp; /* Python/pystrcmp.o */
122+
119123
/* PyModule_GetWarningsModule is no longer necessary as of 2.6
120124
since _warnings is builtin. This API should not be used. */
121125
PyObject *

0 commit comments

Comments
 (0)