Re: patch for expandmacro
Scott Prahl <[email protected]> Sat, 2 Oct 2004 15:40:54 -0700
| Newsgroups | gmane.comp.tex.latex.latex2rtf.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sunday, September 12, 2004, at 04:28 PM, jcopenha wrote: > I was running into a problem on my particular tex file that had some > large parameters to macros. This was causing a segfault in > definitions.c:expandmacro because it was overflowing the staticly > allocated buffer[1024]. I've changed it to calculate the max length > based on the args array and the macro passed in. I applied your patch. > There are still some > other places where this code could fail but this fix solves my problem. > =) Ironically, after I applied your patch, I got a security alert that this piece of code was subject to buffer overruns. Consequently, I just fixed those "other places" so that macro expansion should fixed. Thanks, Scott ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl