diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-06-09 17:20:16 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-06-21 17:13:05 +0000 |
commit | d4721b2152b245558f5753a60d909b5b233af493 (patch) | |
tree | 231d65b1d95b5975bdd1723d6150079e41e77cff /src/vppinfra/memcpy.h | |
parent | 3006289a07429730ff69c2585eed6d6075be3565 (diff) |
vppinfra: asan: fix overflow support
In some part of VPP we are accessing memory past what was allocated for
efficiency when we know it is safe to do so. We need to tell ASan about
it so it does not complain.
The initial attempt was too simple and could not manage cases where the
poisoned memory was scattered. This new attempt is more robust as we
save and restore the full shadow state.
Note it will still not work properly if we poison/unpoison memory while
in an overflow context, but this should not be a big issue as overflow
should only be temporary.
Type: fix
Change-Id: I636f44eb59aa8455a4d13929a3791b56619af7b4
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/memcpy.h')
0 files changed, 0 insertions, 0 deletions