Commit 71197d27 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

Merge pull request #47 from matsumoto-r/patch-1

Fix buffer overflow of `pos` when file-size is too big
parents e724c5af 23870459
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment