Martin.Schlather@uni-bayreuth.de
2003-Jul-04 15:59 UTC
[Rd] R documentation -- buffer overflow? (PR#3400)
Hi, I have attached a larger Rd file that causes an error when compiled by R CMD Rdconv -t txt xswms2d.Rd (for example). If the size is reduced the error vanishes, see the lines 230 and 527 in the file. I could not find an error within my text and so my guess is that there is some buffer overflow within the compiler. If it is me who has caused the error please let me know -- and many apologies. Cheers, Martin -- Martin Schlather email: Martin.Schlather@uni-bayreuth.de Abteilung Bodenphysik phone: +49 (0)921 55 2193 Univ. Bayreuth Fax : +49 (0)921 55 2246 D -- 95440 Bayreuth, Germany http://www.geo.uni-bayreuth.de/~martin/
maechler@stat.math.ethz.ch
2003-Jul-04 18:04 UTC
[Rd] R documentation -- buffer overflow? (PR#3400)
>>>>> "Martin" == Martin Schlather <Martin.Schlather@uni-bayreuth.de> >>>>> on Fri, 4 Jul 2003 15:59:21 +0200 (MET DST) writes:Martin> I have attached a larger Rd file that causes an error when Unfortunately, attachments are always "mangled" when going through R-bugs; we strongly recommend to put that file on the Net, and only send an URL to it. Martin> compiled by Martin> R CMD Rdconv -t txt xswms2d.Rd Martin> (for example). If the size is reduced the error vanishes, Martin> see the lines 230 and 527 in the file. Martin> I could not find an error within my text I know how smart you are, but still, just because you didn't find it, does not really prove .... ;-) see below Martin> and so my guess is that there is some buffer Martin> overflow within the compiler. I don't think so. When I use cut and paste to recreate your file, and do (in a {t}csh; (ba|k)?sh needs another syntax) R CMD Rdconv --debug -t txt xswms2d.Rd >& xswms2d.txt The resulting file becomes ---------------------------------------------------------- -- read file 'xswms2d.Rd'; -- mark_brackets:............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................! ............................. ******* Syntax error: mismatched or missing brackets in /----- \name{xswms2d} \alias{xswms2d} \title{Modelling of water flux and solute transport} <..........> <..........> -------------------------------------------------------------- and is even a bit larger than the original. I can hardly believe that ``Syntax error: mismatched or missing brackets in ...'' is caused by a (perl) buffer overflow. Best regards to Bayreuth, in any case Martin Maechler <maechler@stat.math.ethz.ch> http://stat.ethz.ch/~maechler/ Seminar fuer Statistik, ETH-Zentrum LEO C16 Leonhardstr. 27 ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND phone: x-41-1-632-3408 fax: ...-1228 <><