bug-glibc
[Top][All Lists]
Advanced

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

Re: glibc 2.2.5 mips bug + patch


From: Andreas Jaeger
Subject: Re: glibc 2.2.5 mips bug + patch
Date: Sat, 13 Jul 2002 01:26:12 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux)

Eliot Dresselhaus <address@hidden> writes:

> Fix obvious typos causing stack to be corrupted.

Thanks, I've committed this,

Andreas

> Noone could have possibly ever tested this code...
>
> Eliot
>
> *** sysdeps/unix/sysv/linux/mips/register-dump.orig.h Fri Jul 12 15:44:26 2002
> --- sysdeps/unix/sysv/linux/mips/register-dump.h      Tue Jul  9 10:12:57 2002
> ***************
> *** 43,50 ****
>   static void
>   register_dump (int fd, struct sigcontext *ctx)
>   {
> !   char regs[32][8];
> !   struct iovec iov[38];
>     size_t nr = 0;
>     int i;
>   
> --- 43,50 ----
>   static void
>   register_dump (int fd, struct sigcontext *ctx)
>   {
> !   char regs[38][8];
> !   struct iovec iov[38*2 + 10];
>     size_t nr = 0;
>     int i;
>   
> ***************
> *** 58,64 ****
>     ++nr
>   
>     /* Generate strings of register contents.  */
> !   for (i = 0; i < 31; i++)
>       hexvalue (ctx->sc_regs[i], regs[i], 8);
>     hexvalue (ctx->sc_pc, regs[32], 8);
>     hexvalue (ctx->sc_cause, regs[33], 8);
> --- 58,64 ----
>     ++nr
>   
>     /* Generate strings of register contents.  */
> !   for (i = 0; i < 32; i++)
>       hexvalue (ctx->sc_regs[i], regs[i], 8);
>     hexvalue (ctx->sc_pc, regs[32], 8);
>     hexvalue (ctx->sc_cause, regs[33], 8);
>
> _______________________________________________
> Bug-glibc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-glibc
>

-- 
 Andreas Jaeger
  SuSE Labs address@hidden
   private address@hidden
    http://www.suse.de/~aj



reply via email to

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