segfault in sensord (lm_sensors2 2.8.5)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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.

Thanks,
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
198c198
<     switch (feature->type) { /* arbitrary sanity limits */
---
>     switch (feature!=NULL ? feature->type : 0) { /* arbitrary sanity limits 
*/



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux