diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-04-22 09:04:50 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-04-22 09:04:50 +0000 |
commit | 1048fa9cb404faf12ff1b850aa81f32891d5fca9 (patch) | |
tree | 4aee615c43defd8cb00c8af2f1afedb6a8b587cc /ldetect.spec | |
parent | 44a3de8b845b60ac33cde1f2849fc10d86cfae77 (diff) | |
download | ldetect-1048fa9cb404faf12ff1b850aa81f32891d5fca9.tar ldetect-1048fa9cb404faf12ff1b850aa81f32891d5fca9.tar.gz ldetect-1048fa9cb404faf12ff1b850aa81f32891d5fca9.tar.bz2 ldetect-1048fa9cb404faf12ff1b850aa81f32891d5fca9.tar.xz ldetect-1048fa9cb404faf12ff1b850aa81f32891d5fca9.zip |
Use read() instead of fread() to read from "/proc/bus/pci/%02x/%02x.%d".
Thanks a lot to Tom Cox for finding this bug:
The proc.c module in the kernel source clearly states that
reading more than 64 bytes can cause problems. The pci.c
module in the ldetect library uses the buffered fread()
function. This function always reads in blocks, so when
run as root, the read always tried to read more than the
user requested amount.
Diffstat (limited to 'ldetect.spec')
0 files changed, 0 insertions, 0 deletions