summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorSean Gillespie <sean@swgillespie.me>2020-05-27 15:22:07 (GMT)
committerGitHub <noreply@github.com>2020-05-27 15:22:07 (GMT)
commit29a1384c040d39659e7d01f1fd7b6eb71ef2634e (patch)
tree2862b50fdccfc415d6f03f6d60d26176749c6699 /Parser
parentfe2978b3b940fe2478335e3a2ca5ad22338cdf9c (diff)
downloadcpython-29a1384c040d39659e7d01f1fd7b6eb71ef2634e.zip
cpython-29a1384c040d39659e7d01f1fd7b6eb71ef2634e.tar.gz
cpython-29a1384c040d39659e7d01f1fd7b6eb71ef2634e.tar.bz2
bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914)
ctypes now raises an ArgumentError when a callback is invoked with more than 1024 arguments. The ctypes module allocates arguments on the stack in ctypes_callproc() using alloca(), which is problematic when large numbers of arguments are passed. Instead of a stack overflow, this commit raises an ArgumentError if more than 1024 parameters are passed.
Diffstat (limited to 'Parser')
0 files changed, 0 insertions, 0 deletions