Handle 0 or negative request in Buffer
Merge pull request #1964 from zsxwing/fix-buffer-request

Handle 0 or negative request in Buffer