gh-143637: Fix re-entrant mutation of ancillary data in socket.sendms… · python/cpython@82b92e3 · GitHub
Skip to content

Commit 82b92e3

Browse files
priyanshu2282-cyberblurb-it[bot]vstinnerpicnixz
authored
gh-143637: Fix re-entrant mutation of ancillary data in socket.sendmsg() (#143892)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 945bf8c commit 82b92e3

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

Lib/test/test_socket.py

Lines changed: 18 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed a crash in socket.sendmsg() that could occur if ancillary data is mutated re-entrantly during argument parsing.

Modules/socketmodule.c

Lines changed: 8 additions & 5 deletions

0 commit comments

Comments
 (0)