mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use RSTRING_LENINT for overflow check
This commit is contained in:
parent
21ad4075a7
commit
8d1de3154c
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -11667,7 +11667,7 @@ rb_raw_obj_info(char *buff, const int buff_size, VALUE obj)
|
|||
}
|
||||
break;
|
||||
case T_STRING: {
|
||||
APPENDF((BUFF_ARGS, "%.*s", (int)RSTRING_LEN(obj), RSTRING_PTR(obj)));
|
||||
APPENDF((BUFF_ARGS, "%.*s", RSTRING_LENINT(obj), RSTRING_PTR(obj)));
|
||||
break;
|
||||
}
|
||||
case T_MOVED: {
|
||||
|
|
Loading…
Reference in a new issue