Add test for segfault on zero-length buffer.
avoid trying to read invalid memory as png
Merge pull request #41 from mapbox/zero-buffer-segfault

Zero buffer segfault