Commit a471483
* gh-156939: Fix xmlcharrefreplace() buffer overflow (GH-157109)
Write into a temporary buffer to not write the trailing NUL byte
into the writer. Previously, the NUL byte was written outsize
the writer buffer.
(cherry picked from commit 9398655)
Co-authored-by: Victor Stinner <vstinner@python.org>
* Replace _Py_MAX_UNICODE with MAX_UNICODE
---------
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent b561f7a commit a471483
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
945 | 951 | | |
946 | 952 | | |
947 | 953 | | |
| |||
0 commit comments