From: K.Kosako Date: Wed, 2 Aug 2017 01:04:19 +0000 (+0900) Subject: fix ignored error case in fetch_name() X-Git-Tag: v6.5.0^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f156197138f20ad49d4c4824912226f80d06274;p=onig fix ignored error case in fetch_name() --- diff --git a/src/regparse.c b/src/regparse.c index 04330a9..c1b7145 100644 --- a/src/regparse.c +++ b/src/regparse.c @@ -3347,7 +3347,7 @@ fetch_name(OnigCodePoint start_code, UChar** src, UChar* end, if (c != end_code) { r = ONIGERR_INVALID_GROUP_NAME; - name_end = end; + goto err; } if (*num_type != IS_NOT_NUM) {