diff options
author | Xi Wang <xi.wang@gmail.com> | 2013-03-15 06:59:22 -0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-03-15 12:52:31 +0100 |
commit | ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6 (patch) | |
tree | fc1c8f78335ea4546e06d79fb0067d2c09382115 /cmdutils_common_opts.h | |
parent | 8425d693eefbedbb41f91735614d41067695aa37 (diff) | |
download | ffmpeg-ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6.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>
Diffstat (limited to 'cmdutils_common_opts.h')
0 files changed, 0 insertions, 0 deletions