mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-29 04:47:10 -06:00
Finding 26. Rendered::to_png resized its pixel buffer to width*height*4 when the lengths differed, so a Rendered claiming a huge size (its fields are public) allocated that much with no budget; to_jpeg asserted inside the encoder on the same mismatch. Both now encode only pixels that are exactly width*height RGBA within the raster cap, and return empty (logged) otherwise. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>