Backport of local fix for the iCurrLine underflow crash in
processDataRcvd_regexFraming(): when the oversize byte is '\n' the
handler resets iMsg=0/iCurrLine=1 and the '\n' branch then sets both
to 0. The next byte that matches the start regex computes
iMsg = iCurrLine - 1 = -1, which as size_t is SIZE_MAX, crashing
rsyslogd.
Add the missing iCurrLine > 0 guard before the regex match branch,
adapted for the rsyslog-8.2102.0 code base.
Resolves: RHEL-212704
Signed-off-by: Cropi <alakatos@redhat.com>
Fix wrong type conversion in cstrLen()
resolves: rhbz#2157804
imjournal: by default retrieves _PID from journal as PID number
resolves: rhbz#2176398
Systemd service file hardening
resolves: rhbz#2176404