From 4687a1c9ffe0d1d3f6ea01f360faa542a5b6491c Mon Sep 17 00:00:00 2001 From: Kees Cook Date: Tue, 20 Mar 2007 17:16:36 +0000 Subject: format string protection/clean up (CVE-2007-1463, CVE-2007-1464) (bzr r2720) --- src/dom/util/ziptool.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/dom/util') diff --git a/src/dom/util/ziptool.h b/src/dom/util/ziptool.h index 895f0ccb2..120fe568a 100644 --- a/src/dom/util/ziptool.h +++ b/src/dom/util/ziptool.h @@ -32,6 +32,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include @@ -203,8 +204,8 @@ private: std::string fileName; //debug messages - void error(char *fmt, ...); - void trace(char *fmt, ...); + void error(char *fmt, ...) G_GNUC_PRINTF(2,3); + void trace(char *fmt, ...) G_GNUC_PRINTF(2,3); unsigned long crc; @@ -469,8 +470,8 @@ public: private: //debug messages - void error(char *fmt, ...); - void trace(char *fmt, ...); + void error(char *fmt, ...) G_GNUC_PRINTF(2,3); + void trace(char *fmt, ...) G_GNUC_PRINTF(2,3); //# Private writing methods -- cgit v1.2.3