]> git.pld-linux.org Git - packages/whois.git/commitdiff
- fix buffer overflow (ZH2003-25SA)
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 4 Sep 2003 14:15:59 +0000 (14:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    whois-overflow.patch -> 1.1

whois-overflow.patch [new file with mode: 0644]

diff --git a/whois-overflow.patch b/whois-overflow.patch
new file mode 100644 (file)
index 0000000..bfe4e52
--- /dev/null
@@ -0,0 +1,11 @@
+--- ./whois.c.org      Sun Jun 15 18:36:52 2003
++++ ./whois.c  Thu Sep  4 16:06:57 2003
+@@ -78,7 +78,7 @@
+       }
+       if (strchr(ripeflagsp, ch)) {
+           for (p = fstring; *p; p++);
+-          sprintf(p--, "-%c %s ", ch, optarg);
++          snprintf(p--, sizeof(fstring), "-%c %s ", ch, optarg);
+           if (ch == 't' || ch == 'v' || ch == 'q')
+               nopar = 1;
+           continue;
This page took 0.089545 seconds and 4 git commands to generate.