[Nagiosplug-devel] [ nagiosplug-Bugs-1180701 ] check_ping segfault at line 106
SourceForge.net
noreply at sourceforge.net
Mon Apr 18 17:14:14 CEST 2005
Bugs item #1180701, was opened at 2005-04-11 09:11
Message generated for change (Comment added) made by seanius
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1180701&group_id=29880
Category: None
Group: CVS
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Florian Gleixner (redflo)
>Assigned to: M. Sean Finney (seanius)
Summary: check_ping segfault at line 106
Initial Comment:
check_ping.c Revision 1.42 segfaults on line 106 if the
Makro PING6_COMMAND and the Makro PING_HAS_TIMEOUT is
set because the format string of asprintf has only two
placeholders in PING6_COMMAND but the PING_HAS_TIMEOUT
command delivers 3 Variables (timeout_interval,
max_packets, addresses[i]).
I guess either the PING6_COMMAND should be changed or
one needs another #ifdef case.
----------------------------------------------------------------------
>Comment By: M. Sean Finney (seanius)
Date: 2005-04-18 20:11
Message:
Logged In: YES
user_id=226838
what was happening was the configure script determined that
ping took three arguments, but didn't run the same check for
ping6. the commit i've made to cvs should resolve this now.
a more thorough solution would be to have all the #ifdef
logic seperated based on whether we are performing
ping/ping6, but this should work for every practical case
(will only break if ping takes -w and ping6 doesn't, but
that should never be the case)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1180701&group_id=29880
More information about the Devel
mailing list