alco / alco/psdump

fix/psd_parser_deep_nesting

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
84
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Section divider setting sometime has 16 byte code length

code to fix this bug

```

if(size >= 12)
{
// Signature: '8BIM'
if(psd_stream_get_int(context) != '8BIM')
return psd_status_divider_signature_error;

// blend mode
layer->divider_blend_mode = psd_stream_get_blend_mode(context);
}

// Following is only present if length == 16
if( size == 16 )
{
//Sub type. 0 = normal, 1 = scene group, affects the animation timeline.
int divider_animation_timeline_mode = psd_stream_get_int( context );

layer->divider_animation_timeline_mode = divider_animation_timeline_mode;
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.