Ensure the MakerNote data pointers are initialized with NULL.
authorDan Fandrich <dan@coneharvesters.com>
Sat, 16 May 2020 17:29:21 +0000 (19:29 +0200)
committerMarcus Meissner <meissner@suse.de>
Sat, 16 May 2020 17:29:21 +0000 (19:29 +0200)
commitec412aa4583ad71ecabb967d3c77162760169d1f
treee54299f14ec649e53cc1300415c6311a7b00769c
parent435e21f05001fb03f9f186fa7cbc69454afd00d1
Ensure the MakerNote data pointers are initialized with NULL.

This ensures that an uninitialized pointer isn't dereferenced later in
the case where the number of components (and therefore size) is 0.

This fixes the second issue reported at
https://sourceforge.net/p/libexif/bugs/125/

CVE-2020-13113
libexif/canon/exif-mnote-data-canon.c
libexif/fuji/exif-mnote-data-fuji.c
libexif/olympus/exif-mnote-data-olympus.c
libexif/pentax/exif-mnote-data-pentax.c