From kmillar at google.com  Tue Sep 23 21:55:35 2014
From: kmillar at google.com (Karl Millar)
Date: Tue, 23 Sep 2014 12:55:35 -0700
Subject: [Rd] Patch for R to fix some buffer overruns and add a missing
	PROTECT().
In-Reply-To: <5421CD30.7090300@gmail.com>
References: <CABz6aZdT9VNxqKwy1QuWqvP6=tfa0+j--b6GXdQTd82+hvkkAA@mail.gmail.com>
	<5421CD30.7090300@gmail.com>
Message-ID: <CABz6aZcD4z_RJAxwRGMnfFGefh8i2_1pbJvDPqxbYX7zmLs6oQ@mail.gmail.com>

Bug submitted.  Thanks.

On Tue, Sep 23, 2014 at 12:42 PM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
> On 23/09/2014 3:20 PM, Karl Millar wrote:
>>
>> This patch is against current svn and contains three classes of fix:
>>     - Ensure the result is properly terminated after calls to strncpy()
>>     - Replace calls of sprintf() with snprintf()
>>     - Added a PROTECT() call in do_while which could cause memory
>> errors if evaluating the condition results in a warning.
>
>
> Nothing was attached.
>
> Generally fixes like this are best sent to bugs.r-project.org, and they
> receive highest priority if accompanied by code demonstrating why they are
> needed, i.e. crashes or incorrect results in current R.  Those will likely
> be incorporated as regression tests.
>
> Duncan Murdoch



[Rd] Patch for R to fix some buffer overruns and add a missing PROTECT().
Karl Millar