aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibapi
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2023-01-26 19:27:20 +0100
committerFlorin Coras <florin.coras@gmail.com>2023-01-27 16:35:35 +0000
commit49bbf9e98aacfe6f807ab54cb9aebda53e80dce8 (patch)
tree031027ba247ef8891d6680003d41e69bc13b6744 /src/vlibapi
parent16daaaacd12443f5d578f83cb835c68aec89822f (diff)
api: keep AddressSanitizer happy
Type: fix Change-Id: I793206068b8dca15b2f7f525ae1049139333c5b8 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vlibapi')
-rw-r--r--src/vlibapi/api_shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c
index bf037518418..0ea52802bb7 100644
--- a/src/vlibapi/api_shared.c
+++ b/src/vlibapi/api_shared.c
@@ -813,6 +813,7 @@ vl_msg_api_queue_handler (svm_queue_t * q)
while (!svm_queue_sub (q, (u8 *) &msg, SVM_Q_WAIT, 0))
{
+ VL_MSG_API_UNPOISON ((u8 *) msg);
msgbuf_t *msgbuf = (msgbuf_t *) ((u8 *) msg - offsetof (msgbuf_t, data));
vl_msg_api_handler ((void *) msg, ntohl (msgbuf->data_len));
}