<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Bug in logwatch subagent]]></title><description><![CDATA[<p dir="auto">If there's a eventlog entry bigger than the default BUFFER_SIZE then the logwatch enters an endless loop.<br />
If the buffer isn't big enough then there's a realloc with size "bytesNeeded" but the buffersize stays "BUFFER_SIZE" in stead of bufferSize.</p>
<p dir="auto">diff:<br />
--- C:/Temp/eventlog.cpp-revBASE.svn001.tmp.cpp	Tue Aug 14 19:44:38 2012<br />
+++ D:/Source/netxms/trunk/src/agent/subagents/logwatch/eventlog.cpp	Wed Feb 27 19:56:50 2013<br />
@@ -341,7 +341,7 @@<br />
             {<br />
 retry_read:<br />
                success = ReadEventLog(hLog, EVENTLOG_SEQUENTIAL_READ | EVENTLOG_FORWARDS_READ, 0,<br />
-                                       buffer, BUFFER_SIZE, &amp;bytes, &amp;bytesNeeded);<br />
+                                       buffer, bufferSize, &amp;bytes, &amp;bytesNeeded);<br />
                     error = GetLastError();<br />
                     if (!success &amp;&amp; (error == ERROR_INSUFFICIENT_BUFFER))<br />
                     {</p>
]]></description><link>https://forum.netxms.org/topic/2218/bug-in-logwatch-subagent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:23:03 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2218.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Feb 2013 19:04:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug in logwatch subagent on Thu, 28 Feb 2013 07:15:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Thanks for the fix, just committed it into trunk.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/9791</link><guid isPermaLink="true">https://forum.netxms.org/post/9791</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 28 Feb 2013 07:15:44 GMT</pubDate></item></channel></rss>