Skip to content

fix/psd_parser_deep_nesting #4

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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