mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Check that supplied facility is not bigger than LOG_NFACILITIES.
PR: bin/79260 Submitted by: Shuichi KITAGUCHI
This commit is contained in:
parent
63575b5712
commit
b4e852907f
1 changed files with 7 additions and 0 deletions
|
|
@ -916,6 +916,13 @@ logmsg(int pri, const char *msg, const char *from, int flags)
|
|||
fac = LOG_NFACILITIES;
|
||||
else
|
||||
fac = LOG_FAC(pri);
|
||||
|
||||
/* Check maximum facility number. */
|
||||
if (fac > LOG_NFACILITIES) {
|
||||
(void)sigsetmask(omask);
|
||||
return;
|
||||
}
|
||||
|
||||
prilev = LOG_PRI(pri);
|
||||
|
||||
/* extract program name */
|
||||
|
|
|
|||
Loading…
Reference in a new issue