]> git.lizzy.rs Git - zlib.git/commit
Avoid an undefined behavior of memcpy() in _tr_stored_block().
authorMark Adler <zlib@madler.net>
Fri, 13 Oct 2017 02:44:01 +0000 (19:44 -0700)
committerMark Adler <zlib@madler.net>
Fri, 13 Oct 2017 02:44:01 +0000 (19:44 -0700)
commit723e928b84b0adac84cc11ec5c075a45e1a79903
tree5090ac2d115e17a71528780ad8efe70b74f907fa
parentb25d5fcdcf4723ca3da8bc69ecc6c52010778f7c
Avoid an undefined behavior of memcpy() in _tr_stored_block().

Allegedly the behavior of memcpy() is undefined if the source
pointer is NULL, even if the number of bytes to copy is zero.
trees.c