]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- security fix.
authorPaweł Sikora <pluto@pld-linux.org>
Mon, 9 Feb 2004 17:52:35 +0000 (17:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav-remote_dos_exploit.patch -> 1.1

clamav-remote_dos_exploit.patch [new file with mode: 0644]

diff --git a/clamav-remote_dos_exploit.patch b/clamav-remote_dos_exploit.patch
new file mode 100644 (file)
index 0000000..11bcefd
--- /dev/null
@@ -0,0 +1,20 @@
+--- libclamav/message.c.orig   2003-11-05 11:59:53.000000000 +0100
++++ libclamav/message.c        2004-02-09 18:36:43.215707744 +0100
+@@ -878,13 +878,15 @@ decodeLine(const message *m, const char 
+                       if(strcasecmp(line, "end") == 0)
+                               break;
+-                      assert(strlen(line) <= 62);
++                      if (strlen(line) > 62)
++                          break;
+                       if((line[0] & 0x3F) == ' ')
+                               break;
+                       len = *line++ - ' ';
+-                      assert((len >= 0) && (len <= 63));
++                      if ((len < 0) || (len > 63))
++                          break;
+                       ptr = decode(line, ptr, uudecode, (len & 3) == 0);
+                       break;
This page took 0.104854 seconds and 4 git commands to generate.