From: K.Kosako Date: Thu, 25 Jul 2019 00:14:45 +0000 (+0900) Subject: check error code by onig_is_error_code_needs_param() and replace error code X-Git-Tag: v6.9.3~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e07d5fc7d05a0aa7303ecfaead29a80d7770641;p=onig check error code by onig_is_error_code_needs_param() and replace error code --- diff --git a/src/regexec.c b/src/regexec.c index 25f386f..f0e7d1a 100644 --- a/src/regexec.c +++ b/src/regexec.c @@ -5452,6 +5452,9 @@ onig_builtin_error(OnigCalloutArgs* args, void* user_data ARG_UNUSED) if (n >= 0) { n = ONIGERR_INVALID_CALLOUT_BODY; } + else if (onig_is_error_code_needs_param(n)) { + n = ONIGERR_INVALID_CALLOUT_BODY; + } return n; }