[Ffmpeg-cvslog] r7786 - trunk/libavcodec/lzo.c
reimar
subversion
Wed Jan 31 21:57:30 CET 2007
Author: reimar
Date: Wed Jan 31 21:57:30 2007
New Revision: 7786
Modified:
trunk/libavcodec/lzo.c
Log:
Remove boundary checks that are actually done "well enough"
in copy function
Modified: trunk/libavcodec/lzo.c
==============================================================================
--- trunk/libavcodec/lzo.c (original)
+++ trunk/libavcodec/lzo.c Wed Jan 31 21:57:30 2007
@@ -213,10 +213,6 @@
cnt = get_len(&c, x, 15);
copy(&c, cnt + 3);
x = GETB(c);
- if (c.in > c.in_end) {
- c.error |= LZO_INPUT_DEPLETED;
- continue;
- }
if (x > 15)
continue;
cnt = 1;
@@ -228,11 +224,8 @@
copy_backptr(&c, back, cnt + 2);
state=
cnt = x & 3;
- if (cnt)
- copy(&c, cnt);
+ copy(&c, cnt);
x = GETB(c);
- if (c.in > c.in_end)
- c.error |= LZO_INPUT_DEPLETED;
}
*inlen = c.in_end - c.in;
if (c.in > c.in_end)
More information about the ffmpeg-cvslog
mailing list