syslog: Improve fortify with clang
commit471c3c7a4705f1a1852404959692b0ff2dbb4aaa
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 8 Feb 2024 18:46:19 +0000 (8 15:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 27 Feb 2024 13:52:59 +0000 (27 10:52 -0300)
treed3f3e0d35965c5767a0b4595aa12acb2d83d9d85
parent4289b00d4393f490515527864cf09093f4f8c2c4
syslog: Improve fortify with clang

It improve fortify checks for syslog and vsyslog.  The compile
and runtime hecks have similar coverage as with GCC.

The syslog fortify wrapper calls the va_arg version, since clang does
not support __va_arg_pack.

Checked on aarch64, armhf, x86_64, and i686.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
misc/bits/syslog.h