Searched refs:ubuf (Results 1 – 5 of 5) sorted by relevance
/php-src/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 73 file_unichar_t *ubuf = NULL; in file_ascmagic() local 99 efree(ubuf); in file_ascmagic() 177 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding() 186 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding() 202 if (ubuf[i] == '\033') in file_ascmagic_with_encoding() 204 if (ubuf[i] == '\b') in file_ascmagic_with_encoding() 344 if (ubuf[i] <= 0x7f) { in encode_utf8() 350 if (ubuf[i] <= 0x7ff) { in encode_utf8() 356 if (ubuf[i] <= 0xffff) { in encode_utf8() 362 if (ubuf[i] <= 0x1fffff) { in encode_utf8() [all …]
|
H A D | encoding.c | 86 if (ubuf == NULL) in file_encoding() 87 ubuf = &udefbuf; in file_encoding() 101 if (*ubuf == NULL) { in file_encoding() 177 if (ubuf == &udefbuf) in file_encoding() 277 ubuf[(*ulen)++] = buf[i]; \ 358 if (ubuf) in file_looks_utf8() 371 if (ubuf) in file_looks_utf8() 372 ubuf[(*ulen)++] = buf[i]; in file_looks_utf8() 416 if (ubuf) in file_looks_utf8() 417 ubuf[(*ulen)++] = c; in file_looks_utf8() [all …]
|
H A D | compress.c | 961 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument 966 ubuf[n] = '\0'; in filter_error() 967 buf = RCAST(char *, ubuf); in filter_error() 980 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error() 982 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error() 983 if (islower(*ubuf)) in filter_error() 984 *ubuf = toupper(*ubuf); in filter_error()
|
/php-src/ext/fileinfo/ |
H A D | libmagic.patch | 876 ubuf, ulen, code, type, text); 878 - free(ubuf); 879 + efree(ubuf); 1353 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 1354 - *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen)); 1355 + *ubuf = CAST(file_unichar_t *, ecalloc(CAST(size_t, 1), mlen)); 1356 if (*ubuf == NULL) { 1377 if (ubuf == &udefbuf)
|
/php-src/ext/session/ |
H A D | session.c | 1244 static inline void strcpy_gmt(char *ubuf, time_t *when) /* {{{ */ in strcpy_gmt() argument 1253 ubuf[0] = '\0'; in strcpy_gmt() 1262 memcpy(ubuf, buf, n); in strcpy_gmt() 1263 ubuf[n] = '\0'; in strcpy_gmt()
|
Completed in 38 milliseconds