Searched refs:start_offset (Results 1 – 8 of 8) sorted by relevance
/PHP-8.3/ext/pcre/pcre2lib/ |
H A D | pcre2_substitute.c | 364 if (start_offset > length) in pcre2_substitute() 413 save_start = start_offset++; in pcre2_substitute() 417 start_offset < length && in pcre2_substitute() 419 start_offset++; in pcre2_substitute() 426 while (start_offset < length && (subject[start_offset] & 0xc0) == 0x80) in pcre2_substitute() 427 start_offset++; in pcre2_substitute() 429 while (start_offset < length && in pcre2_substitute() 431 start_offset++; in pcre2_substitute() 466 ovecsave[2] = start_offset; in pcre2_substitute() 950 ovecsave[2] = start_offset; in pcre2_substitute() [all …]
|
H A D | pcre2_jit_match.c | 86 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_jit_match() argument 94 (void)start_offset; in pcre2_jit_match() 124 arguments.str = subject + start_offset; in pcre2_jit_match()
|
H A D | pcre2_dfa_match.c | 526 PCRE2_SIZE start_offset, in internal_dfa_match() argument 884 current_subject > start_subject + mb->start_offset))) in internal_dfa_match() 982 if (ptr == start_subject + start_offset) { ADD_ACTIVE(state_offset + 1, 0); } in internal_dfa_match() 3298 PCRE2_SIZE start_offset, uint32_t options, pcre2_match_data *match_data, in pcre2_dfa_match() argument 3362 if (start_offset > length) return PCRE2_ERROR_BADOFFSET; in pcre2_dfa_match() 3417 start_match = subject + start_offset; in pcre2_dfa_match() 3484 mb->start_offset = start_offset; in pcre2_dfa_match() 3543 if (start_offset > 0) in pcre2_dfa_match() 3813 if (start_match > mb->start_subject + start_offset) in pcre2_dfa_match() 3979 start_offset, /* start offset in subject */ in pcre2_dfa_match()
|
H A D | pcre2_intmodedep.h | 871 PCRE2_SIZE start_offset; /* The start offset value */ member 913 PCRE2_SIZE start_offset; /* The start offset value */ member
|
H A D | pcre2_match.c | 854 Fstart_match == mb->start_subject + mb->start_offset))) in match() 6382 start_match = subject + start_offset; in pcre2_match() 6391 if (start_offset > length) return PCRE2_ERROR_BADOFFSET; in pcre2_match() 6497 if (start_offset > 0) return PCRE2_ERROR_BADUTFOFFSET; in pcre2_match() 6527 if (start_offset >= re->max_lookbehind) in pcre2_match() 6550 rc = pcre2_jit_match(code, subject, length, start_offset, options, in pcre2_match() 6619 if (start_offset > 0) return PCRE2_ERROR_BADUTFOFFSET; in pcre2_match() 6659 if (start_offset >= re->max_lookbehind) in pcre2_match() 6743 mb->start_offset = start_offset; in pcre2_match() 7102 if (start_match > mb->start_subject + start_offset) in pcre2_match() [all …]
|
/PHP-8.3/ext/pcre/ |
H A D | php_pcre.c | 962 ZVAL_STRINGL_FAST(val, subject + start_offset, end_offset - start_offset); in populate_match_value_str() 1016 ZVAL_LONG(&val2, start_offset); in add_offset_pair() 1111 Z_PARAM_LONG(start_offset) in php_do_pcre_match() 1207 if (start_offset < 0) { in php_pcre_match_impl() 1614 start_offset = 0; in php_pcre_replace_impl() 1771 start_offset += unit_len; in php_pcre_replace_impl() 1866 start_offset = 0; in php_pcre_replace_func_impl() 1980 start_offset += unit_len; in php_pcre_replace_func_impl() 2535 start_offset = 0; in php_pcre_split_impl() 2641 start_offset += calculate_unit_length(pce, subject + start_offset); in php_pcre_split_impl() [all …]
|
H A D | php_pcre.h | 53 zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset);
|
/PHP-8.3/ext/pcre/tests/ |
H A D | gh16189.phpt | 2 GH-16189 (preg_match/preg_match_all underflow on start_offset argument)
|
Completed in 41 milliseconds