Skip to content

src/library/grid/src/grid.c (PR#14199)

3 messages · A.R.Runnalls at kent.ac.uk, Peter Dalgaard, Paul Murrell

#
At around line 2590, in function gridRect() in
src/library/grid/src/grid.c (at the latest svn revision, 50745), ought
not temp, www and hhh to be PROTECTed within this block?

Andrew
#
A.R.Runnalls at kent.ac.uk wrote:
Plausible, provided that anything can allocate while those are being
used. Could you perhaps investigate that a little further? (Bug reports
should really contains exclamation points and not question marks...)


If unit() can allocate, then all constructs like

2565                 www = unit(xadj, L_INCHES);
2566                 hhh = unit(yadj, L_INCHES);

are equally dubious.


Oh, never mind, unit() definitely allocates, so of course you are right!
#
Hi

This is fixed in r-devel (revision 51061).
Thanks for the report!

Paul
Peter Dalgaard wrote: