diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2017-07-08 21:04:44 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2017-07-09 12:56:15 +0200 |
commit | 79f64f7ebc2b2b7030c6219914bc141cc03fd377 (patch) | |
tree | d14d3329e4ff78b6ffedcca63ee0444ef8256e7d /libavcodec/flacdec.c | |
parent | fd92dafaff8844b5fedf94679b93d953939a7f7b (diff) | |
download | ffmpeg-79f64f7ebc2b2b7030c6219914bc141cc03fd377.tar.gz |
bitstream: Avoid undefined behavior in bitstream_skip()
Do not use skip_remaining() to fully wipe the cache, as this could do
a 64-bit shift of a 64-bit variable which is undefined behavior in C.
Instead set the related variables to zero directly.
Thanks to Uoti for pointing out the problem.
CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/flacdec.c')
0 files changed, 0 insertions, 0 deletions