diff options
author | Xi Wang <xi.wang@gmail.com> | 2013-03-15 07:11:47 -0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-03-15 12:51:57 +0100 |
commit | 8425d693eefbedbb41f91735614d41067695aa37 (patch) | |
tree | 3a68041a248305aa27ecbbce03eeb6248fdaf537 /libavutil | |
parent | eba1ff31304e407db3cefd7532108408f364367b (diff) | |
download | ffmpeg-8425d693eefbedbb41f91735614d41067695aa37.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>
Diffstat (limited to 'libavutil')
0 files changed, 0 insertions, 0 deletions