From e0acbd356abf4d9f1b693065b1ff23c57c53ab1e Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 7 May 2009 16:44:57 +0200 Subject: [PATCH] Remove an overambitious sanity check in the fecdec filter. --- fecdec_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5