[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: gzip use of memcpy
From: |
Alain Magloire |
Subject: |
RE: gzip use of memcpy |
Date: |
Fri, 8 Jan 2010 13:34:00 -0500 |
> > Index: inflate.c
> ...
> > if (w - d >= e)
> > {
> > - memcpy(slide + w, slide + d, e);
> > + memmove(slide + w, slide + d, e);
>
> Can you give sample values of w, d and e for which this change
> makes a difference? Doesn't the preceding (w - d >= e) guard
> ensure that the source and destination buffers never overlap?
>
According to our tester:
The w==16316
d==16322
w-d == -6 // <-- Unsigned
The bad file is an attachment; you could override the memcpy(3)
implementation with one checking for overlap for example.
Thanks
sella1.tar.gz
Description: sella1.tar.gz
- gzip use of memcpy, Alain Magloire, 2010/01/06
- Re: gzip use of memcpy, Jim Meyering, 2010/01/08
- RE: gzip use of memcpy, Alain Magloire, 2010/01/08
- RE: gzip use of memcpy,
Alain Magloire <=
- Re: gzip use of memcpy, Jim Meyering, 2010/01/10
- RE: gzip use of memcpy, Alain Magloire, 2010/01/11
- Re: gzip use of memcpy, Jim Meyering, 2010/01/11
- RE: gzip use of memcpy, Yuxi Zhang, 2010/01/11
- Re: gzip use of memcpy, Jim Meyering, 2010/01/12
- RE: gzip use of memcpy, Yuxi Zhang, 2010/01/12
- RE: gzip use of memcpy, Alain Magloire, 2010/01/12