summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-12-05 07:15:50 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2012-12-05 07:15:50 -0800
commit222bd9722398709c42cd4739ea53832e05d7c652 (patch)
treef1dd4b53c97c31c86f2bfd2d5076912b4f39df88
parentb8e5a570479a2e45d8746d85df15f84b619466d6 (diff)
parent7127bded17eb2a5b66077b25238c1f7b0f72e605 (diff)
downloadmruby-222bd9722398709c42cd4739ea53832e05d7c652.tar.gz
mruby-222bd9722398709c42cd4739ea53832e05d7c652.zip
Merge pull request #591 from iij/pr-string-octal2
Fix out of boundary scan in case of octal formatted string
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 19e6bf23e..7ecdbab85 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3316,7 +3316,7 @@ read_escape(parser_state *p)
break;
}
}
- c = scan_oct(buf, i+1, &i);
+ c = scan_oct(buf, i, &i);
}
return c;