Home
last modified time | relevance | path

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

/PHP-7.3/ext/fileinfo/libmagic/
H A Dascmagic.c73 unichar *ubuf = NULL; in file_ascmagic() local
91 ubuf, ulen, code, type, text); in file_ascmagic()
93 efree(ubuf); in file_ascmagic()
164 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding()
173 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding()
186 if (ubuf[i] == '\033') in file_ascmagic_with_encoding()
188 if (ubuf[i] == '\b') in file_ascmagic_with_encoding()
325 if (ubuf[i] <= 0x7f) { in encode_utf8()
328 *buf++ = (unsigned char)ubuf[i]; in encode_utf8()
329 } else if (ubuf[i] <= 0x7ff) { in encode_utf8()
[all …]
H A Dencoding.c80 if (ubuf == NULL) in file_encoding()
81 ubuf = &udefbuf; in file_encoding()
157 if (ubuf == &udefbuf) in file_encoding()
256 ubuf[(*ulen)++] = buf[i]; in looks_ascii()
275 ubuf[(*ulen)++] = buf[i]; in looks_latin1()
295 ubuf[(*ulen)++] = buf[i]; in looks_extended()
320 if (ubuf) in file_looks_utf8()
333 if (ubuf) in file_looks_utf8()
369 if (ubuf) in file_looks_utf8()
370 ubuf[(*ulen)++] = c; in file_looks_utf8()
[all …]
H A Dcompress.c577 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
582 ubuf[n] = '\0'; in filter_error()
583 buf = (char *)ubuf; in filter_error()
596 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
598 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
599 if (islower(*ubuf)) in filter_error()
600 *ubuf = toupper(*ubuf); in filter_error()
/PHP-7.3/ext/session/
H A Dsession.c1117 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.3/ext/fileinfo/
H A Dlibmagic.patch1286 ubuf, ulen, code, type, text);
1288 - free(ubuf);
1289 + efree(ubuf);
2135 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
2136 - if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {
2137 + if ((*ubuf = CAST(unichar *, ecalloc((size_t)1, mlen))) == NULL) {
2153 if (ubuf == &udefbuf)

Completed in 38 milliseconds