mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
Work around a gcc bug which causes zlib to dump core in certain
situations. This can be removed once gcc is fixed. Submitted by: bde
This commit is contained in:
parent
81661c94b6
commit
3167dde2d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93497
@ -200,8 +200,13 @@ int r;
|
||||
c->mode = COPY;
|
||||
case COPY: /* o: copying bytes in window, waiting for space */
|
||||
f = q - c->sub.copy.dist;
|
||||
while (f < s->window) /* modulo window size-"while" instead */
|
||||
f += s->end - s->window; /* of "if" handles invalid distances */
|
||||
{
|
||||
/* XXX work around a gcc bug. */
|
||||
volatile inflate_blocks_statef *s1 = s;
|
||||
|
||||
while (f < s1->window) /* modulo window size-"while" instead */
|
||||
f += s1->end - s1->window; /* of "if" handles invalid distances */
|
||||
}
|
||||
while (c->len)
|
||||
{
|
||||
NEEDOUT
|
||||
|
Loading…
Reference in New Issue
Block a user