Commit ec26d3d
committed
Fix stack underflow in thread event callbacks
Introduce a new guard to reject resuming/resetting active thread from within it's own
callback. Before it was possible to mutate the thread stack and making xmove to move
more values than remain on the thread stack.1 parent 406c18f commit ec26d3d
5 files changed
Lines changed: 186 additions & 82 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
892 | 895 | | |
893 | 896 | | |
894 | 897 | | |
| |||
949 | 952 | | |
950 | 953 | | |
951 | 954 | | |
952 | | - | |
| 955 | + | |
953 | 956 | | |
954 | 957 | | |
955 | 958 | | |
956 | | - | |
| 959 | + | |
957 | 960 | | |
958 | 961 | | |
959 | 962 | | |
960 | 963 | | |
961 | 964 | | |
962 | 965 | | |
| 966 | + | |
963 | 967 | | |
964 | 968 | | |
965 | 969 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
| 664 | + | |
| 665 | + | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
732 | 730 | | |
733 | 731 | | |
734 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
735 | 743 | | |
736 | 744 | | |
737 | 745 | | |
| |||
0 commit comments