Remove an overambitious sanity check in the fecdec filter.
authorAndre Noll <maan@systemlinux.org>
Thu, 7 May 2009 14:44:57 +0000 (16:44 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 7 May 2009 14:44:57 +0000 (16:44 +0200)
fecdec_filter.c

index 5f37f1a..daecee7 100644 (file)
@@ -363,7 +363,7 @@ static ssize_t fecdec(char *buf, size_t len, struct filter_node *fn)
        ret = read_fec_header(buf, len, &h);
        if (ret <= 0)
                return ret;
-       if (!h.slice_bytes || h.slice_bytes > fn->bufsize)
+       if (!h.slice_bytes)
                return -E_BAD_SLICE_SIZE;
        if (h.slice_num > h.slices_per_group)
                return -E_BAD_SLICE_NUM;