Repository navigation
Commit 7ada36c
committed
Keep in_callback set while a handler's result is released
The handler setter only installs the no-op handler in place of NULL while
in_callback is set, but the trampolines reset it before releasing the
handler's result. A destructor run at that point could still set the
default handler to None, removing it while Expat was passing a long token
to it in pieces.
Also test unsetting DefaultHandlerExpand from within a callback, and
reword the NEWS entry and a comment.1 parent 2d0f5c6 commit 7ada36c
3 files changed
Lines changed: 64 additions & 14 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Library
- Modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
861 | 861 | | |
862 | 862 | | |
863 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
864 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
865 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
866 | 888 | | |
867 | 889 | | |
868 | 890 | | |
869 | 891 | | |
870 | | - | |
871 | | - | |
| 892 | + | |
| 893 | + | |
872 | 894 | | |
873 | 895 | | |
874 | 896 | | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
875 | 917 | | |
876 | 918 | | |
877 | 919 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
388 | | - | |
389 | 388 | | |
390 | 389 | | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
396 | 398 | | |
| 399 | + | |
397 | 400 | | |
398 | 401 | | |
399 | 402 | | |
| |||
582 | 585 | | |
583 | 586 | | |
584 | 587 | | |
585 | | - | |
586 | 588 | | |
587 | 589 | | |
| 590 | + | |
588 | 591 | | |
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
592 | 598 | | |
| 599 | + | |
593 | 600 | | |
594 | 601 | | |
595 | 602 | | |
| |||
2797 | 2804 | | |
2798 | 2805 | | |
2799 | 2806 | | |
2800 | | - | |
2801 | | - | |
2802 | | - | |
2803 | | - | |
2804 | | - | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
2805 | 2813 | | |
2806 | 2814 | | |
2807 | 2815 | | |
| |||
0 commit comments