Re: [PATCH] vhost/crypto: fix descriptor processing

2022-06-22 Thread Maxime Coquelin
On 6/22/22 17:30, David Marchand wrote: copy_data was returning a pointer to an increased (off by one) descriptor. Subsequent calls to copy_data in the library were then failing. Fix this by incrementing the descriptor only if there is some left data to copy. Fixes: 7287660a21e0 ("vhost/crypt

RE: [PATCH] vhost/crypto: fix descriptor processing

2022-06-22 Thread Zhang, Roy Fan
> -Original Message- > From: David Marchand > Sent: Wednesday, June 22, 2022 4:30 PM > To: dev@dpdk.org > Cc: Zhang, Roy Fan ; Poczatek, Jakub > ; Maxime Coquelin > ; Xia, Chenbo > Subject: [PATCH] vhost/crypto: fix descriptor processing > > copy_data

Re: [PATCH] vhost/crypto: fix descriptor processing

2022-06-22 Thread Maxime Coquelin
On 6/22/22 17:30, David Marchand wrote: copy_data was returning a pointer to an increased (off by one) descriptor. Subsequent calls to copy_data in the library were then failing. Fix this by incrementing the descriptor only if there is some left data to copy. Fixes: 7287660a21e0 ("vhost/crypt

[PATCH] vhost/crypto: fix descriptor processing

2022-06-22 Thread David Marchand
copy_data was returning a pointer to an increased (off by one) descriptor. Subsequent calls to copy_data in the library were then failing. Fix this by incrementing the descriptor only if there is some left data to copy. Fixes: 7287660a21e0 ("vhost/crypto: fix build with GCC 12") Reported-by: Jaku