layers: Make bind more robust to invalid memory
authorJohn Zulauf <jzulauf@LunarG.com>
Thu, 11 Jan 2018 23:39:30 +0000 (16:39 -0700)
committerMike Weiblen <mikew@lunarg.com>
Tue, 16 Jan 2018 18:28:24 +0000 (11:28 -0700)
commit47bc78af8c4354d1b06196baeefed680cc8a6cc2
treea779aaaab749b1a2fa3712623c05f3e95d9975ed
parent7bc436cd4be28f1e14b67678af887b8d7a2f78df
layers: Make bind more robust to invalid memory

Added nullptr check to BindBufferMemory and BindImageMemory validation
to cope with invalid memory arguments (reported elsewhere).

Change-Id: I52266490ccfe9eff7d5f451cddc4d3bbf94b3c5d
layers/core_validation.cpp