Home
last modified time | relevance | path

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

/PHP-8.3/ext/fileinfo/libmagic/
H A Dencoding.c150 unsigned char *nbuf; in file_encoding() local
152 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding()
153 if ((nbuf = CAST(unsigned char *, emalloc(mlen))) == NULL) { in file_encoding()
157 from_ebcdic(buf, nbytes, nbuf); in file_encoding()
159 if (looks_ascii(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
163 } else if (looks_latin1(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
173 efree(nbuf); in file_encoding()
/PHP-8.3/ext/fileinfo/
H A Dlibmagic.patch1378 unsigned char *nbuf;
1380 mlen = (nbytes + 1) * sizeof(nbuf[0]);
1381 - if ((nbuf = CAST(unsigned char *, malloc(mlen))) == NULL) {
1382 + if ((nbuf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
1390 - free(nbuf);
1391 + efree(nbuf);

Completed in 18 milliseconds