Commit 9733304
committed
Assert Ruby object in rb_gc_location
rb_gc_location doesn't check that the object is actually a Ruby object
and only checks if the object looks like a T_MOVED. This may have unexpected
outcomes if the object is not a Ruby object (e.g. a piece of malloc memory
may be corrupted).1 parent 50a6782 commit 9733304
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2427 | 2427 | | |
2428 | 2428 | | |
2429 | 2429 | | |
| 2430 | + | |
| 2431 | + | |
2430 | 2432 | | |
2431 | 2433 | | |
2432 | 2434 | | |
| |||
0 commit comments