]> granicus.if.org Git - python/commit
socketmodule.c: error if option larger than INT_MAX
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 23 Mar 2016 20:35:29 +0000 (21:35 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 23 Mar 2016 20:35:29 +0000 (21:35 +0100)
commitcc73932125c9e1d6cada036d90873821ddda091a
treeab7a9ea681e0ec542ccc066710e743a1540aeb91
parent0069aef51a176ec90fb93f4601636e8763e07c42
socketmodule.c: error if option larger than INT_MAX

On Windows, socket.setsockopt() raises an OverflowError if the socket option is
larger than INT_MAX bytes.
Modules/socketmodule.c