[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Bug in kaudioserver
From: "Russ Steffen" <rsteffen () ia ! net>
Date: 1998-01-06 20:42:14
[Download RAW message or body]
There is a small bug in kaudioserver.
Here is the relevent section, circa line 129
// Read old communication id
KMServerPidHandle = fopen(KMServerPidFile,"r");
if (KMServerPidHandle == NULL)
PidRead[0]=0;
else
fgets(PidRead, 100, KMServerPidHandle);
fclose(KMServerPidHandle);
If the fopen() fails, as it will when there is no pid file, the
call to fclose will segfault. The fclose needs to go into the
else clause.
Russ
--
----------------------------------
Russ Steffen
rsteffen@ia.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic