[bug #17874] Crashing inside liblow.c



Follow-up Comment #1, bug #17874 (project mc):

Acconding to further analysis, I have found a fix inside liblow.c
I absolutelly don't know why mc passes here NULL. May be that new glibc is
more sensitive to NULL than old one. (mc -d is also workaround, but this
don't kill mouse.)

/* do we really need this check ? */
	 if(option.consolename==NULL) goto err;
	 if(tty==NULL) goto err;
         if(strncmp(tty,option.consolename,strlen(option.consolename)-1)
            || !isdigit(tty[strlen(option.consolename)-1])) {
            gpm_report(GPM_PR_ERR,"strncmp/isdigit/option.consolename
failed");
            goto err;
         }
    _______________________________________________________

Additional Item Attachment:

File name: liblow.diff                    Size:0 KB
Fix inside gpm to make mc working.
<http://savannah.gnu.org/bugs/download.php?file_id=10859>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?17874>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




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