diff options
author | Matthew Bentham <matthew.bentham@arm.com> | 2022-02-10 11:12:34 +0000 |
---|---|---|
committer | Matthew Bentham <matthew.bentham@arm.com> | 2022-02-10 12:39:12 +0000 |
commit | c92bbd79eb0c3187031e33c8d6d70773a7d81737 (patch) | |
tree | 7413596792e382f9881686261aa5e9f15ea57c9e /src/backends/cl/workloads | |
parent | f414d999704e2d198aa3136bd556f33a9cc4945f (diff) | |
download | armnn-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/cl/workloads')
0 files changed, 0 insertions, 0 deletions