Opened 8 years ago
Closed 8 years ago
#10745 closed Bugs (fixed)
security warnings when building applications with the boost::logv2 library
Reported by: | Owned by: | Andrey Semashev | |
---|---|---|---|
Milestone: | Boost 1.57.0 | Component: | log |
Version: | Boost 1.57.0 | Severity: | Cosmetic |
Keywords: | security warning | Cc: |
Description
whenn I build my application with Visual Studio 2010 and Boost V1.5.7.0 i get a security warning every time the logging framework is used: 5>C:\dev\boost_1_57_0\boost/log/detail/snprintf.hpp(54): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 5>C:\dev\boost_1_57_0\boost/log/detail/snprintf.hpp(66): warning C4996: '_vsnwprintf': This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Fixed in https://github.com/boostorg/log/commit/dbff19c89c4b43ee4d581028f7256d061d685bd3.