Advisory

GHSA-74r2-7ff9-mjj2

Details, part 3 of 3. The advisory

Details

print(f"{size // MB} MB GIF control (0x01): {control[size]:6.2f} s "
f"comments (0xFE): {attack[size]:6.2f} s", flush=True)

growth = attack[4 * MB] / attack[2 * MB]
vs_control = attack[4 * MB] / control[4 * MB]
print(f"doubling 2 MB -> 4 MB multiplied open() time by x{growth:.1f} (linear: ~x2)")
print(f"4 MB comment GIF took x{vs_control:.0f} as long as the same-size control")

BUG: super-linear growth, far slower than the control, and seconds of CPU per open()
print("BUG" if growth >= 3 and vs_control >= 20 and attack[4 * MB] >= 8 else "OK")

</details>

---

Sources & licences