Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 437860 Details for
Bug 622779
zlib has fence-post error in adler32_combine
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch for adler32_combine bug
zlib-1.2.3.4-adler32_combine-algorithm-fix-backport.patch (text/plain), 735 bytes, created by
Martin Poole
on 2010-08-10 12:07:35 UTC
(
hide
)
Description:
patch for adler32_combine bug
Filename:
MIME Type:
Creator:
Martin Poole
Created:
2010-08-10 12:07:35 UTC
Size:
735 bytes
patch
obsolete
>diff -rup zlib-1.2.3-3/adler32.c zlib-1.2.3/adler32.c >--- zlib-1.2.3-3/adler32.c 2004-12-21 17:52:08.000000000 +0100 >+++ zlib-1.2.3/adler32.c 2010-07-28 17:25:17.000000000 +0200 >@@ -141,9 +141,9 @@ uLong ZEXPORT adler32_combine(adler1, ad > MOD(sum2); > sum1 += (adler2 & 0xffff) + BASE - 1; > sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem; >- if (sum1 > BASE) sum1 -= BASE; >- if (sum1 > BASE) sum1 -= BASE; >- if (sum2 > (BASE << 1)) sum2 -= (BASE << 1); >- if (sum2 > BASE) sum2 -= BASE; >+ if (sum1 >= BASE) sum1 -= BASE; >+ if (sum1 >= BASE) sum1 -= BASE; >+ if (sum2 >= (BASE << 1)) sum2 -= (BASE << 1); >+ if (sum2 >= BASE) sum2 -= BASE; > return sum1 | (sum2 << 16); > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 622779
: 437860