Re: [Nagios-devel] [PATCH] Fix memory corruption caused by a

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] [PATCH] Fix memory corruption caused by a

Post by Guest »


Michael Marineau wrote:
> Greetings,
>
> The function unescape_newlines in cgi/cgiutils.c will blindly unescape
> any character preceded by the backslash by taking the value of the next
> character and incrementing to skip over it. This happens even when that
> next character is the terminating null, causing the loop to continue on
> corrupting memory until it hits another null character. The attached
> patch should fix this issue. It is against 3.0.6 but should still apply
> to the latest code.
>
> This bug is triggered when any plugin's output ends with a backslash
> which has been reported at least a couple times, most recently here:
> http://thread.gmane.org/gmane.network.n ... focus=6117
>
> Cheers,

Thanks Michael - fix is in CVS.


- Ethan Galstad





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked