Bug 1402340 - zlib: Incompatible declarations for external linkage function deflate
Summary: zlib: Incompatible declarations for external linkage function deflate
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-07 09:56 UTC by Andrej Nemec
Modified: 2021-02-17 02:55 UTC (History)
32 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-07 09:58:18 UTC


Attachments (Terms of Use)

Description Andrej Nemec 2016-12-07 09:56:08 UTC
The declaration and implementation of the deflate function use incompatible
types. The first argument to deflate is of type zstreamp, which is a pointer to an
internal structure that has a member of type struct internal_state. In a default
compilation of zlib, struct internal_state is re-defined after the declaration of
deflate .

External References:

https://wiki.mozilla.org/images/0/09/Zlib-report.pdf
https://docs.google.com/document/d/10i1KZS5so8xDqH2rplRa2xet0tyTvvJlLbQQmZIUIKE/edit#heading=h.t13tvnx4loq7

Upstream patch:

https://github.com/madler/zlib/commit/3fb251b363866417122fe54a158a1ac5a7837101

Comment 1 Andrej Nemec 2016-12-07 09:58:18 UTC
My bad, this one did not receive a CVE.

We feel that the scope of CVE should, ideally, omit unexploitable
code-quality issues. The PDF report has a number of comments about
Finding 1; however, one comment is "current compilers process this
code without issues." A finding can be important to the practice of
software development without being important for vulnerability
management. For now, the answer is that there is no CVE ID.


Note You need to log in before you can comment on or make changes to this bug.