[New-bugs-announce] [issue18561] ctypes _build_callargs() doesn't check name for NULL

Christian Heimes report at bugs.python.org
Fri Jul 26 16:56:00 CEST 2013


New submission from Christian Heimes:

http://hg.python.org/cpython/file/40bec72df2a1/Modules/_ctypes/_ctypes.c#l3565

3565        case PARAMFLAG_FIN:
3566            /* 'in' parameter.  Copy it from inargs. */
CID 486199 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
31. var_deref_model: Passing null pointer "name" to function "_get_arg(int *, PyObject *, PyObject *, PyObject *, PyObject *)", which dereferences it. [show details]
3567            ob =_get_arg(&inargs_index, name, defval, inargs, kwds);

----------
components: Extension Modules
messages: 193731
nosy: christian.heimes
priority: normal
severity: normal
stage: needs patch
status: open
title: ctypes _build_callargs() doesn't check name for NULL
type: behavior
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list