bug-bash
[Top][All Lists]
Advanced

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

Re: crash inserting character before a special and a normal one


From: Philippe Biondi
Subject: Re: crash inserting character before a special and a normal one
Date: Thu, 17 Apr 2003 18:54:40 +0200 (CEST)

On Thu, 17 Apr 2003, Tobias Rittweiler wrote:

> On Thursday, April 17, 2003 at 6:04:51 PM,
>     Philippe Biondi <address@hidden> wrote:
>
> > [...]
> > Description:
> > At the prompt : type a special character (eg. euro char.) and a normal
> > one.
> > then go to the begining of the line and type a normal character.
> > It segfaults.
> > [...]
>
> Try the patch from
>         http://mail.gnu.org/archive/html/bug-bash/2003-04/msg00026.html

-      memset (ps, 0, sizeof(mbstate_t));
+      if (ps != NULL) memset (ps, 0, sizeof(mbstate_t));

That will fix the problem. But is it normal for "ps" to be null here ?
I could not determine that as I can't match my sources with the binary
verion I have.

Thanks for your quick reply!

Best regards, Phil.

-- 
Philippe Biondi <biondi@ cartel-securite.fr> Cartel Sécurité
Security Consultant/R&D                      http://www.cartel-securite.fr
Phone: +33 1 44 06 97 94                     Fax: +33 1 44 06 97 99
PGP KeyID:3D9A43E2  FingerPrint:C40A772533730E39330DC0985EE8FF5F3D9A43E2






reply via email to

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