apr_buffer: small changes
- APR_BUFFER_MAX is just half of APR_SIZE_MAX
- Explicitly reject non zero terminated strings where expected.
- APR_BUFFER_NONE becomes APR_BUFFER_PLAIN.
- Handle alloc functions returning NULL.
- Add test for the setting of bogus non zero terminated string.


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1917318 13f79535-47bb-0310-9956-ffa450edef68
3 files changed