Re: [C++] Avoiding buffer overruns in Logger

2006-12-16 Thread Pete Robbins
On 16/12/06, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote: Under revision r487731 I added some code to Logger.cpp to check the length of log messages to avoid buffer overruns, in particular when logging big XML documents or SDOs. I also changed the buffer allocated on the stack from 4096 to

Re: [C++] Avoiding buffer overruns in Logger

2006-12-16 Thread Jean-Sebastien Delfino
Pete Robbins wrote: On 16/12/06, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote: Under revision r487731 I added some code to Logger.cpp to check the length of log messages to avoid buffer overruns, in particular when logging big XML documents or SDOs. I also changed the buffer allocated on the

Re: Re: [C++] Avoiding buffer overruns in Logger

2006-12-16 Thread Pete Robbins
On 16/12/06, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote: Pete Robbins wrote: On 16/12/06, Jean-Sebastien Delfino [EMAIL PROTECTED] wrote: Under revision r487731 I added some code to Logger.cpp to check the length of log messages to avoid buffer overruns, in particular when logging big

[C++] Avoiding buffer overruns in Logger

2006-12-15 Thread Jean-Sebastien Delfino
Under revision r487731 I added some code to Logger.cpp to check the length of log messages to avoid buffer overruns, in particular when logging big XML documents or SDOs. I also changed the buffer allocated on the stack from 4096 to 256 chars as most log messages are smaller than that, and