groff
[Top][All Lists]
Advanced

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

Re: Fw: [Groff] Bug#56702: [PATCH] security bugfix for grohtml


From: Werner LEMBERG
Subject: Re: Fw: [Groff] Bug#56702: [PATCH] security bugfix for grohtml
Date: Thu, 10 Feb 2000 23:26:19 GMT

> >+static FILE *create_tmp_file (char *filename)
> > {
> >   FILE *f;
> >+  int   fd;
> 
> This whole snippet plus some more really reminds of the functions:
> 
> mktemp(), mkstemp(), mkstemps() and these should be pretty portable.
> 
> You might, or not of course, want to consider using these instead,
> unless I must've missed the idea of code presented for the temp file
> creation.

I second that.  There is a function called xtmpfile() in
src/libgroff/tmpfile.cc -- maybe it is possible to extend it so that
it can be used with grohtml also.


    Werner


reply via email to

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