Searched refs:nbuf (Results 1 – 5 of 5) sorted by relevance
/PHP-5.3/ext/fileinfo/libmagic/ |
H A D | readelf.c | 299 unsigned char nbuf[BUFSIZ]; in dophn_core() local 339 ((xph_filesz < sizeof(nbuf)) ? xph_filesz : sizeof(nbuf))); in dophn_core() 667 &nbuf[doff + 0x7c]) == -1) in donote() 722 c = nbuf[noffset]; in donote() 849 void *nbuf; in doshn() local 894 efree(nbuf); in doshn() 899 efree(nbuf); in doshn() 914 efree(nbuf); in doshn() 1038 unsigned char nbuf[BUFSIZ]; in dophn_exec() local 1097 bufsize = FINFO_READ_FUNC(fd, nbuf, ((xph_filesz < sizeof(nbuf)) ? in dophn_exec() [all …]
|
H A D | encoding.c | 72 unsigned char *nbuf = NULL; in file_encoding() local 75 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding() 76 if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) { in file_encoding() 117 from_ebcdic(buf, nbytes, nbuf); in file_encoding() 119 if (looks_ascii(nbuf, nbytes, *ubuf, ulen)) { in file_encoding() 123 } else if (looks_latin1(nbuf, nbytes, *ubuf, ulen)) { in file_encoding() 136 free(nbuf); in file_encoding()
|
/PHP-5.3/ext/ereg/ |
H A D | ereg.c | 409 *nbuf, /* nbuf is used when we grow the buffer */ in php_ereg_replace() local 476 nbuf = emalloc(buf_len); in php_ereg_replace() 477 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace() 478 nbuf[buf_len - 1] = '\0'; in php_ereg_replace() 480 buf = nbuf; in php_ereg_replace() 514 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace() 515 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace() 517 buf = nbuf; in php_ereg_replace() 529 nbuf = safe_emalloc(buf_len, sizeof(char), 0); in php_ereg_replace() 530 strncpy(nbuf, buf, buf_len-1); in php_ereg_replace() [all …]
|
/PHP-5.3/sapi/nsapi/ |
H A D | nsapi.c | 599 netbuf *nbuf = rc->sn->inbuf; in sapi_nsapi_read_post() local 614 length = nbuf->cursize - nbuf->pos; in sapi_nsapi_read_post() 617 memcpy(read_ptr, nbuf->inbuf + nbuf->pos, length); in sapi_nsapi_read_post() 621 nbuf->pos += length; in sapi_nsapi_read_post()
|
/PHP-5.3/ext/fileinfo/ |
H A D | libmagic.patch | 2621 - bufsize = read(fd, nbuf, 2623 ((xph_filesz < sizeof(nbuf)) ? xph_filesz : sizeof(nbuf))); 2671 - free(nbuf); 2672 + efree(nbuf); 2678 - free(nbuf); 2679 + efree(nbuf); 2687 - free(nbuf); 2688 + efree(nbuf); 2729 - bufsize = read(fd, nbuf, ((xph_filesz < sizeof(nbuf)) ? 2730 + bufsize = FINFO_READ_FUNC(fd, nbuf, ((xph_filesz < sizeof(nbuf)) ? [all …]
|
Completed in 24 milliseconds