From murdoch at stats.uwo.ca  Fri Jan 25 13:09:10 2008
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Fri, 25 Jan 2008 07:09:10 -0500
Subject: [Rd] strsignif.c, util.c (PR#10635)
In-Reply-To: <20080125114512.F272D283462C@mail.pubhealth.ku.dk>
References: <20080125114512.F272D283462C@mail.pubhealth.ku.dk>
Message-ID: <4799D166.4060006@stats.uwo.ca>

A.R.Runnalls at kent.ac.uk wrote:
> In R 2.6.1, a couple of places (discovered using valgrind) where the
> requested size of string buffers fails to account correctly for the
> trailing null byte:
>
> 1. In src/appl/strsignif.c, 'f0' and 'form' at l. 108-9 each need at
> least 1 extra byte.
>   
At least this one is still there; I'll fix it (and take a look at the 
other, too).

Thanks!

Duncan Murdoch
> 2. In src/main/util.c, 'out' at l. 1081 needs at least one extra byte.
>
> (Remember that the return value of strlen does not include the null byte.)
>
> Andrew Runnalls
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] strsignif.c, util.c (PR#10635)
Duncan Murdoch