Home
last modified time | relevance | path

Searched refs:eocd_start (Results 1 – 1 of 1) sorted by relevance

/PHP-7.4/ext/phar/
H A Dzip.c171 const char *eocd_start = zend_memnrstr(s, "PK\5\6", sizeof("PK\5\6") - 1, end); in phar_find_eocd() local
173 if (eocd_start == NULL) { in phar_find_eocd()
176 ZEND_ASSERT(eocd_start + sizeof(phar_zip_dir_end) <= s + n); in phar_find_eocd()
177 comment_len = PHAR_GET_16(((phar_zip_dir_end *) eocd_start)->comment_len); in phar_find_eocd()
178 if (eocd_start + sizeof(phar_zip_dir_end) + comment_len == s + n) { in phar_find_eocd()
180 return (char *) eocd_start; in phar_find_eocd()
182 end = eocd_start; in phar_find_eocd()

Completed in 9 milliseconds