ravthan / all-eyes

Automatically exported from code.google.com/p/all-eyes
0 stars 0 forks source link

The filemon and filedescr monitors buffer size might cause bufferoverflow #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The array "static char sbuf[BUFSIZE];" in the C file potentially can cause 
problem where the entire buffer is filled without the end-string char.

Original issue reported on code.google.com by toddd...@gmail.com on 20 Nov 2012 at 1:58

GoogleCodeExporter commented 8 years ago
Changed the statement to "static char sbuf[BUFSIZE+1];" for file filemon.c and 
filedescr.c

Original comment by toddd...@gmail.com on 20 Nov 2012 at 2:00

GoogleCodeExporter commented 8 years ago
Verified with unit testing

Original comment by tbrt....@gmail.com on 9 Dec 2012 at 9:24