[issue35180] Ctypes segfault or TypeError tested for python2.7 and 3

Josh Rosenberg report at bugs.python.org
Tue Nov 6 21:46:10 EST 2018


Josh Rosenberg <shadowranger+python at gmail.com> added the comment:

As soon as you use ctypes, you sign up for all the security vulnerabilities, including denial of service, buffer overrun, use-after-free, etc. that plain old C programs are subject to. In this case, it's just a NULL pointer dereference (read: segfault in most normal cases), but in general, if you don't use ctypes with the same discipline as you would actual C code (at best it provides a little in the way of automatic memory management), you're subject to all the same problems.

Side-note: When replying to e-mails, don't include the quotes from the e-mail you're replying to; it just clutters the tracker.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35180>
_______________________________________


More information about the Python-bugs-list mailing list