texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] graphviz plugin broken?


From: Gregory Wright
Subject: Re: [Texmacs-dev] graphviz plugin broken?
Date: Fri, 2 Jan 2004 12:55:55 -0500



I'll have a look at patch tm_graphviz. I'll try to get to the R plugin but my useful
working time is limited (two week old infant in the house).

Thanks to David, Joris and Martin for the analysis of the problem.

Best Wishes,
Gregory



The correct way to fix this problem is modifying the code using realloc
so only one pointer is considered for ownership puposes (that is,
getting the start-of-buffer address and free'ing the buffer).

address@hidden lib]$ source-grep realloc
/home/vdhoeven/texmacs/src/plugins/graphviz/src/tm_graphviz.c: buf = (char*)realloc( buf, buflen); /home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char *)realloc( b->buf, b->size ) ; /home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char *)realloc( b->buf, b->size ) ; /home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char *)realloc( b->buf, b->size ) ; /home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char *)realloc( b->buf, b->size ) ; /home/vdhoeven/texmacs/src/plugins/r/src/tm_r.c: b->buf = (char *)realloc( b->buf, b->size ) ;

TeXmacs does not use realloc; only some plug-ins do, namely R and ... Graphviz.
If someone could correct this problem...







reply via email to

[Prev in Thread] Current Thread [Next in Thread]