diff options
Diffstat (limited to 'net-misc/cfengine/files')
-rw-r--r-- | net-misc/cfengine/files/cfengine-2.2.10-snprintf_buffer_overflow.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net-misc/cfengine/files/cfengine-2.2.10-snprintf_buffer_overflow.patch b/net-misc/cfengine/files/cfengine-2.2.10-snprintf_buffer_overflow.patch new file mode 100644 index 000000000000..dee9b797f6ac --- /dev/null +++ b/net-misc/cfengine/files/cfengine-2.2.10-snprintf_buffer_overflow.patch @@ -0,0 +1,11 @@ +--- src/instrument.c.old 2010-10-15 22:20:58.014091858 +0200 ++++ src/instrument.c 2010-10-15 22:21:34.132271440 +0200 +@@ -542,7 +542,7 @@ while (dbcp->c_get(dbcp, &key, &value, D + + tthen = (time_t)then; + +- snprintf(datebuf,CF_BUFSIZE-1,"%s",ctime(&tthen)); ++ snprintf(datebuf,CF_MAXVARSIZE-1,"%s",ctime(&tthen)); + datebuf[strlen(datebuf)-9] = '\0'; /* Chop off second and year */ + + snprintf(addr,15,"%s",hostname+1); |