journal: check validity of PID field in syslog/kmsg earlier
Then, let's make syslog_parse_identifier() returns PID as pid_t, rather than the string. This also makes the function refuse ridiculously long identifier. Fixes #40456. Fixes oss-fuzz#477990732 (https://issues.oss-fuzz.com/issues/477990732).
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user