rsync: avoid reallocarray() with a nmemb of 0.
authortb <tb@openbsd.org>
Fri, 27 Sep 2024 13:10:39 +0000 (13:10 +0000)
committertb <tb@openbsd.org>
Fri, 27 Sep 2024 13:10:39 +0000 (13:10 +0000)
commit54ac47722f20707625db02ce26ac8072e716fb52
tree7980990a09ec0f000b7df272538d0490e2bbd60b
parentcd54cfb88f9f5ff1a563936fccece38dbde1aaa1
rsync: avoid reallocarray() with a nmemb of 0.

bset->blksz can be 0 here and how reallocarray() behaves is implementation
defined.
usr.bin/rsync/blocks.c