1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-20 21:50:10 +03:00
Files
systemd-stable/test/fuzz/fuzz-journald-kmsg
Zbigniew Jędrzejewski-Szmek 05f7f883f5 sd-device: do no allocate strings of unknown length on the stack
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33881.

Not only we would duplicate unknown input on the stack, we would do it
over and over. So let's first check that the input has reasonable length,
but also allocate just one fixed size buffer.

(cherry picked from commit e17c95af8e)
(cherry picked from commit 5172ef4a58)
(cherry picked from commit 7e0f374aac)
2021-05-15 20:11:43 +02:00
..
2018-11-16 08:44:35 +01:00