Commit ed18a21
authored
ZJIT: Check if shape is too complex before reading ivar by index (ruby#15478)
This fixes a crash when the new shape after a transition is too complex;
we need to check that it's not complex before trying to read by index.1 parent 2b66fc7 commit ed18a21
2 files changed
+34
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3155 | 3155 | | |
3156 | 3156 | | |
3157 | 3157 | | |
3158 | | - | |
3159 | | - | |
3160 | 3158 | | |
3161 | 3159 | | |
3162 | 3160 | | |
| |||
3165 | 3163 | | |
3166 | 3164 | | |
3167 | 3165 | | |
| 3166 | + | |
| 3167 | + | |
3168 | 3168 | | |
3169 | 3169 | | |
3170 | 3170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3932 | 3932 | | |
3933 | 3933 | | |
3934 | 3934 | | |
| 3935 | + | |
| 3936 | + | |
| 3937 | + | |
| 3938 | + | |
| 3939 | + | |
| 3940 | + | |
| 3941 | + | |
| 3942 | + | |
| 3943 | + | |
| 3944 | + | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
| 3962 | + | |
| 3963 | + | |
| 3964 | + | |
| 3965 | + | |
| 3966 | + | |
3935 | 3967 | | |
3936 | 3968 | | |
3937 | 3969 | | |
| |||
0 commit comments