Hi, I found possible use after free with Svace static analyzer. An access to field `state->out` occur at https://github.com/madler/zlib/blob/5a82f71ed1dfc0bec044d9702463dbdf84ea3b71/gzread.c#L470 after it could be deallocated during gz_look() failure.