From: Lutz M. <lu...@us...> - 2004-08-26 20:08:26
|
Update of /cvsroot/libexif/libexif/libexif/pentax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18453/libexif/pentax Modified Files: exif-mnote-data-pentax.c Log Message: 2004-08-26 Lutz Mueller <lu...@us...> Suggestions from Angela Wrobel <Ang...@gm...>: * libexif/exif-entry.c * libexif/exif-loader.c * libexif/exif-utils.c * olympus/exif-mnote-data-olympus.c * pentax/exif-mnote-data-pentax.c: Check if malloc returned NULL. Index: exif-mnote-data-pentax.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/pentax/exif-mnote-data-pentax.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- exif-mnote-data-pentax.c 13 Jul 2004 15:16:38 -0000 1.7 +++ exif-mnote-data-pentax.c 26 Aug 2004 20:08:09 -0000 1.8 @@ -79,6 +79,7 @@ if (buf_size < 2) return; c = exif_get_short (buf + 6 + n->offset, n->order); n->entries = malloc (sizeof (MnotePentaxEntry) * c); + if (!n->entries) return; memset (n->entries, 0, sizeof (MnotePentaxEntry) * c); for (i = 0; i < c; i++) { |