git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vhost: fix out-of-bounds read
[dpdk.git]
/
lib
/
librte_vhost
/
vhost_user
/
vhost-net-user.c
diff --git
a/lib/librte_vhost/vhost_user/vhost-net-user.c
b/lib/librte_vhost/vhost_user/vhost-net-user.c
index
2dc0547
..
549f907
100644
(file)
--- a/
lib/librte_vhost/vhost_user/vhost-net-user.c
+++ b/
lib/librte_vhost/vhost_user/vhost-net-user.c
@@
-333,7
+333,7
@@
vserver_message_handler(int connfd, void *dat, int *remove)
ctx.fh = cfd_ctx->fh;
ret = read_vhost_message(connfd, &msg);
- if (ret <= 0 || msg.request > VHOST_USER_MAX) {
+ if (ret <= 0 || msg.request >
=
VHOST_USER_MAX) {
if (ret < 0)
RTE_LOG(ERR, VHOST_CONFIG,
"vhost read message failed\n");