Searched refs:utf8_buf (Results 1 – 2 of 2) sorted by relevance
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 111 unsigned char *utf8_buf = NULL, *utf8_end; in file_ascmagic_with_encoding() local 145 if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { in file_ascmagic_with_encoding() 149 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding() 152 buffer_init(&bb, b->fd, &b->st, utf8_buf, in file_ascmagic_with_encoding() 153 CAST(size_t, utf8_end - utf8_buf)); in file_ascmagic_with_encoding() 327 if (utf8_buf) in file_ascmagic_with_encoding() 328 efree(utf8_buf); in file_ascmagic_with_encoding()
|
/PHP-8.0/ext/fileinfo/ |
H A D | libmagic.patch | 972 - if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) { 973 + if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { 981 - free(utf8_buf); 982 + if (utf8_buf) 983 + efree(utf8_buf);
|
Completed in 19 milliseconds