[PATCH] Segfault due to uninitialized data in xodtemplate.c

Jason Hoos jhoos at thwack.net
Wed Dec 6 00:07:00 CET 2006


Attached is a patch that fixes some uninitialized service dependency 
fields in the xodtemplate_duplicate_servicedependency function in 
xodtemplate.c.  This bug was triggered by a home-brew patch we had for 
doing same-host service dependencies (which I've since decided to 
discard in favor of William Leibzon's similar patch).  I haven't been 
able to come up with a configuration that triggers the segfault in a 
virgin build of Nagios, but I figured I'd submit the patch here anyways 
for consideration.

This patch applies to Nagios 2.5 and 2.6.

Jason Hoos

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios-2.5-dup-servicedep-segfault.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20061205/ecad535f/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list