This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reg. sprintf


Vivek Katakam wrote:

> When compilation i was getting this error thrown by the compiler and
> so I have used that:
> 
> the use of `mktemp' is dangerous, better use `mkstemp'

This message is telling you that using 'mktemp' is not secure and can
lead to vulnerabilities.  It does not mean that you can simply change
all references to 'mktemp' to 'mkstemp' without refactoring the code to
account for the fact that they work differently.

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]