Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/libexif-0.6.22/contrib/aolserver/nsexif.c
Examining data/libexif-0.6.22/contrib/c++/exif_module.cxx
Examining data/libexif-0.6.22/contrib/examples/cam_features.c
Examining data/libexif-0.6.22/contrib/examples/photographer.c
Examining data/libexif-0.6.22/contrib/examples/thumbnail.c
Examining data/libexif-0.6.22/contrib/examples/write-exif.c
Examining data/libexif-0.6.22/contrib/watcom/_stdint.h
Examining data/libexif-0.6.22/libexif/canon/exif-mnote-data-canon.c
Examining data/libexif-0.6.22/libexif/canon/exif-mnote-data-canon.h
Examining data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c
Examining data/libexif-0.6.22/libexif/canon/mnote-canon-entry.h
Examining data/libexif-0.6.22/libexif/canon/mnote-canon-tag.c
Examining data/libexif-0.6.22/libexif/canon/mnote-canon-tag.h
Examining data/libexif-0.6.22/libexif/exif-byte-order.c
Examining data/libexif-0.6.22/libexif/exif-byte-order.h
Examining data/libexif-0.6.22/libexif/exif-content.c
Examining data/libexif-0.6.22/libexif/exif-content.h
Examining data/libexif-0.6.22/libexif/exif-data-type.h
Examining data/libexif-0.6.22/libexif/exif-data.h
Examining data/libexif-0.6.22/libexif/exif-entry.h
Examining data/libexif-0.6.22/libexif/exif-format.c
Examining data/libexif-0.6.22/libexif/exif-format.h
Examining data/libexif-0.6.22/libexif/exif-ifd.c
Examining data/libexif-0.6.22/libexif/exif-ifd.h
Examining data/libexif-0.6.22/libexif/exif-loader.c
Examining data/libexif-0.6.22/libexif/exif-loader.h
Examining data/libexif-0.6.22/libexif/exif-log.c
Examining data/libexif-0.6.22/libexif/exif-log.h
Examining data/libexif-0.6.22/libexif/exif-mem.c
Examining data/libexif-0.6.22/libexif/exif-mem.h
Examining data/libexif-0.6.22/libexif/exif-mnote-data-priv.h
Examining data/libexif-0.6.22/libexif/exif-mnote-data.c
Examining data/libexif-0.6.22/libexif/exif-mnote-data.h
Examining data/libexif-0.6.22/libexif/exif-system.h
Examining data/libexif-0.6.22/libexif/exif-tag.c
Examining data/libexif-0.6.22/libexif/exif-tag.h
Examining data/libexif-0.6.22/libexif/exif-utils.c
Examining data/libexif-0.6.22/libexif/exif-utils.h
Examining data/libexif-0.6.22/libexif/exif.h
Examining data/libexif-0.6.22/libexif/fuji/exif-mnote-data-fuji.c
Examining data/libexif-0.6.22/libexif/fuji/exif-mnote-data-fuji.h
Examining data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c
Examining data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.h
Examining data/libexif-0.6.22/libexif/fuji/mnote-fuji-tag.c
Examining data/libexif-0.6.22/libexif/fuji/mnote-fuji-tag.h
Examining data/libexif-0.6.22/libexif/i18n.h
Examining data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c
Examining data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.h
Examining data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c
Examining data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.h
Examining data/libexif-0.6.22/libexif/olympus/mnote-olympus-tag.c
Examining data/libexif-0.6.22/libexif/olympus/mnote-olympus-tag.h
Examining data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c
Examining data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.h
Examining data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c
Examining data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.h
Examining data/libexif-0.6.22/libexif/pentax/mnote-pentax-tag.c
Examining data/libexif-0.6.22/libexif/pentax/mnote-pentax-tag.h
Examining data/libexif-0.6.22/libexif/exif-data.c
Examining data/libexif-0.6.22/libexif/exif-entry.c
Examining data/libexif-0.6.22/test/nls/print-localedir.c
Examining data/libexif-0.6.22/test/nls/test-codeset.c
Examining data/libexif-0.6.22/test/nls/test-nls.c
Examining data/libexif-0.6.22/test/test-extract.c
Examining data/libexif-0.6.22/test/test-fuzzer.c
Examining data/libexif-0.6.22/test/test-integers.c
Examining data/libexif-0.6.22/test/test-mem.c
Examining data/libexif-0.6.22/test/test-mnote.c
Examining data/libexif-0.6.22/test/test-null.c
Examining data/libexif-0.6.22/test/test-parse.c
Examining data/libexif-0.6.22/test/test-sorted.c
Examining data/libexif-0.6.22/test/test-tagtable.c
Examining data/libexif-0.6.22/test/test-value.c

FINAL RESULTS:

data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:37:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,                            \
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:49:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:58:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/exif-log.h:93:30:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			__attribute__((__format__(printf,4,5)))
data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c:34:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,	                        \
data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c:46:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:125:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy ((char *)*buf, n->version==sanyoV1?"SANYO":
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:36:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,	                        \
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:48:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,	                        \
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:61:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:71:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:38:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (v, maxlen,	                        \
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:50:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (v, maxlen,                                    \
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:60:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf (v, maxlen,                                    \
data/libexif-0.6.22/test/nls/test-codeset.c:137:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *localeenv = getenv("LOCALEDIR");
data/libexif-0.6.22/test/test-parse.c:176:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *envar = getenv("TEST_IMAGES");
data/libexif-0.6.22/contrib/aolserver/nsexif.c:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[BUFSIZE];
data/libexif-0.6.22/contrib/c++/exif_module.cxx:155:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(entry_->data, s.data(), entry_->size);
data/libexif-0.6.22/contrib/examples/photographer.c:30:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[1024];
data/libexif-0.6.22/contrib/examples/photographer.c:53:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[1024];
data/libexif-0.6.22/contrib/examples/photographer.c:105:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[64];
data/libexif-0.6.22/contrib/examples/thumbnail.c:40:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char thumb_name[1024];
data/libexif-0.6.22/contrib/examples/thumbnail.c:46:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                thumb = fopen(thumb_name, "wb");
data/libexif-0.6.22/contrib/examples/write-exif.c:236:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(entry->data, ASCII_COMMENT, sizeof(ASCII_COMMENT)-1);
data/libexif-0.6.22/contrib/examples/write-exif.c:238:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(entry->data+8, FILE_COMMENT, sizeof(FILE_COMMENT)-1);
data/libexif-0.6.22/contrib/examples/write-exif.c:256:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(FILE_NAME, "wb");
data/libexif-0.6.22/libexif/canon/exif-mnote-data-canon.c:186:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		else memcpy (*buf + doff, n->entries[i].data, s);
data/libexif-0.6.22/libexif/canon/exif-mnote-data-canon.c:299:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (n->entries[tcount].data, buf + dataofs, s);
data/libexif-0.6.22/libexif/canon/exif-mnote-data-canon.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[8];
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:551:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/libexif-0.6.22/libexif/exif-content.c:122:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libexif-0.6.22/libexif/exif-data.c:212:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (entry->data, d + doff, s);
data/libexif-0.6.22/libexif/exif-data.c:315:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (*d + 6 + doff, e->data, len);
data/libexif-0.6.22/libexif/exif-data.c:344:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (data->data, d + o, s);
data/libexif-0.6.22/libexif/exif-data.c:734:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (*d + *ds - data->size, data->data, data->size);
data/libexif-0.6.22/libexif/exif-data.c:1022:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (*d, ExifHeader, 6);
data/libexif-0.6.22/libexif/exif-data.c:1026:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (*d + 6, "II", 2);
data/libexif-0.6.22/libexif/exif-data.c:1028:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (*d + 6, "MM", 2);
data/libexif-0.6.22/libexif/exif-entry.c:370:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(e->data, "\0\0\0\0\0\0\0\0", 8);
data/libexif-0.6.22/libexif/exif-entry.c:383:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (e->data, "ASCII\0\0\0", 8);
data/libexif-0.6.22/libexif/exif-entry.c:405:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (e->data, "ASCII\0\0\0", 8);
data/libexif-0.6.22/libexif/exif-entry.c:425:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (e->data, "ASCII\0\0\0", 8);
data/libexif-0.6.22/libexif/exif-entry.c:598:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libexif-0.6.22/libexif/exif-entry.c:599:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char value[1024];
data/libexif-0.6.22/libexif/exif-entry.c:669:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *strings[10];
data/libexif-0.6.22/libexif/exif-entry.c:712:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char *values[4]; /*!< list of progressively shorter string
data/libexif-0.6.22/libexif/exif-entry.c:841:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char b[64];
data/libexif-0.6.22/libexif/exif-entry.c:847:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char label[5];
data/libexif-0.6.22/libexif/exif-entry.c:1381:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(utf16, e->data, e->size);
data/libexif-0.6.22/libexif/exif-entry.c:1683:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy (((char *)e->data) + 0, _("[None]"));
data/libexif-0.6.22/libexif/exif-entry.c:1684:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy (((char *)e->data) + strlen (_("[None]")) + 1, _("[None]"));
data/libexif-0.6.22/libexif/exif-entry.c:1714:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (e->data, "0100", 4);
data/libexif-0.6.22/libexif/exif-entry.c:1724:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy (e->data, "0210", 4);
data/libexif-0.6.22/libexif/exif-loader.c:72:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b[12];
data/libexif-0.6.22/libexif/exif-loader.c:111:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char data[1024];
data/libexif-0.6.22/libexif/exif-loader.c:116:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen (path, "rb");
data/libexif-0.6.22/libexif/exif-loader.c:146:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (eld->buf + eld->bytes_read, buf, len);
data/libexif-0.6.22/libexif/exif-loader.c:198:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (&eld->b[eld->b_len], buf, i);
data/libexif-0.6.22/libexif/fuji/exif-mnote-data-fuji.c:106:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (*buf, "FUJIFILM", 8);
data/libexif-0.6.22/libexif/fuji/exif-mnote-data-fuji.c:149:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		else memcpy (*buf + doff, n->entries[i].data, s);
data/libexif-0.6.22/libexif/fuji/exif-mnote-data-fuji.c:250:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (n->entries[tcount].data, buf + dataofs, s);
data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c:210:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (val, entry->data, MIN(maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:140:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ((char *)*buf, "OLYMPUS");
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:169:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ((char *)*buf, "Nikon");
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:228:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (*buf + doff, n->entries[i].data, s);
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:498:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (n->entries[tcount].data, buf + dataofs, s);
data/libexif-0.6.22/libexif/olympus/exif-mnote-data-olympus.c:619:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char value[5];
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:275:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char         buf[30];
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:305:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (v, entry->data, MIN (maxlen, 4));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:338:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(v, entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:543:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, _("Unknown %hu"), vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:563:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, _("Unknown %hu"), vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:635:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, "%hu", vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:643:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf (buf, "%hd ", vss);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:653:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, "%hu ", vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:681:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, "%lu ", (unsigned long)vl);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:756:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf (buf, "%hu", vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:769:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf (buf, "%hu ", vs);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:829:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf (buf, "%02x", entry->data[i]);
data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c:105:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ((char *)*buf, "QVC");
data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c:119:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ((char *)*buf, "AOC");
data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c:135:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy ((char *)*buf, "AOC");
data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c:198:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (*buf + doff, n->entries[i].data, s);
data/libexif-0.6.22/libexif/pentax/exif-mnote-data-pentax.c:333:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (n->entries[tcount].data, buf + dataofs, s);
data/libexif-0.6.22/test/test-extract.c:30:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char header[4] = {'\xff', '\xd8', '\xff', '\xe1'};
data/libexif-0.6.22/test/test-extract.c:41:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char lenbuf[2];
data/libexif-0.6.22/test/test-extract.c:70:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen(outfn, "wb");
data/libexif-0.6.22/test/test-fuzzer.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[2001];
data/libexif-0.6.22/test/test-fuzzer.c:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char v[1024];
data/libexif-0.6.22/test/test-mem.c:35:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char *eb, size[2];
data/libexif-0.6.22/test/test-mnote.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char v[1024], *p;
data/libexif-0.6.22/test/test-parse.c:35:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[2000];
data/libexif-0.6.22/test/test-parse.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[2000];
data/libexif-0.6.22/test/test-parse.c:138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	  memcpy(str, start, len);
data/libexif-0.6.22/test/test-value.c:94:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char v[1024], full[1024];  /* Large enough to never truncate output */
data/libexif-0.6.22/test/test-value.c:209:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->data, subsec, e->size);
data/libexif-0.6.22/test/test-value.c:230:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->data, user_comment, e->size);
data/libexif-0.6.22/test/test-value.c:252:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->data, xp_comment, e->size);
data/libexif-0.6.22/test/test-value.c:275:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(e->data, interop, e->size);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:454:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, _(table[j].name), maxlen);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:490:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(val, _(table[i].name), maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:490:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strncat(val, _(table[i].name), maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:492:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
					strncat (val, _(", "), maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:492:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strncat (val, _(", "), maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:584:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
				strncpy(val, _("Off"), maxlen);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:684:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
				strncpy(val, _("Off"), maxlen);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:706:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, (char *)data, MIN (entry->size, maxlen));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:712:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, (char *)data, MIN (entry->size, maxlen));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:742:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (val, buf, maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:742:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, buf, maxlen - strlen (val));
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:760:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t i, len = strlen(val);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:766:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:774:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t i, len = strlen(val);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:787:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t i, len = strlen(val);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:800:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t i, len = strlen(val);
data/libexif-0.6.22/libexif/canon/mnote-canon-entry.c:812:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, (char *)data, MIN (entry->size, maxlen));
data/libexif-0.6.22/libexif/exif-entry.c:472:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (val);
data/libexif-0.6.22/libexif/exif-entry.c:476:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:483:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (val);
data/libexif-0.6.22/libexif/exif-entry.c:488:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:495:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (val);
data/libexif-0.6.22/libexif/exif-entry.c:501:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:508:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (val);
data/libexif-0.6.22/libexif/exif-entry.c:514:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:521:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen (val);
data/libexif-0.6.22/libexif/exif-entry.c:526:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:531:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, (char *) e->data, MIN (maxlen-1, e->size));
data/libexif-0.6.22/libexif/exif-entry.c:539:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:559:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:568:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:582:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len += strlen (val+len);
data/libexif-0.6.22/libexif/exif-entry.c:904:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, (char *) e->data + 8, MIN (e->size - 8, maxlen-1));
data/libexif-0.6.22/libexif/exif-entry.c:908:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Unsupported UNICODE string"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:916:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Unsupported JIS string"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:945:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy (val, _("Unknown Exif Version"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:960:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("FlashPix Version 1.0"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:962:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("FlashPix Version 1.01"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:964:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Unknown FlashPix Version"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:975:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, (char *) e->data, MIN (maxlen-1, e->size));
data/libexif-0.6.22/libexif/exif-entry.c:977:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("[None]"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:978:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
		strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:978:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:979:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (val, _("(Photographer)"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:979:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, _("(Photographer)"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:982:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (val, " - ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:982:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, " - ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:990:6:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
					strncat (val, (const char*)tagdata, MIN (maxlen-1 - strlen (val), remaining));
data/libexif-0.6.22/libexif/exif-entry.c:990:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strncat (val, (const char*)tagdata, MIN (maxlen-1 - strlen (val), remaining));
data/libexif-0.6.22/libexif/exif-entry.c:996:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat (val, _("[None]"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:996:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (val, _("[None]"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:997:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
		strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:997:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:998:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (val, _("(Editor)"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:998:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, _("(Editor)"), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1024:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1024:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1064:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1064:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1090:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
		strncat (val, _(" sec."), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1090:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, _(" sec."), maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1108:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1108:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1122:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1122:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1129:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("DSC"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1148:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (val, c, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1148:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (val, c, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1150:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
				strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1150:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strncat (val, " ", maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1169:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Directly photographed"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1182:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("YCbCr4:2:2"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1184:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("YCbCr4:2:0"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1230:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1230:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (val, b, maxlen-1 - strlen (val));
data/libexif-0.6.22/libexif/exif-entry.c:1237:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, (char *) e->data, MIN (maxlen-1, e->size));
data/libexif-0.6.22/libexif/exif-entry.c:1251:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Sea level"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1253:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (val, _("Sea level reference"), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1323:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t l = strlen (_(list2[i].elem[j].values[k]));
data/libexif-0.6.22/libexif/exif-entry.c:1324:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if ((maxlen > l) && (strlen (val) < l))
data/libexif-0.6.22/libexif/exif-entry.c:1325:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy (val, _(list2[i].elem[j].values[k]), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1363:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, _(list[i].strings[j]), maxlen-1);
data/libexif-0.6.22/libexif/exif-entry.c:1669:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		e->components = strlen (_("[None]")) + 1;
data/libexif-0.6.22/libexif/exif-entry.c:1674:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy ((char *)e->data, _("[None]"), e->size);
data/libexif-0.6.22/libexif/exif-entry.c:1678:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		e->components = (strlen (_("[None]")) + 1) * 2;
data/libexif-0.6.22/libexif/exif-entry.c:1684:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strcpy (((char *)e->data) + strlen (_("[None]")) + 1, _("[None]"));
data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c:249:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, _(items[i].elem[j].string), maxlen);
data/libexif-0.6.22/libexif/fuji/mnote-fuji-entry.c:271:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy (val, (char *)entry->data, MIN(maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:389:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("No manual focus selection"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:418:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  0: strncpy (v, _("AF position: center"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:419:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  1: strncpy (v, _("AF position: top"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:420:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  2: strncpy (v, _("AF position: bottom"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:421:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  3: strncpy (v, _("AF position: left"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:422:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  4: strncpy (v, _("AF position: right"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:423:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			case  5: strncpy (v, _("AF position: upper-left"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:424:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  6: strncpy (v, _("AF position: upper-right"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:425:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  7: strncpy (v, _("AF position: lower-left"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:426:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  8: strncpy (v, _("AF position: lower-right"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:427:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  9: strncpy (v, _("AF position: far left"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:428:16:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	case  10: strncpy (v, _("AF position: far right"), maxlen); break;
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:429:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		  	default: strncpy (v, _("Unknown AF position"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:451:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, _(items[i].elem[j].string), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:458:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
				strncpy (v, _("None"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:521:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, _(items[i].elem[j].string), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:537:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Off"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:540:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("On"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:544:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:544:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:554:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Off"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:557:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("On"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:560:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("2 sec."), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:564:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:564:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:593:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Normal"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:596:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Unknown"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:599:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Fast"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:602:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Panorama"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:609:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:609:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:613:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat (v, _("Left to right"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:613:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, _("Left to right"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:616:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat (v, _("Right to left"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:616:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, _("Right to left"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:619:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat (v, _("Bottom to top"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:619:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, _("Bottom to top"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:622:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
			strncat (v, _("Top to bottom"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:622:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, _("Top to bottom"), maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:627:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:627:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:636:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:636:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:644:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:644:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:654:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:654:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:660:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, (char *)entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:664:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, (char *)entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:669:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, (char *)entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:674:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (v, (char *)entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:682:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:682:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:690:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Unknown"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:703:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Automatic"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:736:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
					strncpy (v, _("Manual: unknown"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:742:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("One-touch"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:745:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy (v, _("Unknown"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:757:3:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
		strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:757:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:770:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:770:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:782:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (v, (char *)entry->data, MIN (maxlen, entry->size));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:808:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
				strncpy (v, _("Infinite"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:818:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
				strncpy (v, _("Infinite"), maxlen);
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:830:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/olympus/mnote-olympus-entry.c:830:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strncat (v, buf, maxlen - strlen (v));
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:364:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, _(items[i].elem[j].string), maxlen);
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:388:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy (val, _(items2[i].elem[j].string), maxlen);
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:408:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (val, (char*)entry->data, MIN(maxlen, entry->size));
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:425:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		  strncpy (val, (char *)entry->data, MIN(maxlen, entry->size));
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:430:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t k, len = strlen(val), sizeleft;
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:438:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:447:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t k, len = strlen(val), sizeleft;
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:455:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:464:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t k, len = strlen(val), sizeleft;
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:472:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:481:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t k, len = strlen(val), sizeleft;
data/libexif-0.6.22/libexif/pentax/mnote-pentax-entry.c:489:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				len = strlen(val);
data/libexif-0.6.22/test/nls/test-codeset.c:167:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		const int localelen = strlen(testcases[i].locale);
data/libexif-0.6.22/test/test-parse.c:75:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	       "      Value: %s\n", i, id, name, (unsigned)strlen(buf), buf);
data/libexif-0.6.22/test/test-value.c:102:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = strlen(full); i > 0; i--) {
data/libexif-0.6.22/test/test-value.c:108:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((strlen(v) >= i) || (uniform && strcmp(full, v))) {

ANALYSIS SUMMARY:

Hits = 270
Lines analyzed = 17359 in approximately 0.87 seconds (19853 lines/second)
Physical Source Lines of Code (SLOC) = 12313
Hits@level = [0] 302 [1] 171 [2]  83 [3]   2 [4]  14 [5]   0
Hits@level+ = [0+] 572 [1+] 270 [2+]  99 [3+]  16 [4+]  14 [5+]   0
Hits/KSLOC@level+ = [0+] 46.455 [1+] 21.928 [2+] 8.04028 [3+] 1.29944 [4+] 1.13701 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.