]> granicus.if.org Git - php/commit
Fix #79756: finfo_file crash (FILEINFO_MIME)
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Jun 2020 14:10:33 +0000 (16:10 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Jun 2020 15:45:28 +0000 (17:45 +0200)
commit816b4c1235d70b1b83d26c415f044fc04a48875f
tree6a4eb0c0ab36485fd281512a534a05f13f124eae
parent43cd3f68143eb6b35e19605855dac45db4007fc1
Fix #79756: finfo_file crash (FILEINFO_MIME)

If `ctime` or `asctime` return `NULL`, we must not attempt to copy the
buffer, but rather return `NULL` as well.
NEWS
ext/fileinfo/tests/bug79756.phpt [new file with mode: 0644]
ext/fileinfo/tests/bug79756.xls [new file with mode: 0644]
main/reentrancy.c