Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148067129
D3344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D3344.diff
View Options
Index: stable/10/lib/libz/inflate.c
===================================================================
--- stable/10/lib/libz/inflate.c
+++ stable/10/lib/libz/inflate.c
@@ -1504,7 +1504,7 @@
{
struct inflate_state FAR *state;
- if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
+ if (strm == Z_NULL || strm->state == Z_NULL) return -(1L << 16);
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :
Index: stable/9/lib/libz/inflate.c
===================================================================
--- stable/9/lib/libz/inflate.c
+++ stable/9/lib/libz/inflate.c
@@ -1504,7 +1504,7 @@
{
struct inflate_state FAR *state;
- if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
+ if (strm == Z_NULL || strm->state == Z_NULL) return -(1L << 16);
state = (struct inflate_state FAR *)strm->state;
return ((long)(state->back) << 16) +
(state->mode == COPY ? state->length :
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 12:59 PM (6 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29771312
Default Alt Text
D3344.diff (1 KB)
Attached To
Mode
D3344: Fix undefined shift of a negative value in libz
Attached
Detach File
Event Timeline
Log In to Comment