Commit e3be1da3 authored by reimar's avatar reimar

Remove boundary checks that are actually done "well enough"

in copy function


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7786 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cfda2b01
...@@ -213,10 +213,6 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { ...@@ -213,10 +213,6 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) {
cnt = get_len(&c, x, 15); cnt = get_len(&c, x, 15);
copy(&c, cnt + 3); copy(&c, cnt + 3);
x = GETB(c); x = GETB(c);
if (c.in > c.in_end) {
c.error |= LZO_INPUT_DEPLETED;
continue;
}
if (x > 15) if (x > 15)
continue; continue;
cnt = 1; cnt = 1;
...@@ -228,11 +224,8 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) { ...@@ -228,11 +224,8 @@ int lzo1x_decode(void *out, int *outlen, void *in, int *inlen) {
copy_backptr(&c, back, cnt + 2); copy_backptr(&c, back, cnt + 2);
state= state=
cnt = x & 3; cnt = x & 3;
if (cnt) copy(&c, cnt);
copy(&c, cnt);
x = GETB(c); x = GETB(c);
if (c.in > c.in_end)
c.error |= LZO_INPUT_DEPLETED;
} }
*inlen = c.in_end - c.in; *inlen = c.in_end - c.in;
if (c.in > c.in_end) if (c.in > c.in_end)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment