Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
devices: vhoost cpu->copy array overflow on tcp jumbo frame (65535 bytes)
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
vhost_user_input.c
diff --git
a/src/vnet/devices/virtio/vhost_user_input.c
b/src/vnet/devices/virtio/vhost_user_input.c
index
79c66ee
..
2124ecd
100644
(file)
--- a/
src/vnet/devices/virtio/vhost_user_input.c
+++ b/
src/vnet/devices/virtio/vhost_user_input.c
@@
-532,6
+532,7
@@
vhost_user_if_input (vlib_main_t * vm,
}
/* Prepare a copy order executed later for the data */
+ ASSERT (copy_len < VHOST_USER_COPY_ARRAY_N);
vhost_copy_t *cpy = &cpu->copy[copy_len];
copy_len++;
u32 desc_data_l = desc_table[desc_current].len - desc_data_offset;