Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/psd_parser_deep_nesting #4

Open
irov opened this issue Jul 28, 2016 · 2 comments
Open

fix/psd_parser_deep_nesting #4

irov opened this issue Jul 28, 2016 · 2 comments

Comments

@irov
Copy link

irov commented Jul 28, 2016

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;
    }
@alco
Copy link
Owner

alco commented Jul 30, 2016

Hi @irov. Could please clarify which source file this code is in? Also, do you have a sample PSD file that reproduces the issue?

@irov
Copy link
Author

irov commented Jul 30, 2016

Hi, source in file layer_mask.c line 265
PSD is simple, you must create 10+ sub group (maybe enough 8)
like this
-Group 1
--Group 2
---Group 3
----Group 4
-----Group 5
------Group 6
---------etc
----------Layer 1

P.S. I create on next week new fix & issues)) Coming soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants