[FFmpeg-devel] [PATCH] qpeg: avoid pointless invalid memcpy()

Michael Niedermayer michaelni at gmx.at
Tue Jan 13 18:22:10 CET 2015


On Tue, Jan 13, 2015 at 02:47:47PM +0100, wm4 wrote:
> If refdata was NULL, the memcpy() ended up copying the same memory
> block onto itself, which is not only pointless, but also undefined
> behavior.
> ---
> Someone spotted the issue in valgrind output.
> ---
>  libavcodec/qpeg.c | 13 +++++++------
>  1 file changed, 7 insertions(+), 6 deletions(-)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150113/55bf4ddf/attachment.asc>


More information about the ffmpeg-devel mailing list