Is glibc branch now frozen?

Jakub Jelinek jakub@redhat.com
Thu Jun 5 15:14:00 GMT 2003


On Thu, Jun 05, 2003 at 11:02:58AM -0400, Daniel Jacobowitz wrote:
> OK, I'll bite.
> 
> Can you give an example where this patch makes any difference?  It
> appears that h should never, ever exceed 0xffffffff anyway.

Say "\xf\xf\xf\xf\xf\xf\xf ".
If h before entering a loop round is >= 0xffffff1 and
(h << 4) + ch >= 0xffffffffL.

> > 2003-05-07  Andrew Haley  <aph@redhat.com>
> > 
> > 	* elf.c (bfd_elf_hash): Mask lower 32 bits of hash.
> > 
> > --- bfd/elf.c~  2003-05-06 18:15:30.000000000 +0100
> > +++ bfd/elf.c   2003-05-07 17:50:52.000000000 +0100
> > @@ -265,7 +265,7 @@
> >           h ^= g;
> >         }
> >      }
> > -  return h;
> > +  return h & 0xffffffff;
> >  }
> >  
> >  /* Read a specified number of bytes at a specified offset in an ELF
> > 

	Jakub



More information about the Binutils mailing list