[Xymon] Core dump in svcstatus.c (historylog) with empty TIMEBUF
Henrik Størner
henrik at hswn.dk
Mon May 9 08:15:43 CEST 2011
On 09-05-2011 07:34, Jeremy Laidman wrote:
> I can crash svcstatus, causing a core dump, by doing a historylog
> query with an empty TIMEBUF value (or setting it to things like
> "%00"). It's indirectly caused by a successful stat() on a directory
> and then assuming that it's a file,
Yep, it shouldn't try to do that.
> My fix is to catch the special
> case of a directory.
Better to check if it's a regular file (i.e. not a pipe, socket, ...)
See attached.
Regards,
Henrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svc-filetype.diff
Type: text/x-diff
Size: 1926 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110509/490234ea/attachment.diff>
More information about the Xymon
mailing list