• Tim Peters's avatar
    tuple(3,4,5,x=2) dumped core on my box. vgetargskeywords() overindexed · a9f4739a
    Tim Peters authored
    the kwlist vector whenever there was a mix of positional and keyword
    arguments, and the number of positional arguments exceeded the length
    of the kwlist vector.  If there was just one more positional arg than
    keyword, the kwlist-terminating NULL got passed to PyMapping_HasKeyString,
    which set an internal error that vgetargskeywords() then squashed (but
    it's impossible to say whether it knew it was masking an error).  If
    more than one more positional argument, it went on to pass random trash
    to PyMapping_HasKeyString, which is why the example at the start
    happened to kill the process.
    
    Pure bugfix candidate.
    a9f4739a
getargs.c 31.8 KB