ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.38k stars 3.61k forks source link

server: the use of `tmpnam' is dangerous, better use `mkstemp' #2465

Open WilliamTambellini opened 3 weeks ago

WilliamTambellini commented 3 weeks ago

Just a warning but still:

[ 95%] Linking CXX executable ../../bin/server
ld: CMakeFiles/server.dir/server.cpp.o: in function 
`main::{lambda(httplib::Request const&, httplib::Response&)#3}::operator()(httplib::Request const&, httplib::Response&) const':
server.cpp:(.text+0x44be): warning: the use of `tmpnam' is dangerous, better use `mkstemp'

ref: https://cwe.mitre.org/data/definitions/377.html