diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-10-16 07:41:55 +0000 |
commit | 40a3261d1a6e2617f6afde0cd6d762a7e211af7a (patch) | |
tree | d70bbf882801af3a4e58dde3ed6a1da1849479d4 /dns/totd/files/extra-patch-ne_mesg.c | |
parent | Fix the string format vulnerability desribed at (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_6_0_0'.release/6.0.0
Diffstat (limited to 'dns/totd/files/extra-patch-ne_mesg.c')
-rw-r--r-- | dns/totd/files/extra-patch-ne_mesg.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dns/totd/files/extra-patch-ne_mesg.c b/dns/totd/files/extra-patch-ne_mesg.c new file mode 100644 index 000000000000..405a791ff81e --- /dev/null +++ b/dns/totd/files/extra-patch-ne_mesg.c @@ -0,0 +1,36 @@ +--- ne_mesg.c.orig Mon Jul 4 11:09:22 2005 ++++ ne_mesg.c Tue Sep 13 21:02:57 2005 +@@ -59,7 +59,7 @@ + + /* write qname */ + if (T.debug > 4) +- syslog (LOG_DEBUG, "%s: qname offset = %zd", fn, ucp - buf); ++ syslog (LOG_DEBUG, "%s: qname offset = %td", fn, ucp - buf); + + i = dname_copy (qname, ucp, buflen - written_len); + if (i < 0) +@@ -70,7 +70,7 @@ + + /* write qtype / qclass */ + if (T.debug > 4) +- syslog (LOG_DEBUG, "%s: qtype/qclass offset = %zd", ++ syslog (LOG_DEBUG, "%s: qtype/qclass offset = %td", + fn, ucp - buf); + + written_len += sizeof (uint16_t) * 2; +@@ -226,13 +226,13 @@ + *cnt = htons (us); + + if (T.debug > 4) +- syslog (LOG_DEBUG, "%s: now counter = %zd", ++ syslog (LOG_DEBUG, "%s: now counter = %u", + fn, us); + } + } + + if (T.debug > 4) +- syslog (LOG_DEBUG, "%s: return %d", fn, *wp - wp_start); ++ syslog (LOG_DEBUG, "%s: return %td", fn, *wp - wp_start); + + return (*wp - wp_start); + } |