Home
last modified time | relevance | path

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

/PHP-7.0/ext/fileinfo/libmagic/
H A Dcompress.c331 unsigned char **newch, size_t n) in uncompressgzipped() argument
358 if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) { in uncompressgzipped()
366 z.next_out = *newch; in uncompressgzipped()
389 (*newch)[n] = '\0'; in uncompressgzipped()
397 const unsigned char *old, unsigned char **newch, size_t n) in uncompressbuf() argument
406 return uncompressgzipped(ms, old, newch, n); in uncompressbuf()
485 *newch = (unsigned char *) emalloc(HOWMANY + 1); in uncompressbuf()
487 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) { in uncompressbuf()
492 efree(*newch); in uncompressbuf()
494 *newch = NULL; in uncompressbuf()
[all …]
/PHP-7.0/ext/fileinfo/
H A Dlibmagic.patch1199 * uncompress(method, old, n, newch) - uncompress old into new,
1289 - if ((*newch = CAST(unsigned char *, malloc(HOWMANY + 1))) == NULL) {
1290 + if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) {
1339 - if ((*newch = (unsigned char *) malloc(HOWMANY + 1)) == NULL) {
1347 + *newch = (unsigned char *) emalloc(HOWMANY + 1);
1349 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) {
1354 - free(*newch);
1356 + efree(*newch);
1358 *newch = NULL;

Completed in 24 milliseconds