### What did you do? ```python from PIL import Image with Image.open("poc.dds") as img: img.load() ``` ### What did you expect to happen? ``` Image.UnidentifiedImageError ``` ### What actually happened? ``` ZeroDivisionError: division by zero ``` ### What are your OS, Python and Pillow versions? * OS: Ubuntu 22.04 * Python: 3.10.18 * Pillow: 12.0.0 (latest) [poc.zip](https://github.com/user-attachments/files/23019771/poc.zip)