Commit Graph

6 Commits

Author SHA1 Message Date
Andriy Gelman
90e965be6d tools/zmqsend: Avoid mem copy past the end of input buffer
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.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-09 23:18:58 +02:00
Michael Niedermayer
87f6f15460 tools/zmqsend: Do not truncate fgetc() return
Fixes CID1396836

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-24 14:46:25 +01:00
Timothy Gu
d903b4e3ad zmqsend: Initialize ret to 0
Fixes CID1396857.
2016-12-05 11:27:13 -08:00
Stefano Sabatini
129ce05b02 tools/zmqsend: rename ctx to zmq_ctx
The new name is more explicit.
2013-12-23 18:44:52 +01:00
Stefano Sabatini
dd00f9cac3 tools/zmqsend: use valid NULL log context
The zmq context is not a valid log context. Fix crash.
2013-12-23 18:44:52 +01:00
Stefano Sabatini
2a1b7dee6d tools: add zmqsend tool, useful to test the zmq filters 2013-05-14 20:10:55 +02:00