At packet.c:796 the function inflate is called with flush equals Z_PARTIAL_FLUSH. Following zlib.h comment at line 432 this is not a valid value for inflate. From what I understand using Z_PARTIAL_FLUSH has the same effect as Z_NO_FLUSH.
This should be harmless as the corresponding deflate() call uses Z_PARTIAL_FLUSH that should guarantee that the entirety of the compressed data is available even for Z_NO_FLUSH. I'll see about changing the deflate side to a explicitly-supported flag.
This has been committed and will be included in the openssh-8.9 release. Thanks!
closing bugs resolved before openssh-8.9