apparently memcpy(x, NULL, 0) is undefined behaviour according to
authordjm <djm@openbsd.org>
Mon, 12 Jan 2015 15:18:07 +0000 (15:18 +0000)
committerdjm <djm@openbsd.org>
Mon, 12 Jan 2015 15:18:07 +0000 (15:18 +0000)
commit38940dfd04fe962674726534b4e88593400cfc1c
tree8a0a0031cec41cc628fc397c0a46d2dd5313934d
parentcb15d449de3c979e4dfee7b8eaa3f4b99b15a759
apparently memcpy(x, NULL, 0) is undefined behaviour according to
C99 (cf. sections 7.21.1 and 7.1.4), so check skip memcpy calls when
length==0; ok markus@
usr.bin/ssh/sshbuf-getput-basic.c
usr.bin/ssh/sshbuf-getput-crypto.c