commit | a7f49dcb527dd17877fcb8d5c3a9a6f550e0bba5 | [log] [download] |
---|---|---|
author | djm@openbsd.org <djm@openbsd.org> | Mon Jan 12 15:18:07 2015 +0000 |
committer | Damien Miller <djm@mindrot.org> | Tue Jan 13 19:25:52 2015 +1100 |
tree | 0db86a4b895a3ec9bf168df6d385cc9544184dc6 | |
parent | 905fe30fca82f38213763616d0d26eb6790bde33 [diff] |
upstream commit 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@