• dearblue's avatar
    Get object properties after `mrb_get_args()` · a137ef12
    dearblue authored
    ref. #5613
    
    I checked with Valgrind, and the methods that can cause use-after-free are `Array#rotate`, `Array#rotate!`, and `String#byteslice`.
    Since `String#rindex` uses `RSTRING_LEN()` indirectly inside the function, no reference to the out-of-bounds range is generated.
    a137ef12
string.c 74.3 KB