]> granicus.if.org Git - php/commit
Fix #71882: Negative ftruncate() on php://memory exhausts memory
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 29 Aug 2016 23:53:27 +0000 (01:53 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 30 Aug 2016 00:05:45 +0000 (02:05 +0200)
commit207dab585aadd9f320976a0895734d7d9ca7b862
treef6079c6d8d5e582625da6fc3aecd666ecc15665a
parentc7b4cd1a51736b15d095b6b540f17076a0a8433d
Fix #71882: Negative ftruncate() on php://memory exhausts memory

We must not pass negative sizes to a size_t parameter.
NEWS
ext/standard/file.c
ext/standard/tests/file/bug71882.phpt [new file with mode: 0644]