layers:Check buffer offset against required size
authorTobin Ehlis <tobine@google.com>
Wed, 16 Nov 2016 16:01:28 +0000 (09:01 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 17 Nov 2016 22:34:38 +0000 (15:34 -0700)
commit0044a16bb19e7af3c636cf903fb6a51c31655b28
treec33947c7e4a530ffb738edcf41bc13a1b2f7318e
parent15caa3e8f88f57bdcc42a3eabb9375e57007e5aa
layers:Check buffer offset against required size

Fixes #1030

Use the required memory size instead of bound memory size when
validating the offset into a memory buffer. This will correctly handle
both sparse and non-sparse cases.
layers/core_validation.cpp