aboutsummaryrefslogtreecommitdiffstats
path: root/compat
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:15:52 +0200
commitff712a262d317f5bd6fc9552cd837508e584a565 (patch)
tree1df777ff727247183a2a725e82d997e1b6ef26ad /compat
parent8f443e4f32c91dc2141b6d0c997a2fe03536e89c (diff)
downloadffmpeg-ff712a262d317f5bd6fc9552cd837508e584a565.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
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions