You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rpmsg_virtio_get_tx_payload_buffer assumes the payload will contain a full header and does not check whether the returned buffer size from rpmsg_virtio_get_tx_buffer is at least size of "rpmsg_hdr" structure before buffer size is decremented. Is it impossible for a bad packet to be received at this layer?
The text was updated successfully, but these errors were encountered:
At least for the host (master) a check should be added in rpmsg_init_vdev_with_config to ensure that the buffers size is valid.
Then an assert could be added for device (slave) to protect from or invalid initialization or memory corruption.
rpmsg_virtio_get_tx_payload_buffer assumes the payload will contain a full header and does not check whether the returned buffer size from rpmsg_virtio_get_tx_buffer is at least size of "rpmsg_hdr" structure before buffer size is decremented. Is it impossible for a bad packet to be received at this layer?
The text was updated successfully, but these errors were encountered: