Skip to content
Permalink
Browse files
mrb_str_len_to_inum: should not raise "string contains null byte" err…
…or on "0x"; fix #3043
  • Loading branch information
matz committed Dec 12, 2015
1 parent ad333cd commit 26a25e1666abe2086187b36ccb9c2bc6e2eec613
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2137,7 +2137,7 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, int base, int b
}
c = *p;
if (badcheck && c == '\0') {
goto nullbyte;
goto bad;
}
c = conv_digit(c);
if (c < 0 || c >= base) {

0 comments on commit 26a25e1

Please sign in to comment.