A bug in the `php read stream all chunks()` function allows for the disclosure of sensitive heap memory. This occurs when the `getimagesize()` function reads images in multi-chunk mode, such as through `php://filter` streams, because the buffer is overwritten without advancing the pointer, leaving tail bytes uninitialized. This can leak uninitialized heap memory into APPn segments (e.g., APP1). The issue is triggered when an attacker controls the stream chunk size and crafts a JPEG with a large APP1 segment spanning multiple read chunks.