@@ -251,15 +251,15 @@ int msc_regexec_ex(msc_regex_t *regex, const char *s, unsigned int slen,
251
251
252
252
#ifdef WITH_PCRE_JIT
253
253
if (regex -> jit_compile_rc == 0 ) {
254
- pcre2_ret = pcre2_jit_match (regex -> re , pcre2_s , ( PCRE2_SIZE ) strlen ( s ) ,
254
+ pcre2_ret = pcre2_jit_match (regex -> re , pcre2_s , slen ,
255
255
(PCRE2_SIZE )(startoffset ), (uint32_t )options , match_data , regex -> match_context );
256
256
}
257
257
if (regex -> jit_compile_rc != 0 || pcre2_ret == PCRE2_ERROR_JIT_STACKLIMIT ) {
258
- pcre2_ret = pcre2_match (regex -> re , pcre2_s , ( PCRE2_SIZE ) strlen ( s ) ,
258
+ pcre2_ret = pcre2_match (regex -> re , pcre2_s , slen ,
259
259
(PCRE2_SIZE )(startoffset ), (PCRE2_NO_JIT | (uint32_t )options ), match_data , regex -> match_context );
260
260
}
261
261
#else
262
- pcre2_ret = pcre2_match (regex -> re , pcre2_s , ( PCRE2_SIZE ) strlen ( s ) ,
262
+ pcre2_ret = pcre2_match (regex -> re , pcre2_s , slen ,
263
263
(PCRE2_SIZE )(startoffset ), (uint32_t )options , match_data , regex -> match_context );
264
264
#endif
265
265
if (match_data != NULL ) {
0 commit comments