syslog: Fix integer overflow in __vsyslog_internal (CVE-2023-6780)