[PATCH 1/2] libvhost-user: Fix pointer arithmetic in indirect read

2024-01-12 Thread Temir Zharaspayev
When zero-copy usage of indirect descriptors buffer table isn't possible, library gather scattered memory chunks in a local copy. This commit fixes the issue with pointer arithmetic for the local copy buffer. Signed-off-by: Temir Zharaspayev --- subprojects/libvhost-user/libvhost-user.c

[PATCH 2/2] libvduse: Fix pointer arithmetic in indirect read

2024-01-12 Thread Temir Zharaspayev
When zero-copy usage of indirect descriptors buffer table isn't possible, library gather scattered memory chunks in a local copy. This commit fixes the issue with pointer arithmetic for the local copy buffer. Signed-off-by: Temir Zharaspayev --- subprojects/libvduse/libvduse.c

[PATCH 0/2] Fix pointer arithmetic in indirect read for libvhost-user and libvduse

2024-01-12 Thread Temir Zharaspayev
vring_desc) have implemented fix with proper byte pointer arithmetic. Sincerely, Temir. Temir Zharaspayev (2): libvhost-user: Fix pointer arithmetic in indirect read libvduse: Fix pointer arithmetic in indirect read subprojects/libvduse/libvduse.c | 11 ++- subprojects