Avoiding tempnam (in favor of mkstemp)

Gerald Pfeifer pfeifer at dbai.tuwien.ac.at
Sat Feb 1 02:31:17 CST 2003


We have had some (security-relevant) warning regressions for the following
two programs in tools:

  winegcc.o: In function `get_temp_file':
    /test/wine/tools/winegcc.c:119: warning: tempnam()
    possibly used unsafely; consider using mkstemp()
  winewrap.o: In function `main':
    /test/wine/tools/winewrap.c(.text+0x7fe): warning:
    tempnam() possibly used unsafely; consider using mkstemp()

Would you mind using mkstemp() instead of tempnam()?

Gerald
-- 
Gerald "Jerry"   pfeifer at dbai.tuwien.ac.at   http://www.pfeifer.com/gerald/



More information about the wine-devel mailing list