Check user input size

Check if min-buffer-size, max-buffer-size and size are greater than 0.
Should fix the latest coverity defect