On 07/18/2014 06:46 PM, Zack Breckenridge wrote: > > Regarding line 91-92 of logwd.c: > >> if ((severity > 7) || (severity < 0)) { severity = 8; } >> /* Sue me. I'm paranoid. I'm aware of how this "can't happen"... */ > > Of course you never know... Is it possible to make severity and > facility unsigned integers? >
It comes over the wire as an ASCII char which is by contract between 0 and 7, but nothing keeps a logger from putting the digit '8' or '9' there. If you see the corresponding config.def.h tables I entitled that severity "non-standard" or something like that. Weldon