diff options
-rw-r--r-- | src/tr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -891,7 +891,8 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx, ++digit_str; --digit_str_len; } - if (xstrtoul (digit_str, &d_end, base, &tmp_ulong, NULL) != LONGINT_OK + if (xstrtoul (digit_str, &d_end, base, &tmp_ulong, NULL) + != LONGINT_OK || BEGIN_STATE < tmp_ulong || d_end - digit_str != digit_str_len) { |