aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segafilm.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2013-03-15 06:59:22 -0400
committerMichael Niedermayer <michaelni@gmx.at>2014-06-23 15:23:06 +0200
commit974c2ad87c348a0116a40758ab47ecf2c8d132d2 (patch)
treea8c86f1fee83f20abda358c7783e0bb20a8c97a3 /libavformat/segafilm.c
parent90c8fa52216b7a9fc83167f791dd7bb1d01bbaf2 (diff)
downloadffmpeg-974c2ad87c348a0116a40758ab47ecf2c8d132d2.tar.gz
lzo: fix overflow checking in copy_backptr()
The check `src > dst' in the form `&c->out[-back] > c->out' invokes pointer overflow, which is undefined behavior in C. Remove the check. Also replace `&c->out[-back] < c->out_start' with a safe form `c->out - c->out_start < back' to avoid overflow. 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 ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6) Conflicts: libavutil/lzo.c (cherry picked from commit ff712a262d317f5bd6fc9552cd837508e584a565) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/segafilm.c')
0 files changed, 0 insertions, 0 deletions