Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/png-fencepost/readme
need to account for png filter algorithm byte. also, since the buffer is not cleared on read, we need to insure a full read of the header.