devices: vhoost cpu->copy array overflow on tcp jumbo frame (65535 bytes)
[vpp.git] / src / vnet / devices / virtio / vhost_user_input.c
index 79c66ee..2124ecd 100644 (file)
@@ -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;