Home
last modified time | relevance | path

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

/PHP-8.3/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.c86 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 Dcompress.c826 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
831 ubuf[n] = '\0'; in filter_error()
832 buf = RCAST(char *, ubuf); in filter_error()
845 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
847 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
848 if (islower(*ubuf)) in filter_error()
849 *ubuf = toupper(*ubuf); in filter_error()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch870 ubuf, ulen, code, type, text);
872 - free(ubuf);
873 + efree(ubuf);
886 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen))
1371 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
1372 - *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen));
1373 + *ubuf = CAST(file_unichar_t *, ecalloc(CAST(size_t, 1), mlen));
1374 if (*ubuf == NULL) {
1395 if (ubuf == &udefbuf)
/PHP-8.3/ext/session/
H A Dsession.c1144 static inline void strcpy_gmt(char *ubuf, time_t *when) /* {{{ */ in strcpy_gmt() argument
1153 ubuf[0] = '\0'; in strcpy_gmt()
1162 memcpy(ubuf, buf, n); in strcpy_gmt()
1163 ubuf[n] = '\0'; in strcpy_gmt()

Completed in 46 milliseconds