Skip to content

Commit b54e2d9

Browse files
committed
Is it the c_stack_soft_limit bounds check?
1 parent 8b30aa3 commit b54e2d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/internal/pycore_ceval.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ static inline int _Py_MakeRecCheck(PyThreadState *tstate) {
218218
// If it is below the hardware stack base, assume that we have the wrong stack limits, and do nothing.
219219
// We could have the wrong stack limits because of limited platform support, or user-space threads.
220220
#if _Py_STACK_GROWS_DOWN
221-
return here_addr < _tstate->c_stack_soft_limit && here_addr >= _tstate->c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES;
221+
return here_addr < _tstate->c_stack_soft_limit;// && here_addr >= _tstate->c_stack_soft_limit - 2 * _PyOS_STACK_MARGIN_BYTES;
222222
#else
223-
return here_addr > _tstate->c_stack_soft_limit && here_addr <= _tstate->c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES;
223+
return here_addr > _tstate->c_stack_soft_limit;// && here_addr <= _tstate->c_stack_soft_limit + 2 * _PyOS_STACK_MARGIN_BYTES;
224224
#endif
225225
}
226226

0 commit comments

Comments
 (0)