From edd at debian.org  Fri Jul  4 12:58:47 2003
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri Jul  4 18:58:59 2003
Subject: [Rd] R documentation -- buffer overflow? (PR#3400)
In-Reply-To: <200307041604.h64G47JH008938@pubhealth.ku.dk>
References: <200307041604.h64G47JH008938@pubhealth.ku.dk>
Message-ID: <20030704165847.GA10893@sonny.eddelbuettel.com>

On Fri, Jul 04, 2003 at 06:04:07PM +0200, maechler@stat.math.ethz.ch wrote:
> 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.

I played with it to, and found that commenting out a single line was enough
to trigger the fault.  And that line had no issues with brackets.

Something fishy happening here ...

Dirk

-- 
Don't drink and derive. Alcohol and analysis don't mix.


[Rd] R documentation -- buffer overflow? (PR#3400)
Dirk Eddelbuettel