Files
inetutils/src
Erik Auerswald 0170cf56ca syslogd: fix a stack-based buffer overflow
When logging a message, ASCII control characters are transliterated.
This transliteration uses two printable characters for each control
character.  If the last character that fits into the destination
buffer is a control character, the buffer needs place for two
characters in addition to the string terminator.  This was missing
from the code, resulting in a stack-based buffer overflow weakness
(CWE-121).

* NEWS: Mention fix.
* src/syslogd.c (printline): Allocate an additional byte in the
  "line" buffer to account for control character transliteration.
2025-11-23 16:39:23 +01:00
..
2012-03-12 12:17:54 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00
2025-01-01 18:21:25 +01:00