Commit 6e73225
gh-146196: Fix Undefined Behavior in _PyUnicodeWriter_WriteASCIIString() (#146201)
Avoid calling memcpy(data + writer->pos, NULL, 0)
which has an undefined behavior.
(cherry picked from commit cd10a2e)
Co-authored-by: Shamil <ashm.tech@proton.me>
1 parent 8b447fb commit 6e73225
2 files changed
Lines changed: 6 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14054 | 14054 | | |
14055 | 14055 | | |
14056 | 14056 | | |
| 14057 | + | |
| 14058 | + | |
| 14059 | + | |
| 14060 | + | |
14057 | 14061 | | |
14058 | 14062 | | |
14059 | 14063 | | |
| |||
0 commit comments