[VulnDiscuss] Re: pgp4pine stack overflow vulnerability

Jacek Lipkowski <[email protected]>
Newsgroups gmane.comp.security.vulnerabilities.watch.general
Message-ID <Pine.LNX.4.53.0303131248120.24129__48266.0041926012$1047578791@acid.ch.pw.edu.pl>
On Wed, 12 Mar 2003, Eric AUGE wrote:

> IV Workaround/Solutions
>
>   Deactivate pgp4pine and use another pgp wrapper for pine :
>   http://pgpenvelope.sourceforge.net/
>   http://www.megaloman.com/~hany/software/pinepgp/stable.html
>   or any other...

or use the following trivial patch:

--- menus.c.orig        2003-03-13 11:16:43.000000000 +0100
+++ menus.c     2003-03-13 12:44:45.000000000 +0100
@@ -34,11 +34,13 @@
                          executed, EOF breaks directly */
        return;
      }
-     else if ((readline[i++]=c) == '\n')
+     else if ((readline[i]=c) == '\n')
      {
+if (i<(CONSOLE_IO_LINE_LENGTH-2)) i++;
        readline[i]='\0';
        fertig=1;
      }
+else if (i<(CONSOLE_IO_LINE_LENGTH-2)) i++;
    }
    fertig=0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.