PSD integration test: deep groups + NaN text, damaged layer section, huge header under a small budget, on a 2 MiB stack

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76
2026-10-13 04:47:27 -04:00
committed by Brandon Thomas
co-authored by Claude Sonnet 5.5
parent f2d481ce20
commit 5f4b3aee86
3 changed files with 97 additions and 1 deletions
+1 -1
View File
@@ -265,7 +265,7 @@ fn pixels_match_the_one_buffer_per_channel_reference() {
}
/// A copy of `bytes` with a different size, depth and merged-image section (`comp`, then `body`).
fn with_merged(bytes: &[u8], size: Option<(u32, u32)>, depth: Option<u16>, comp: u16, body: &[u8]) -> Vec<u8> {
pub(crate) fn with_merged(bytes: &[u8], size: Option<(u32, u32)>, depth: Option<u16>, comp: u16, body: &[u8]) -> Vec<u8> {
let offset = Psd::parse(bytes.to_vec()).unwrap().merged_offset;
let mut v = bytes[..offset].to_vec();
if let Some((w, h)) = size {