Re: [FFmpeg-devel] [PATCH] tools/zmqsend: Avoid mem copy past the end of input buffer

2019-08-09 Thread Michael Niedermayer
On Thu, Aug 08, 2019 at 05:19:54PM +0200, Paul B Mahol wrote: > On Thu, Aug 8, 2019 at 4:44 PM Andriy Gelman > wrote: > > > From: Andriy Gelman > > > > This patch avoids a read past the end of the input buffer in memcpy since > > the size > > of the received zmq message is recv_buf_size - 1. > >

Re: [FFmpeg-devel] [PATCH] tools/zmqsend: Avoid mem copy past the end of input buffer

2019-08-08 Thread Paul B Mahol
On Thu, Aug 8, 2019 at 4:44 PM Andriy Gelman wrote: > From: Andriy Gelman > > This patch avoids a read past the end of the input buffer in memcpy since > the size > of the received zmq message is recv_buf_size - 1. > --- > tools/zmqsend.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[FFmpeg-devel] [PATCH] tools/zmqsend: Avoid mem copy past the end of input buffer

2019-08-08 Thread Andriy Gelman
From: Andriy Gelman This patch avoids a read past the end of the input buffer in memcpy since the size of the received zmq message is recv_buf_size - 1. --- tools/zmqsend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/zmqsend.c b/tools/zmqsend.c index 7bd7fe4199..f2