Searched refs:utf8_buf (Results 1 – 2 of 2) sorted by relevance
/PHP-5.3/ext/fileinfo/libmagic/ |
H A D | ascmagic.c | 105 unsigned char *utf8_buf = NULL, *utf8_end; in file_ascmagic_with_encoding() local 142 utf8_buf = emalloc(mlen); in file_ascmagic_with_encoding() 144 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding() 147 if ((rv = file_softmagic(ms, utf8_buf, in file_ascmagic_with_encoding() 148 (size_t)(utf8_end - utf8_buf), TEXTTEST, text)) == 0) in file_ascmagic_with_encoding() 297 if (utf8_buf) in file_ascmagic_with_encoding() 298 efree(utf8_buf); in file_ascmagic_with_encoding()
|
/PHP-5.3/ext/fileinfo/ |
H A D | libmagic.patch | 807 - if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) { 811 + utf8_buf = emalloc(mlen); 813 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) 820 - free(utf8_buf); 821 + if (utf8_buf) 822 + efree(utf8_buf);
|
Completed in 9 milliseconds