New submission from Ryan Smith-Roberts:

A signature of the form

a: object = None
b: object

results in b being uninitialized in the generated C code prior to the 
PyArgs_ParseTuple call. If ParseTuple does not set a value for b (as it is an 
optional argument), b then contains a garbage pointer and the interpreter may 
segfault.

AC should reject this configuration.

----------
components: Build
messages: 207997
nosy: larry, rmsr
priority: normal
severity: normal
status: open
title: Argument Clinic accepts no-default args after default args
versions: Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20231>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to