Searched refs:ubuf (Results 1 – 5 of 5) sorted by relevance
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 73 unichar *ubuf = NULL; in file_ascmagic() local 97 ubuf, ulen, code, type, text); in file_ascmagic() 99 efree(ubuf); in file_ascmagic() 173 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding() 182 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding() 195 if (ubuf[i] == '\033') in file_ascmagic_with_encoding() 197 if (ubuf[i] == '\b') in file_ascmagic_with_encoding() 347 if (ubuf[i] <= 0x7f) { in encode_utf8() 351 } else if (ubuf[i] <= 0x7ff) { in encode_utf8() 356 } else if (ubuf[i] <= 0xffff) { in encode_utf8() [all …]
|
H A D | encoding.c | 81 if (ubuf == NULL) in file_encoding() 82 ubuf = &udefbuf; in file_encoding() 168 if (ubuf == &udefbuf) in file_encoding() 267 ubuf[(*ulen)++] = buf[i]; in looks_ascii() 286 ubuf[(*ulen)++] = buf[i]; in looks_latin1() 306 ubuf[(*ulen)++] = buf[i]; in looks_extended() 331 if (ubuf) in file_looks_utf8() 344 if (ubuf) in file_looks_utf8() 380 if (ubuf) in file_looks_utf8() 381 ubuf[(*ulen)++] = c; in file_looks_utf8() [all …]
|
H A D | compress.c | 648 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument 653 ubuf[n] = '\0'; in filter_error() 654 buf = RCAST(char *, ubuf); in filter_error() 667 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error() 669 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error() 670 if (islower(*ubuf)) in filter_error() 671 *ubuf = toupper(*ubuf); in filter_error()
|
/PHP-7.4/ext/session/ |
H A D | session.c | 1117 static inline void strcpy_gmt(char *ubuf, time_t *when) /* {{{ */ in strcpy_gmt() argument 1126 ubuf[0] = '\0'; in strcpy_gmt() 1135 memcpy(ubuf, buf, n); in strcpy_gmt() 1136 ubuf[n] = '\0'; in strcpy_gmt()
|
/PHP-7.4/ext/fileinfo/ |
H A D | libmagic.patch | 980 ubuf, ulen, code, type, text); 982 - free(ubuf); 983 + efree(ubuf); 1621 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 1622 - if ((*ubuf = CAST(unichar *, calloc(CAST(size_t, 1), mlen))) == NULL) { 1623 + if ((*ubuf = CAST(unichar *, ecalloc(CAST(size_t, 1), mlen))) == NULL) { 1640 if (ubuf == &udefbuf)
|
Completed in 36 milliseconds