Branch: Tag:

2021-03-24

2021-03-24 22:38:50 by Tobias S. Josefowitz <tobij@tobij.de>

Image.XCF: Properly initialize layer mask

Thanks to Cezary Cerekwicki <ccerekwicki@opera.com> for the report.

497:    struct buffer loffset = *initial;    struct layer_mask *m=(struct layer_mask *)xalloc(sizeof(struct layer_mask));    res.mask = m; -  read_data( &loffset, lm_offset ); +     MEMSET(m, 0, sizeof( struct layer_mask )); -  +  read_data( &loffset, lm_offset );    *m = read_layer_mask( &loffset, initial );    }