pine/pico vt control characters bug

From: Michal Zalewski (lcamtufat_private)
Date: Sat Apr 25 1998 - 05:24:43 PDT

  • Next message: John Vranesevich: "Special Report On Buffer Overfolws"

    Pico, an editor included with pine 3.96 package, handles vt control
    characters (eg. 0x9B) improperly, so it's possible to do almost anything
    when normal text file is viewed with pico. Example? Try viewing file
    containing only two characters: 0x9B and 0x63... That's not all, pico is
    called by pine when you're replying to mail message. Anyone may insert any
    control chars (using quoted-printable encoding) to his signature.
    
    Fix:
    
    --- display.c.orig      Wed Jul 10 18:59:09 1996
    +++ display.c   Sat Apr 25 14:23:41 1998
    @@ -266,7 +266,7 @@
            }
             while ((vtcol&0x07) != 0);
         }
    -    else if (c.c < 0x20 || c.c == 0x7F) {
    +    else if (c.c < 0x20 || c.c == 0x7F || c.c == 0x9B) {
            ac.c = '^';
             vtputc(ac);
            ac.c = (c.c ^ 0x40);
    
    (should help, at least in above situation)
    
    _______________________________________________________________________
    Michal Zalewski [lcamtufat_private] <= finger for pub PGP key
    Iterowac jest rzecza ludzka, wykonywac rekursywnie - boska [P. Deutsch]
    [echo "\$0&\$0">_;chmod +x _;./_] <=------=> [tel +48 (0) 22 813 25 86]
    



    This archive was generated by hypermail 2b30 : Fri Apr 13 2001 - 13:51:14 PDT