aboutsummaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-09-21 23:35:50 -0700
committerMark Adler <madler@alumni.caltech.edu>2016-09-21 23:35:50 -0700
commit6a043145ca6e9c55184013841a67b2fef87e44c0 (patch)
tree521ea23934f8280e71ad581d5028d9f045424c9e /crc32.c
parent9aaec95e82117c1cb0f9624264c3618fc380cecb (diff)
downloadzlib-6a043145ca6e9c55184013841a67b2fef87e44c0.tar.gz
zlib-6a043145ca6e9c55184013841a67b2fef87e44c0.tar.bz2
zlib-6a043145ca6e9c55184013841a67b2fef87e44c0.zip
Remove offset pointer optimization in inftrees.c.
inftrees.c was subtracting an offset from a pointer to an array, in order to provide a pointer that allowed indexing starting at the offset. This is not compliant with the C standard, for which the behavior of a pointer decremented before its allocated memory is undefined. Per the recommendation of a security audit of the zlib code by Trail of Bits and TrustInSoft, in support of the Mozilla Foundation, this tiny optimization was removed, in order to avoid the possibility of undefined behavior.
Diffstat (limited to 'crc32.c')
0 files changed, 0 insertions, 0 deletions