segfault in sensord (lm_sensors2 2.8.5)

Tim Toohey ttoohey at
Sun Mar 7 23:11:40 CET 2004


In prog/sensord/rrd.c (since revision 1.5 I think) there's a null pointer 
dereference when used with the --load-average option. This seems to only be a 
problem when initialing creating the rrd log file (though I'm not sure).

Below is my fix.

Tim Toohey

cvs diff: Diffing .
Index: rrd.c
RCS file: /home/cvs/lm_sensors2/prog/sensord/rrd.c,v
retrieving revision 1.7
diff -r1.7 rrd.c
<     switch (feature->type) { /* arbitrary sanity limits */
>     switch (feature!=NULL ? feature->type : 0) { /* arbitrary sanity limits 

More information about the lm-sensors mailing list