[3.14] gh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() (#146201) by vstinner · Pull Request #146220 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Conversation
Member
Avoid calling memcpy(data + writer->pos, NULL, 0)
which has an undefined behavior.
(cherry picked from commit cd10a2e)
…IString() (python#146201) Avoid calling memcpy(data + writer->pos, NULL, 0) which has an undefined behavior. Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit cd10a2e)
This was referenced
bedevere-app
Bot
added
the
awaiting core review
label
vstinner
enabled auto-merge (squash)
vstinner
deleted the
ascii14
branch
bedevere-app
Bot
removed
the
awaiting core review
label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment