aboutsummaryrefslogtreecommitdiff
path: root/src/backends/neon/workloads/NeonFloorFloatWorkload.hpp
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2022-02-10 11:12:34 +0000
committerMatthew Bentham <matthew.bentham@arm.com>2022-02-10 12:39:12 +0000
commitc92bbd79eb0c3187031e33c8d6d70773a7d81737 (patch)
tree7413596792e382f9881686261aa5e9f15ea57c9e /src/backends/neon/workloads/NeonFloorFloatWorkload.hpp
parentf414d999704e2d198aa3136bd556f33a9cc4945f (diff)
downloadarmnn-c92bbd79eb0c3187031e33c8d6d70773a7d81737.tar.gz
Avoid writing to and reading from misaligned pointers in UnitTests
Use of pointers which do not meet the alignment requirements of the underlying type have undefined behaviour in C++. This change replaces direct use of the pointers, with use of memcpy to copy between aligned buffers and misaligned buffers. Fixes errors found by -fsanitize=undefined Signed-off-by: Matthew Bentham <matthew.bentham@arm.com> Change-Id: Ia37a6b5aae2803d1d0e160d1646f711bfe647a60
Diffstat (limited to 'src/backends/neon/workloads/NeonFloorFloatWorkload.hpp')
0 files changed, 0 insertions, 0 deletions