* [gentoo-commits] gentoo-x86 commit in net-analyzer/fwlogwatch/files: fwlogwatch-1.2-overflow.patch
@ 2011-08-01 2:31 Jeroen Roovers (jer)
0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2011-08-01 2:31 UTC (permalink / raw
To: gentoo-commits
jer 11/08/01 02:31:27
Added: fwlogwatch-1.2-overflow.patch
Log:
Fix buffer overflow (bug #337415).
(Portage version: 2.2.0_alpha49/cvs/Linux x86_64)
Revision Changes Path
1.1 net-analyzer/fwlogwatch/files/fwlogwatch-1.2-overflow.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/files/fwlogwatch-1.2-overflow.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fwlogwatch/files/fwlogwatch-1.2-overflow.patch?rev=1.1&content-type=text/plain
Index: fwlogwatch-1.2-overflow.patch
===================================================================
--- a/response.c
+++ b/response.c
@@ -117,32 +117,32 @@
}
snprintf(buf2, BUFSIZE, " %d %s", this_host->count, inet_ntoa(this_host->shost));
- strncat(buf, buf2, BUFSIZE);
+ strncat(buf, buf2, BUFSIZE -1);
if (opt.dst_ip) {
snprintf(buf2, BUFSIZE, " %s", inet_ntoa(this_host->dhost));
- strncat(buf, buf2, BUFSIZE);
+ strncat(buf, buf2, BUFSIZE -1);
} else {
strncat(buf, " -", BUFSIZE);
}
if (opt.proto) {
snprintf(buf2, BUFSIZE, " %d", this_host->protocol);
- strncat(buf, buf2, BUFSIZE);
+ strncat(buf, buf2, BUFSIZE -1);
} else {
strncat(buf, " -", BUFSIZE);
}
if (opt.src_port) {
snprintf(buf2, BUFSIZE, " %d", this_host->sport);
- strncat(buf, buf2, BUFSIZE);
+ strncat(buf, buf2, BUFSIZE -1);
} else {
strncat(buf, " -", BUFSIZE);
}
if (opt.dst_port) {
snprintf(buf2, BUFSIZE, " %d", this_host->dport);
- strncat(buf, buf2, BUFSIZE);
+ strncat(buf, buf2, BUFSIZE -1);
} else {
strncat(buf, " -", BUFSIZE);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-01 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01 2:31 [gentoo-commits] gentoo-x86 commit in net-analyzer/fwlogwatch/files: fwlogwatch-1.2-overflow.patch Jeroen Roovers (jer)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox