Enforce filter parameter limits

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>