Merged requested to merge bitbucket/merged-pr-548 into branch/default
Created originally on Bitbucket by palecsandru (Alecsandru Patrascu)
Was already merged in Bitbucket before import, marked as merged by the import user
Source changeset not longer availableat the time of import. Commit listwill look empty
This pull request is related to issue #2561 (closed). Added the possibility to have zero sized buffer length. Implemented also a test to check the validity of this implementation.