Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still don't see it. Note that there is 4 bytes of padding at the end of the image data to simplify the bounds check in the decoder. Those 4 bytes are subtracted from the chunks_len that the pixel start bound check compares against. So you could craft an image where the last pixel runs into that padding (which the encoder won't produce since it always pads with the full 4 bytes) but not one where the pixel data is read from outside the image buffer beyond the padding.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: