See a more extensive description in my GitHub pull request https://github.com/Geant4/geant4/pull/43 . zlib 1.2.11 sometimes operates on heap-allocated memory before initializing it. The externally-visible behaviour seems not to depend on the undefined content of the uninitialized memory, due to the higher-level program logic. However, the memory checker Valgrind reports this as an error. This is problematic as it might draw attention from true positives. The proposed fix initializes the memory with zeros before using it.