[issue26508] Infinite crash leading to DoS

STINNER Victor report at bugs.python.org
Wed Mar 9 04:03:19 EST 2016


STINNER Victor added the comment:

"Then it is no bug that it crashes python?"

The bug is your program creating inconsistent data. Without ctypes, you cannot create such inconsistent data.

"Is a crash not a bug?"

There are various ways to "crash" Python, but most of them are deliberate bugs. For example:

haypo at selma$ python3
Python 3.4.3 (default, Jun 29 2015, 12:16:01) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> ctypes.string_at(0)
Erreur de segmentation (core dumped)

The ctypes doesn't prevent you from making mistakes. If you use ctypes, you must be very careful and understand what you are doing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26508>
_______________________________________


More information about the Python-bugs-list mailing list