Check user input size

Check if min-buffer-size, max-buffer-size and size are greater than 0.