about summary refs log tree commit diff homepage
path: root/lib/Core
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2019-08-13 20:28:51 +0100
committerMartinNowack <martin.nowack@gmail.com>2019-08-14 16:26:48 +0100
commitdc414fde33f3ec22a6ae3cf29cfc6bc4a9ddae1a (patch)
tree56c1467c47fd45bdc2e3bad46b9b82b4186d4b8f /lib/Core
parent8426b2913e650970d46be9a4d088bf3945f41453 (diff)
downloadklee-dc414fde33f3ec22a6ae3cf29cfc6bc4a9ddae1a.tar.gz
Replace sprintf with snprintf throughout codebase
Diffstat (limited to 'lib/Core')
-rw-r--r--lib/Core/ExecutorTimers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Core/ExecutorTimers.cpp b/lib/Core/ExecutorTimers.cpp
index 22429221..e1d6684d 100644
--- a/lib/Core/ExecutorTimers.cpp
+++ b/lib/Core/ExecutorTimers.cpp
@@ -117,7 +117,7 @@ void Executor::processTimers(ExecutionState *current,
   if (ticks || dumpPTree || dumpStates) {
     if (dumpPTree) {
       char name[32];
-      sprintf(name, "ptree%08d.dot", (int) stats::instructions);
+      snprintf(name, sizeof(name), "ptree%08d.dot", (int) stats::instructions);
       auto os = interpreterHandler->openOutputFile(name);
       if (os) {
         processTree->dump(*os);