mc & Segmentation fault

From: shaman (shamanat_private)
Date: Fri Feb 12 1999 - 17:01:00 PST

  • Next message: Jamie Thain: "Re: Possible FW-1 DoS"

    Some days ago i discovered something..If you export TERM with the name for
    example "buqtraq" and you will start Midnight Commander you will see
    something like this:
    
    localhost:~$ export TERM="bugtraq"
    localhost:~$ mc
    Unknown terminal: buqtraq
    Check the TERM environment variable.
    Also make sure that the terminal is defined in the terminfo database.
    Alternatively, set the TERMCAP environment variable to the desired
    termcap entry.
    
    But if the name of the TERM will include over 227 characters you will see
    something different:
    localhost:~$ export TERM="bugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraq
         bugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraq
         bugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraq
         bugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraq
         bugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraqbugtraq
         "
    localhost:~$ mc
    Segmentation fault
    localhost:~$
    
    I don`t know if it is interesting and i haven`t try do exploiting it but
    maybe someone....
    I have tested it only on Slackware 3.5.
    



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