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:
2c6efec
)
vcl: if the ldp user send buf with 0 len, it will assert failed.
84/23584/3
author
jiangxiaoming
<jiangxiaoming@outlook.com>
Thu, 21 Nov 2019 15:34:56 +0000
(23:34 +0800)
committer
Florin Coras
<florin.coras@gmail.com>
Thu, 21 Nov 2019 19:01:51 +0000
(19:01 +0000)
Type: fix
Change-Id: I8ff60cf8726c463491c687e170ad0b1026a1303a
Signed-off-by: jiangxiaoming <jiangxiaoming@outlook.com>
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
263fa91
..
0e5d4fa
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-1897,7
+1897,7
@@
vppcom_session_write_inline (uint32_t session_handle, void *buf, size_t n,
svm_msg_q_t *mq;
u8 is_ct;
- if (PREDICT_FALSE (!buf))
+ if (PREDICT_FALSE (!buf
|| n == 0
))
return VPPCOM_EINVAL;
s = vcl_session_get_w_handle (wrk, session_handle);