diff options
author | Xi Wang <[email protected]> | 2013-03-15 06:59:22 -0400 |
---|---|---|
committer | Reinhard Tartler <[email protected]> | 2013-05-09 11:29:05 +0200 |
commit | 530d10792de29a25dc56781abe6864e5b31b8ced (patch) | |
tree | e3980a2360cdb3e854c1ae345777df4f4b98b3ea /libavcodec/ac3_parser.c | |
parent | f8d3bb8961d2cdea38ae2971436deae556d78f08 (diff) |
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: [email protected]
Signed-off-by: Xi Wang <[email protected]>
Signed-off-by: Luca Barbato <[email protected]>
(cherry picked from commit ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6)
Conflicts:
libavutil/lzo.c
Diffstat (limited to 'libavcodec/ac3_parser.c')
0 files changed, 0 insertions, 0 deletions