1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavutil
Xi Wang ca6c3f2c53 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>
2013-03-15 12:52:31 +01:00
..
2013-03-09 08:36:40 +01:00
2012-07-03 17:26:51 +02:00
2012-04-20 09:43:11 -04:00
2011-05-21 13:48:10 +02:00
2012-10-29 20:05:41 +01:00
2013-01-25 17:20:03 +01:00
2012-10-21 22:38:21 +02:00
2012-10-21 22:38:21 +02:00
2011-12-11 00:32:25 +01:00
2012-08-15 22:32:06 +03:00
2013-01-15 23:18:07 +02:00
2013-03-01 01:44:35 +01:00
2012-12-18 13:36:51 +01:00
2012-10-25 11:36:57 +02:00
2012-10-25 11:36:57 +02:00
2012-10-23 07:33:05 +02:00
2013-01-12 12:00:49 +01:00
2012-11-20 12:45:58 +01:00
2013-01-12 12:00:49 +01:00
2012-06-22 17:15:18 +01:00
2012-06-22 17:15:18 +01:00
2012-08-15 22:32:06 +03:00