Fix buffer overflow of pos when file-size is too big

This commit is contained in:
MATSUMOTO, Ryosuke
2015-10-19 19:24:39 +09:00
parent e724c5af98
commit 238704592a
+1 -2
View File
@@ -525,8 +525,7 @@ mrb_value
mrb_io_sysseek(mrb_state *mrb, mrb_value io)
{
struct mrb_io *fptr;
int pos;
mrb_int offset, whence = -1;
mrb_int pos, offset, whence = -1;
mrb_get_args(mrb, "i|i", &offset, &whence);
if (whence < 0) {