]> granicus.if.org Git - php/commit
Fix #78875: Long filenames cause OOM and temp files are not cleaned
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 18 Mar 2020 09:26:53 +0000 (10:26 +0100)
committerStanislav Malyshev <stas@php.net>
Mon, 11 May 2020 20:47:38 +0000 (13:47 -0700)
commit1c9bd513ac5c7c1d13d7f0dfa7c16a7ad2ce0f87
tree79d9f317bb40d2836c52b9558b04da9228dc20b8
parentbef96b9d2c7330909f43faf4f8ff12c7723bf857
Fix #78875: Long filenames cause OOM and temp files are not cleaned

We must not cast `size_t` to `int` (unless the `size_t` value is
guaranteed to be less than or equal to `INT_MAX`).  In this case we can
declare `array_len` as `size_t` in the first place.
main/rfc1867.c