From 3f54d09a5b8b6e4fd734abc8911e170d5967b5b0 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Mon, 30 Jan 2023 11:03:50 +0100 Subject: bignum.c: rb_int_parse_cstr handle `0` strings [Bug #19390] We shouldn't check the string length when skipping zeros, as the string might only contains zero characters, resulting in an empty string. --- bignum.c | 1 - 1 file changed, 1 deletion(-) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index a1a659db09..cb2c3b6f07 100644 --- a/bignum.c +++ b/bignum.c @@ -4184,7 +4184,6 @@ rb_int_parse_cstr(const char *str, ssize_t len, char **endp, size_t *ndigits, } if (!c || ISSPACE(c)) --str; if (end) len = end - str; - ASSERT_LEN(); } c = *str; c = conv_digit(c); -- cgit v1.2.3