Changeset a09bb3ba in ffmpeg

Timestamp:
Dec 11, 2011, 6:54:28 PM (13 years ago)
Author:
Mans Rullgard <mans@mansr.com>
Branches:
master
Children:
4424fe9c
Parents:
3383a53e
git-author:
Mans Rullgard <mans@mansr.com> (12/05/11 15:38:10)
git-committer:
Mans Rullgard <mans@mansr.com> (12/11/11 18:54:28)
Message:

lavc: avoid invalid memcpy() in avcodec_default_release_buffer()

When the buf and last pointers are equal, the FFSWAP() results
in an invalid call to memcpy() with same source and destination
on some targets. Although assigning a struct to itself is valid
C99, gcc does not check for this before calling memcpy().
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667

Signed-off-by: Mans Rullgard <mans@mansr.com>

(No files)

Note: See TracChangeset for help on using the changeset viewer.