bug-glibc
[Top][All Lists]
Advanced

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

glibc 2.2.5 mips bug + patch


From: Eliot Dresselhaus
Subject: glibc 2.2.5 mips bug + patch
Date: Fri, 12 Jul 2002 15:49:07 -0700

Fix obvious typos causing stack to be corrupted.
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);



reply via email to

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