]> granicus.if.org Git - php/commitdiff
improve the check, avoid strlen on NULL
authorAnatol Belski <ab@php.net>
Wed, 3 Aug 2016 16:26:29 +0000 (18:26 +0200)
committerDavey Shafik <me@daveyshafik.com>
Wed, 3 Aug 2016 19:29:03 +0000 (12:29 -0700)
ext/exif/exif.c

index 1dfa956aceac3097ed6a29378572b7a8fe5b42c3..f62f77a60f5fab7650c479f6f0146354d50aae51 100644 (file)
@@ -1702,10 +1702,6 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c
                        if (!length)
                                break;
                case TAG_FMT_UNDEFINED:
-                       if (tag == TAG_MAKER_NOTE) {
-                               length = MIN(length, strlen(value));
-                       }
-
                        if (value) {
                                if (tag == TAG_MAKER_NOTE) {
                                        length = MIN(length, strlen(value));