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/CMakeLists.txt | |
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/CMakeLists.txt')
-rw-r--r-- | src/vppinfra/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 6da1fa2a0a1..64420b96676 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -77,6 +77,7 @@ set(VPPINFRA_SRCS random.c random_isaac.c rbtree.c + sanitizer.c serialize.c socket.c std-formats.c |