Fix LogCatcher 47/192947/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Tue, 13 Nov 2018 06:18:55 +0000 (15:18 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 13 Nov 2018 06:18:55 +0000 (15:18 +0900)
Fix format security error.

Change-Id: I075fc110b3087590403fcd1d172a5172159c5913
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/manifest_parser/utils/logging.h

index adb13fa643123b716be757e6d5ee2dc24d6d58e7..e5f3e5c413251bb37e9656fe4f61da439496ce80 100644 (file)
@@ -70,7 +70,7 @@ class LogCatcher {
     : level_(level), tag_(tag) { }
 
   void operator&(const StringStream<char>& str) const {
-    dlog_print(LogLevelToPriority(level_), tag_.c_str(),
+    dlog_print(LogLevelToPriority(level_), tag_.c_str(), "%s",
         Escape(str.str()).c_str());
 
     static const char* app_installer_log = getenv("APP_INSTALLERS_LOG");