Warn about usage of posix function mktemp (#3918).

This commit is contained in:
PKEuS 2015-12-18 18:29:53 +01:00
parent a6b719eb10
commit c15c61db00
1 changed files with 2 additions and 0 deletions

View File

@ -528,6 +528,8 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<not-null/> <not-null/>
<not-uninit/> <not-uninit/>
</arg> </arg>
<warn severity="warning">Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead.
The function 'mktemp' is considered to be dangerous due to race conditions and some implementations generating only up to 26 different filenames out of each template. This function has been removed in POSIX.1-2008. Use 'mkstemp' or 'mkdtemp' instead.</warn>
</function> </function>
<!-- char *getcwd(char *buf, size_t size); --> <!-- char *getcwd(char *buf, size_t size); -->
<function name="getcwd"> <function name="getcwd">