[Nagiosplug-devel] [ nagiosplug-Patches-1055119 ] Fix segfault in check_nwstat.c

SourceForge.net noreply at sourceforge.net
Sat Nov 20 22:36:39 CET 2004


Patches item #1055119, was opened at 2004-10-27 00:09
Message generated for change (Comment added) made by mattkent
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1055119&group_id=29880

Category: Bugfix
Group: None
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Phil Dibowitz (jaymzh)
>Assigned to: Matthew Kent (mattkent)
Summary: Fix segfault in check_nwstat.c

Initial Comment:
Since I wrote a patch for the bug I reported in bug
1055054, I thought perhaps I should post it here as well...

>From the Bug Report:

The attached patch fixes a segfault in check_nwstat.c.
If the script can't get netware version, it does:

asprintf(&netware_version,"");

Which despite what one would hope, actually sets the
POINTER to NULL, per a long-standing, documented bug in
the gnu library - which they keep for backwards
compatibility, best I can tell.

Anyway, in the cases where there's nothing to copy, I
simply use a strdup which prevents the segfault. Please
apply.

- Phil

----------------------------------------------------------------------

>Comment By: Matthew Kent (mattkent)
Date: 2004-11-20 20:45

Message:
Logged In: YES 
user_id=983566

See response to Bug # 1055054 you submitted.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1055119&group_id=29880




More information about the Devel mailing list