Commit 4c2e4fa
Victor Stinner
Issue #9979: Use PyUnicode_AsWideCharString() in _ctypes module
* Convert unicode to wide character string before creating the PyCapsule
object
* Catch integer overflow
* Avoid useless memset()
* Prepare the support of surrogates1 parent b290478 commit 4c2e4fa
2 files changed
Lines changed: 5 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | 668 | | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
| 669 | + | |
| 670 | + | |
675 | 671 | | |
676 | | - | |
677 | | - | |
678 | 672 | | |
679 | 673 | | |
680 | 674 | | |
681 | 675 | | |
682 | 676 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | 677 | | |
687 | 678 | | |
688 | 679 | | |
| |||
1147 | 1138 | | |
1148 | 1139 | | |
1149 | 1140 | | |
1150 | | - | |
| 1141 | + | |
1151 | 1142 | | |
1152 | 1143 | | |
1153 | 1144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1433 | 1433 | | |
1434 | 1434 | | |
1435 | 1435 | | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
| 1436 | + | |
1440 | 1437 | | |
1441 | 1438 | | |
1442 | | - | |
| 1439 | + | |
1443 | 1440 | | |
1444 | | - | |
1445 | 1441 | | |
1446 | 1442 | | |
1447 | 1443 | | |
1448 | 1444 | | |
1449 | 1445 | | |
1450 | 1446 | | |
1451 | 1447 | | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | 1448 | | |
1459 | 1449 | | |
1460 | 1450 | | |
| |||
0 commit comments