mirror of https://github.com/madler/zlib.git
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.pull/168/head
parent
9aaec95e82
commit
6a043145ca
1 changed files with 8 additions and 10 deletions
Loading…
Reference in new issue