Skip to content

fix/psd_parser_deep_nesting #4

@irov

Description

@irov

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions