Commit dcb68f4
authored
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
1 parent 5680f65 commit dcb68f4
2 files changed
Lines changed: 16 additions & 24 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 | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | 568 | | |
573 | 569 | | |
574 | 570 | | |
575 | 571 | | |
| 572 | + | |
576 | 573 | | |
577 | 574 | | |
578 | 575 | | |
| |||
589 | 586 | | |
590 | 587 | | |
591 | 588 | | |
592 | | - | |
593 | | - | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
594 | 595 | | |
595 | | - | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
596 | 602 | | |
597 | 603 | | |
598 | 604 | | |
599 | 605 | | |
600 | 606 | | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
| 607 | + | |
617 | 608 | | |
618 | 609 | | |
619 | | - | |
620 | 610 | | |
621 | 611 | | |
622 | 612 | | |
| |||
0 commit comments