From: Andre Noll Date: Thu, 7 May 2009 14:44:57 +0000 (+0200) Subject: Remove an overambitious sanity check in the fecdec filter. X-Git-Tag: v0.3.4~1 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e0acbd356abf4d9f1b693065b1ff23c57c53ab1e;p=paraslash.git Remove an overambitious sanity check in the fecdec filter. --- diff --git a/fecdec_filter.c b/fecdec_filter.c index 5f37f1a8..daecee7e 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -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;