Home
last modified time | relevance | path

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

/PHP-8.2/ext/fileinfo/libmagic/
H A Dascmagic.c73 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()
352 if (ubuf[i] <= 0x7f) { in encode_utf8()
358 if (ubuf[i] <= 0x7ff) { in encode_utf8()
364 if (ubuf[i] <= 0xffff) { in encode_utf8()
370 if (ubuf[i] <= 0x1fffff) { in encode_utf8()
[all …]
H A Dencoding.c87 if (ubuf == NULL) in file_encoding()
88 ubuf = &udefbuf; in file_encoding()
102 if (*ubuf == NULL) { in file_encoding()
178 if (ubuf == &udefbuf) in file_encoding()
280 ubuf[(*ulen)++] = buf[i]; \
370 if (ubuf) in file_looks_utf8()
383 if (ubuf) in file_looks_utf8()
384 ubuf[(*ulen)++] = buf[i]; in file_looks_utf8()
427 if (ubuf) in file_looks_utf8()
428 ubuf[(*ulen)++] = c; in file_looks_utf8()
[all …]
H A Dcompress.c763 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
768 ubuf[n] = '\0'; in filter_error()
769 buf = RCAST(char *, ubuf); in filter_error()
782 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
784 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
785 if (islower(*ubuf)) in filter_error()
786 *ubuf = toupper(*ubuf); in filter_error()
/PHP-8.2/ext/fileinfo/
H A Dlibmagic.patch951 ubuf, ulen, code, type, text);
953 - free(ubuf);
954 + efree(ubuf);
967 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen))
1509 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
1510 - *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen));
1511 + *ubuf = CAST(file_unichar_t *, ecalloc(CAST(size_t, 1), mlen));
1512 if (*ubuf == NULL) {
1529 if (ubuf == &udefbuf)
/PHP-8.2/ext/session/
H A Dsession.c1120 static inline void strcpy_gmt(char *ubuf, time_t *when) /* {{{ */ in strcpy_gmt() argument
1129 ubuf[0] = '\0'; in strcpy_gmt()
1138 memcpy(ubuf, buf, n); in strcpy_gmt()
1139 ubuf[n] = '\0'; in strcpy_gmt()

Completed in 42 milliseconds