ravthan / all-eyes

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

Module selfmon.c buffer size #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Module selfmon.c defines a buffer of size 4096, which is used to build a 
monitor message.  However, the MONITORS/AE-DAEMON/AE-MANAGER PROTOCOL 
SPECIFICATION specifies a max message length of 1204 bytes – potentially 
allowing the functions within this module to build a message longer than the 
documented max length.

Original issue reported on code.google.com by prhamm...@gmail.com on 24 Nov 2012 at 7:56

GoogleCodeExporter commented 8 years ago
Larger buffer size (4096 bytes) are used for reading, after the entire buffer 
is memset to null-bytes.
Using bigger buffer to read small message size(1024 bytes) is not a bug.
The read system call used only reads a maximum of 1024 bytes,
ravi.

Original comment by ravt...@gmail.com on 25 Nov 2012 at 7:32