summaryrefslogtreecommitdiffstats
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-05-27 15:53:03 (GMT)
committerGitHub <noreply@github.com>2020-05-27 15:53:03 (GMT)
commita285af7e626d1b81cf09f8b2bf7656f100bc1237 (patch)
treea3f5316f6bc5cf5a47fa0926dc5aad815780c22a /Python/pystrcmp.c
parent75635c6095bcfbb9fccc239115d3d03ae20a307f (diff)
downloadcpython-a285af7e626d1b81cf09f8b2bf7656f100bc1237.zip
cpython-a285af7e626d1b81cf09f8b2bf7656f100bc1237.tar.gz
cpython-a285af7e626d1b81cf09f8b2bf7656f100bc1237.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. (cherry picked from commit 29a1384c040d39659e7d01f1fd7b6eb71ef2634e) Co-authored-by: Sean Gillespie <sean@swgillespie.me>
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions