]> git.ipfire.org Git - thirdparty/glibc.git/commit
syslog: Fix large messages (BZ#29536)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sun, 28 Aug 2022 19:52:53 +0000 (16:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 30 Aug 2022 12:03:14 +0000 (09:03 -0300)
commitb0e7888d1fa2dbd2d9e1645ec8c796abf78880b9
tree32bc7ff516c4364ca13bd5ed21026f1c5b04874b
parent3bd3c612e98a53ce60ed972f5cd2b90628b3cba5
syslog: Fix large messages (BZ#29536)

The a583b6add407c17cd change did not handle large messages that
would require a heap allocation correctly, where the message itself
is not take in consideration.

This patch fixes it and extend the tst-syslog to check for large
messages as well.

Checked on x86_64-linux-gnu.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 52a5be0df411ef3ff45c10c7c308cb92993d15b1)
misc/syslog.c
misc/tst-syslog.c