log_core: limit buffer to max log string

Fixes #4853
This commit is contained in:
Alexander Boettcher 2023-05-03 13:38:48 +02:00 committed by Christian Helmuth
parent d9643b61af
commit 2a0e45d0f7

View File

@ -27,7 +27,7 @@ class Log
Genode::Attached_rom_dataspace _rom_ds;
Genode::Log_connection _log;
char _buffer [Genode::Log_session::MAX_STRING_LEN + 1];
char _buffer [Genode::Log_session::MAX_STRING_LEN];
unsigned short _buf_pos { 0 };
unsigned _rom_pos { 0 };