Niels Dossche
0f21cbc57c
Fix GH-10715: phpdbg heap buffer overflow -- by misuse of the option "--run"
...
Fixes GH-10715
When a string starting with a NUL character is passed to
phpdbg_vprint(), the vasprintf() will return that 0 characters have been
printed. This causes msglen == 0. When phpdbg_process_print() is called
with a message of length 0, the -1 to check for '\n' will perform an out
of bounds read. Since nothing is printed anyway for msglen == 0, it
seems best to just skip the printing routine for this case.
Closes GH-10720.
2023-02-27 19:47:55 +00:00
..
2016-11-30 02:56:47 +01:00
2018-02-20 21:53:48 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2018-10-15 04:33:09 +02:00
2021-04-22 10:11:26 +02:00
2016-11-30 11:44:10 +01:00
2016-12-22 00:39:24 +01:00
2016-12-20 20:18:36 +01:00
2020-11-30 15:24:15 +01:00
2019-03-23 09:47:49 +01:00
2020-01-17 14:52:46 +01:00
2021-06-13 22:19:14 +02:00
2018-02-20 21:53:48 +01:00
2019-03-23 09:47:49 +01:00
2016-10-16 12:34:10 +02:00
2021-07-13 15:32:14 +02:00
2020-11-30 15:24:15 +01:00
2023-02-27 19:47:55 +00:00
2019-03-23 09:47:49 +01:00
2019-03-23 09:47:49 +01:00
2016-10-14 01:54:18 +02:00
2021-01-06 12:46:24 +01:00
2020-11-30 15:24:15 +01:00
2020-09-08 00:08:18 +02:00
2020-09-08 00:08:18 +02:00
2020-09-08 00:08:18 +02:00
2020-09-08 00:08:18 +02:00
2021-07-13 15:32:14 +02:00
2020-11-30 15:24:15 +01:00
2016-12-06 18:29:48 +01:00
2020-11-30 15:24:15 +01:00
2019-05-29 17:05:01 +02:00
2021-07-13 15:32:14 +02:00
2021-07-13 15:32:14 +02:00
2017-12-01 01:35:47 +03:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2018-02-20 21:53:48 +01:00
2021-07-13 15:32:14 +02:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2020-11-30 15:24:15 +01:00
2023-01-17 14:12:49 +00:00