]> granicus.if.org Git - php/commit
Fix out of bounds write in phpdbg
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Jun 2019 11:08:28 +0000 (13:08 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Jun 2019 12:28:58 +0000 (14:28 +0200)
commit42b22d3a9418e948fddf896dbe37536c6cc12f43
tree44806f9f9add596e3b9571ed74b1c5381276dc33
parent8757f30cc7f857f9b619b2f8b2f2731507653846
Fix out of bounds write in phpdbg

It seems that this code has a peculiar interpretation of "len",
where it actually points to the last character, not one past it.
So we need +1 here for that extra char and another +1 for the
terminating null byte.
sapi/phpdbg/phpdbg_prompt.c