Commit 69ab8fb
authored
[3.13] pythongh-139400: Make sure that parent parsers outlive their subparsers in
Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.
(cherry picked from commit 6edb2dd)pyexpat (pythonGH-139403) (pythonGH-139608)1 parent 1d39dba commit 69ab8fb
File tree
3 files changed
+65
-0
lines changed- Lib/test
- Misc/NEWS.d/next/Security
- Modules
3 files changed
+65
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
758 | 794 | | |
759 | 795 | | |
760 | 796 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
| |||
988 | 997 | | |
989 | 998 | | |
990 | 999 | | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
991 | 1005 | | |
992 | 1006 | | |
993 | 1007 | | |
| |||
997 | 1011 | | |
998 | 1012 | | |
999 | 1013 | | |
| 1014 | + | |
1000 | 1015 | | |
1001 | 1016 | | |
1002 | 1017 | | |
1003 | 1018 | | |
1004 | 1019 | | |
1005 | 1020 | | |
1006 | 1021 | | |
| 1022 | + | |
1007 | 1023 | | |
1008 | 1024 | | |
1009 | 1025 | | |
1010 | 1026 | | |
1011 | 1027 | | |
| 1028 | + | |
1012 | 1029 | | |
1013 | 1030 | | |
1014 | 1031 | | |
| |||
1021 | 1038 | | |
1022 | 1039 | | |
1023 | 1040 | | |
| 1041 | + | |
1024 | 1042 | | |
1025 | 1043 | | |
1026 | 1044 | | |
| |||
1210 | 1228 | | |
1211 | 1229 | | |
1212 | 1230 | | |
| 1231 | + | |
1213 | 1232 | | |
1214 | 1233 | | |
1215 | 1234 | | |
| |||
1245 | 1264 | | |
1246 | 1265 | | |
1247 | 1266 | | |
| 1267 | + | |
1248 | 1268 | | |
1249 | 1269 | | |
1250 | 1270 | | |
| |||
1254 | 1274 | | |
1255 | 1275 | | |
1256 | 1276 | | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1257 | 1281 | | |
1258 | 1282 | | |
1259 | 1283 | | |
| |||
1265 | 1289 | | |
1266 | 1290 | | |
1267 | 1291 | | |
| 1292 | + | |
1268 | 1293 | | |
1269 | 1294 | | |
1270 | 1295 | | |
| |||
0 commit comments