Home
last modified time | relevance | path

Searched refs:nbuf (Results 1 – 2 of 2) sorted by relevance

/PHP-7.3/ext/fileinfo/libmagic/
H A Dencoding.c76 unsigned char *nbuf = NULL; in file_encoding() local
95 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding()
96 if ((nbuf = CAST(unsigned char *, ecalloc((size_t)1, mlen))) == NULL) { in file_encoding()
137 from_ebcdic(buf, nbytes, nbuf); in file_encoding()
139 if (looks_ascii(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
143 } else if (looks_latin1(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
156 efree(nbuf); in file_encoding()
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch2141 mlen = (nbytes + 1) * sizeof(nbuf[0]);
2142 - if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) {
2143 + if ((nbuf = CAST(unsigned char *, ecalloc((size_t)1, mlen))) == NULL) {
2151 - free(nbuf);
2152 + efree(nbuf);

Completed in 12 milliseconds