radv: honour the number of properties available
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 24 Nov 2016 18:14:58 +0000 (18:14 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 27 Nov 2016 23:03:01 +0000 (23:03 +0000)
commita025c5b2c7c9c6862006b13c9b8ab46c3acf8e53
tree68840593aa47472613d28efcebfabe4ee18e47fd
parent0a27dd458b5030be58073f6ab84e144a91be1ced
radv: honour the number of properties available

Cap up-to the number of properties available while copying the data.
Otherwise we might crash and/or leak data.

Cc: Dave Airlie <airlied@redhat.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c