Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
16daaaa
)
api: keep AddressSanitizer happy
52/38052/2
author
Benoît Ganne
<bganne@cisco.com>
Thu, 26 Jan 2023 18:27:20 +0000
(19:27 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Fri, 27 Jan 2023 16:35:35 +0000
(16:35 +0000)
Type: fix
Change-Id: I793206068b8dca15b2f7f525ae1049139333c5b8
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vlibapi/api_shared.c
patch
|
blob
|
history
diff --git
a/src/vlibapi/api_shared.c
b/src/vlibapi/api_shared.c
index
bf03751
..
0ea5280
100644
(file)
--- 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));
}