buffer in proc_read

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

 



Hi everybody...

{This is my first mail..... exited...}

I came across a number of programs that write into the buffer (*page
below) provided by the read callback for /proc filesystem without taking
into consideration the 'count' variable.

int (*read_proc)(char *page, char **start, off_t offset, int count,
                 int *eof, void *data);

Won't it overflow ?

regards
taha




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux