]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 5f37f1a81f9199f6080b6669cd455d706a96af06..daecee7e5fc50bcb61f8cad8c481efb4e006a2b3 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;