Secure logs format string 68/38368/7
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Fri, 17 Apr 2015 19:00:22 +0000 (21:00 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 23 Apr 2015 15:45:37 +0000 (17:45 +0200)
commitb60c44a200c04e4ae2175a26740bed4e43695d74
tree5464891e3ebd64d19a8fdf875de1f89ea65523cd
parent0454623ddf00ff07eb171e06b865c64ef669137d
Secure logs format string

This patch makes compilers happy. Some of them complain,
if -werror=format-security flag was enabled about insecure format
string, that is created using stringstream.

This patch defines own format string "%s" if there are no additional
parameters except format string passed to LOGX macros.

The drawback of this solution is that usage of %m is not supported
if there are no additional arguments to LOG (beside format message).

Change-Id: I2d4ab5a07d170c85f162a5f59cb63ecbfb56fec6
packaging/cynara.spec
src/common/CMakeLists.txt
src/common/log/log.h