bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uudecode bug [PATCH]


From: Richard Guenther
Subject: uudecode bug [PATCH]
Date: Thu, 29 Mar 2001 17:56:28 +0200 (CEST)

Hi!

There's a (harmless) bug in uudecode.c that doesnt catch
data after end of data errors. Patch is appended below.

Richard.

--
Richard Guenther <address@hidden>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/

--- uudecode.c.orig     Thu Mar 29 17:53:48 2001
+++ uudecode.c  Thu Mar 29 17:54:05 2001
@@ -185,10 +185,10 @@
     '\177', '\177', '\177', '\177', '\177', '\177', '\177', '\177', /*370-377*/
   };
   unsigned char buf[2 * BUFSIZ];
+  int last_data = 0;

   while (1)
     {
-      int last_data = 0;
       unsigned char *p;

       if (fgets (buf, sizeof(buf), stdin) == NULL)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]