diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2022-11-23 18:58:06 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2022-12-07 09:33:05 +0000 |
commit | 4002a609b1e5a75d7527cd8b7cb05ed444d27caa (patch) | |
tree | 42cf79157bab3cfa83b5ccec1b8f69e400d65314 /python/pyarmnn/tox.ini | |
parent | 30dc2d2a1b0e9d3822abddc739dcb36cb672ea98 (diff) | |
download | armnn-4002a609b1e5a75d7527cd8b7cb05ed444d27caa.tar.gz |
Fix some memory overruns / undefined behaviour in ShapeInferenceTests
In several cases the address of a single float value on the stack was
passed as a pointer to the constructor of ScopedTensor (which needs
a backing-store of size equal to GetNumBytes()).
Replace by using a std::vector to explicitly create and initialize
the right number of elements.
Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I8a1f4bf169bd89983f2d68047173ec901a21e1fb
Diffstat (limited to 'python/pyarmnn/tox.ini')
0 files changed, 0 insertions, 0 deletions