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
..
2023-02-27 19:47:55 +00:00
2018-10-13 14:17:28 +02:00
2021-07-13 15:32:14 +02:00
2021-07-13 15:32:14 +02:00
2021-05-06 12:16:35 +02:00
2021-05-14 12:20:00 +02:00
2021-02-16 13:09:56 +01:00
2022-12-30 06:53:28 +00:00
2021-06-17 14:22:33 +02:00
2021-07-13 15:32:14 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-06-29 11:30:26 +02:00
2021-06-17 14:22:33 +02:00
2021-06-17 14:22:33 +02:00
2021-05-06 12:16:35 +02:00
2021-07-13 15:32:14 +02:00
2021-05-06 12:16:35 +02:00
2021-06-17 14:22:33 +02:00
2021-05-06 12:16:35 +02:00
2021-06-13 21:08:35 +02:00
2021-06-13 21:08:35 +02:00
2021-05-06 12:16:35 +02:00
2021-04-22 10:11:26 +02:00
2021-06-13 21:08:35 +02:00
2021-05-06 12:16:35 +02:00
2023-02-27 19:47:55 +00:00
2021-06-17 14:22:33 +02:00
2021-06-13 21:08:35 +02:00
2021-07-13 15:32:14 +02:00
2021-07-13 15:32:14 +02:00
2022-12-23 13:55:50 +00:00
2021-06-13 14:02:11 +02:00
2021-07-13 15:32:14 +02:00
2021-07-13 15:32:14 +02:00
2021-01-15 12:33:06 +01:00
2021-01-15 12:33:06 +01:00
2023-01-17 14:12:49 +00:00
2021-06-17 14:22:33 +02:00
2021-06-13 21:08:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-07-13 15:32:14 +02:00
2023-01-08 16:07:00 +00:00
2021-07-13 15:32:14 +02:00
2018-10-13 14:17:28 +02:00
2021-02-14 12:03:48 +01:00
2020-02-03 13:41:31 +01:00
2019-02-19 20:21:20 +01:00