]> git.ipfire.org Git - thirdparty/asterisk.git/commit
vector: Prevent NULL argument to memcpy. 35/4235/1
authorCorey Farrell <git@cfware.com>
Sun, 30 Oct 2016 18:33:12 +0000 (14:33 -0400)
committerCorey Farrell <git@cfware.com>
Sun, 30 Oct 2016 18:46:04 +0000 (13:46 -0500)
commitb2bf6c4c22793639930736b55d0bbcb173b5e82d
tree2cbc15eb9b1e0ecfcfe14cba40daa759928d30bb
parentd84eaa46fadddf30a51c4ad41a4aa9a970efb0ca
vector: Prevent NULL argument to memcpy.

Headers declare that memcpy does not accept NULL argument for the first
two parameters.  Add a conditional block to prevent memcpy and ast_free
from running on vectors with NULL element array.

ASTERISK-26526 #close

Change-Id: I988a476bb5fcfcbd3f6d6c6b3e7769e4f9629b71
include/asterisk/vector.h