alco / alco/psdump

fix/psd_parser_deep_nesting

Offen
#4 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C
Sterne
84
Forks
22
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.