aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pca.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-03-15 07:11:47 -0400
committerReinhard Tartler <siretart@tauware.de>2013-05-09 11:29:05 +0200
commitf8d3bb8961d2cdea38ae2971436deae556d78f08 (patch)
treec9830142363412f09be1819987e8c73bd99531c1 /libavutil/pca.c
parent78889be3fb4b78a980de283a80a6eabb307db882 (diff)
downloadffmpeg-f8d3bb8961d2cdea38ae2971436deae556d78f08.tar.gz
flacdec: simplify bounds checking in flac_probe()
Simplify `p->buf > p->buf + p->buf_size - 4' as `p->buf_size < 4'. Avoid a possible out-of-bounds pointer, which is undefined behavior in C. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org> (cherry picked from commit 8425d693eefbedbb41f91735614d41067695aa37)
Diffstat (limited to 'libavutil/pca.c')
0 files changed, 0 insertions, 0 deletions