]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix a latent issue with chunkmemset
authorAdam Stylinski <kungfujesus06@gmail.com>
Fri, 18 Mar 2022 00:22:56 +0000 (20:22 -0400)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 18 Mar 2022 14:56:57 +0000 (15:56 +0100)
commite81c083fda107ca37b93304a1fd0aa9e68acfdee
treecb0fc1bdd8ae1d93344ed0f2bad98950c0e5ce75
parent1f87fac9d3812a4932ccf3d73a613c172866889c
Fix a latent issue with chunkmemset

It would seem that on some platforms, namely those which are
!UNALIGNED64_OK, there was a likelihood of chunkmemset_safe_c copying all
the bytes before passing control flow to chunkcopy, a function which is
explicitly unsafe to be called with a zero length copy.

This fixes that bug for those platforms.
chunkset_tpl.h