mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
The inline-image check of patch (60) looked the /CS name up in the ColorSpace resources even when it was a device space name or its inline abbreviation (/RGB, /DeviceRGB, /G, /CMYK, ...). Those names never refer to resources (ISO 32000-2 8.6.8), and ImageXObject::new takes the device space first, so a malformed Indexed resource that happened to share the name skipped an image that would draw correctly. Device names are now excluded before the resource lookup. Test: indexed_lookup::an_inline_device_space_name_ignores_a_resource_of_the_same_name (fails with the filter removed: the image is skipped and drawn white). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC