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)
commit234620548fe22f5b2004cc1221b91703466b8b12
tree9f3fdb51775056ccb5a4e1937a443417c4202d5f
parent9812cc645dabc5e71b5fa5bffed61851e46973dd
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