FreeBSD Bugzilla – Attachment 21059 Details for
Bug 36998
rsync: -z option core dumps on large files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-infcodes.c
patch-infcodes.c (text/plain; charset=us-ascii), 765 bytes, created by
anders
on 2002-04-21 17:34:30 UTC
(
hide
)
Description:
patch-infcodes.c
Filename:
MIME Type:
Creator:
anders
Created:
2002-04-21 17:34:30 UTC
Size:
765 bytes
patch
obsolete
>--- zlib/infcodes.c.orig Tue Mar 12 02:14:58 2002 >+++ zlib/infcodes.c Sun Apr 21 18:14:34 2002 >@@ -197,8 +197,15 @@ > 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 */ >+ { >+ /* Work-around for a FreeBSD gcc bug. */ >+#ifdef __FreeBSD__ >+ volatile inflate_blocks_statef *s1 = s; >+#endif >+ >+ while (f < s1->window) /* modulo window size-"while" instead */ >+ f += s1->end - s1->window; /* of "if" handles invalid distances */ >+ } > while (c->len) > { > NEEDOUT
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 36998
: 21059 |
21060