alco / alco/psdump

fix/psd_parser_deep_nesting

Aperta
#4 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
84
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.