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/exiv2-0.27.3/contrib/Qt/main.cpp
Examining data/exiv2-0.27.3/contrib/organize/MD5.cpp
Examining data/exiv2-0.27.3/contrib/organize/MD5.h
Examining data/exiv2-0.27.3/contrib/organize/helpers.cpp
Examining data/exiv2-0.27.3/contrib/organize/helpers.hpp
Examining data/exiv2-0.27.3/contrib/organize/organize.cpp
Examining data/exiv2-0.27.3/contrib/vs2019/solution/exiv2lib_export.h
Examining data/exiv2-0.27.3/contrib/vs2019/solution/exv_conf.h
Examining data/exiv2-0.27.3/include/exiv2/asfvideo.hpp
Examining data/exiv2-0.27.3/include/exiv2/basicio.hpp
Examining data/exiv2-0.27.3/include/exiv2/bigtiffimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/bmpimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/config.h
Examining data/exiv2-0.27.3/include/exiv2/convert.hpp
Examining data/exiv2-0.27.3/include/exiv2/cr2image.hpp
Examining data/exiv2-0.27.3/include/exiv2/crwimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/datasets.hpp
Examining data/exiv2-0.27.3/include/exiv2/easyaccess.hpp
Examining data/exiv2-0.27.3/include/exiv2/epsimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/error.hpp
Examining data/exiv2-0.27.3/include/exiv2/exif.hpp
Examining data/exiv2-0.27.3/include/exiv2/exiv2.hpp
Examining data/exiv2-0.27.3/include/exiv2/futils.hpp
Examining data/exiv2-0.27.3/include/exiv2/gifimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/http.hpp
Examining data/exiv2-0.27.3/include/exiv2/image.hpp
Examining data/exiv2-0.27.3/include/exiv2/ini.hpp
Examining data/exiv2-0.27.3/include/exiv2/iptc.hpp
Examining data/exiv2-0.27.3/include/exiv2/jp2image.hpp
Examining data/exiv2-0.27.3/include/exiv2/jpgimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/matroskavideo.hpp
Examining data/exiv2-0.27.3/include/exiv2/metadatum.hpp
Examining data/exiv2-0.27.3/include/exiv2/mrwimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/orfimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/pgfimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/pngimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/preview.hpp
Examining data/exiv2-0.27.3/include/exiv2/properties.hpp
Examining data/exiv2-0.27.3/include/exiv2/psdimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/quicktimevideo.hpp
Examining data/exiv2-0.27.3/include/exiv2/rafimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/riffvideo.hpp
Examining data/exiv2-0.27.3/include/exiv2/rw2image.hpp
Examining data/exiv2-0.27.3/include/exiv2/rwlock.hpp
Examining data/exiv2-0.27.3/include/exiv2/slice.hpp
Examining data/exiv2-0.27.3/include/exiv2/ssh.hpp
Examining data/exiv2-0.27.3/include/exiv2/tags.hpp
Examining data/exiv2-0.27.3/include/exiv2/tgaimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/tiffimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/types.hpp
Examining data/exiv2-0.27.3/include/exiv2/utilsvideo.hpp
Examining data/exiv2-0.27.3/include/exiv2/value.hpp
Examining data/exiv2-0.27.3/include/exiv2/version.hpp
Examining data/exiv2-0.27.3/include/exiv2/webpimage.hpp
Examining data/exiv2-0.27.3/include/exiv2/xmp_exiv2.hpp
Examining data/exiv2-0.27.3/include/exiv2/xmpsidecar.hpp
Examining data/exiv2-0.27.3/samples/Jzon.cpp
Examining data/exiv2-0.27.3/samples/Jzon.h
Examining data/exiv2-0.27.3/samples/addmoddel.cpp
Examining data/exiv2-0.27.3/samples/conntest.cpp
Examining data/exiv2-0.27.3/samples/convert-test.cpp
Examining data/exiv2-0.27.3/samples/easyaccess-test.cpp
Examining data/exiv2-0.27.3/samples/exifcomment.cpp
Examining data/exiv2-0.27.3/samples/exifdata-test.cpp
Examining data/exiv2-0.27.3/samples/exifdata.cpp
Examining data/exiv2-0.27.3/samples/exifprint.cpp
Examining data/exiv2-0.27.3/samples/exifvalue.cpp
Examining data/exiv2-0.27.3/samples/exiv2json.cpp
Examining data/exiv2-0.27.3/samples/geotag.cpp
Examining data/exiv2-0.27.3/samples/getopt-test.cpp
Examining data/exiv2-0.27.3/samples/httptest.cpp
Examining data/exiv2-0.27.3/samples/ini-test.cpp
Examining data/exiv2-0.27.3/samples/iotest.cpp
Examining data/exiv2-0.27.3/samples/iptceasy.cpp
Examining data/exiv2-0.27.3/samples/iptcprint.cpp
Examining data/exiv2-0.27.3/samples/iptctest.cpp
Examining data/exiv2-0.27.3/samples/key-test.cpp
Examining data/exiv2-0.27.3/samples/largeiptc-test.cpp
Examining data/exiv2-0.27.3/samples/metacopy.cpp
Examining data/exiv2-0.27.3/samples/metacopy.hpp
Examining data/exiv2-0.27.3/samples/mmap-test.cpp
Examining data/exiv2-0.27.3/samples/mrwthumb.cpp
Examining data/exiv2-0.27.3/samples/mt-test.cpp
Examining data/exiv2-0.27.3/samples/path-test.cpp
Examining data/exiv2-0.27.3/samples/prevtest.cpp
Examining data/exiv2-0.27.3/samples/remotetest.cpp
Examining data/exiv2-0.27.3/samples/stringto-test.cpp
Examining data/exiv2-0.27.3/samples/taglist.cpp
Examining data/exiv2-0.27.3/samples/tiff-test.cpp
Examining data/exiv2-0.27.3/samples/tiffaddpath-test.cpp
Examining data/exiv2-0.27.3/samples/toexv.cpp
Examining data/exiv2-0.27.3/samples/toexv.hpp
Examining data/exiv2-0.27.3/samples/werror-test.cpp
Examining data/exiv2-0.27.3/samples/write-test.cpp
Examining data/exiv2-0.27.3/samples/write2-test.cpp
Examining data/exiv2-0.27.3/samples/xmpdump.cpp
Examining data/exiv2-0.27.3/samples/xmpparse.cpp
Examining data/exiv2-0.27.3/samples/xmpparser-test.cpp
Examining data/exiv2-0.27.3/samples/xmpprint.cpp
Examining data/exiv2-0.27.3/samples/xmpsample.cpp
Examining data/exiv2-0.27.3/src/actions.cpp
Examining data/exiv2-0.27.3/src/actions.hpp
Examining data/exiv2-0.27.3/src/asfvideo.cpp
Examining data/exiv2-0.27.3/src/basicio.cpp
Examining data/exiv2-0.27.3/src/bigtiffimage.cpp
Examining data/exiv2-0.27.3/src/bmpimage.cpp
Examining data/exiv2-0.27.3/src/canonmn_int.cpp
Examining data/exiv2-0.27.3/src/canonmn_int.hpp
Examining data/exiv2-0.27.3/src/casiomn_int.cpp
Examining data/exiv2-0.27.3/src/casiomn_int.hpp
Examining data/exiv2-0.27.3/src/convert.cpp
Examining data/exiv2-0.27.3/src/cr2header_int.cpp
Examining data/exiv2-0.27.3/src/cr2header_int.hpp
Examining data/exiv2-0.27.3/src/cr2image.cpp
Examining data/exiv2-0.27.3/src/crwimage.cpp
Examining data/exiv2-0.27.3/src/crwimage_int.cpp
Examining data/exiv2-0.27.3/src/crwimage_int.hpp
Examining data/exiv2-0.27.3/src/datasets.cpp
Examining data/exiv2-0.27.3/src/easyaccess.cpp
Examining data/exiv2-0.27.3/src/enforce.hpp
Examining data/exiv2-0.27.3/src/epsimage.cpp
Examining data/exiv2-0.27.3/src/error.cpp
Examining data/exiv2-0.27.3/src/exif.cpp
Examining data/exiv2-0.27.3/src/exiv2.cpp
Examining data/exiv2-0.27.3/src/exiv2app.hpp
Examining data/exiv2-0.27.3/src/fff.h
Examining data/exiv2-0.27.3/src/fujimn_int.cpp
Examining data/exiv2-0.27.3/src/fujimn_int.hpp
Examining data/exiv2-0.27.3/src/futils.cpp
Examining data/exiv2-0.27.3/src/getopt.cpp
Examining data/exiv2-0.27.3/src/getopt.hpp
Examining data/exiv2-0.27.3/src/gifimage.cpp
Examining data/exiv2-0.27.3/src/helper_functions.cpp
Examining data/exiv2-0.27.3/src/helper_functions.hpp
Examining data/exiv2-0.27.3/src/http.cpp
Examining data/exiv2-0.27.3/src/i18n.h
Examining data/exiv2-0.27.3/src/image.cpp
Examining data/exiv2-0.27.3/src/image_int.cpp
Examining data/exiv2-0.27.3/src/image_int.hpp
Examining data/exiv2-0.27.3/src/ini.cpp
Examining data/exiv2-0.27.3/src/iptc.cpp
Examining data/exiv2-0.27.3/src/jp2image.cpp
Examining data/exiv2-0.27.3/src/jpgimage.cpp
Examining data/exiv2-0.27.3/src/makernote_int.cpp
Examining data/exiv2-0.27.3/src/makernote_int.hpp
Examining data/exiv2-0.27.3/src/matroskavideo.cpp
Examining data/exiv2-0.27.3/src/metadatum.cpp
Examining data/exiv2-0.27.3/src/minoltamn_int.cpp
Examining data/exiv2-0.27.3/src/minoltamn_int.hpp
Examining data/exiv2-0.27.3/src/mrwimage.cpp
Examining data/exiv2-0.27.3/src/nikonmn_int.cpp
Examining data/exiv2-0.27.3/src/nikonmn_int.hpp
Examining data/exiv2-0.27.3/src/olympusmn_int.cpp
Examining data/exiv2-0.27.3/src/olympusmn_int.hpp
Examining data/exiv2-0.27.3/src/orfimage.cpp
Examining data/exiv2-0.27.3/src/orfimage_int.cpp
Examining data/exiv2-0.27.3/src/orfimage_int.hpp
Examining data/exiv2-0.27.3/src/panasonicmn_int.cpp
Examining data/exiv2-0.27.3/src/panasonicmn_int.hpp
Examining data/exiv2-0.27.3/src/pentaxmn_int.cpp
Examining data/exiv2-0.27.3/src/pentaxmn_int.hpp
Examining data/exiv2-0.27.3/src/pgfimage.cpp
Examining data/exiv2-0.27.3/src/pngchunk_int.cpp
Examining data/exiv2-0.27.3/src/pngchunk_int.hpp
Examining data/exiv2-0.27.3/src/pngimage.cpp
Examining data/exiv2-0.27.3/src/preview.cpp
Examining data/exiv2-0.27.3/src/private.h
Examining data/exiv2-0.27.3/src/properties.cpp
Examining data/exiv2-0.27.3/src/psdimage.cpp
Examining data/exiv2-0.27.3/src/quicktimevideo.cpp
Examining data/exiv2-0.27.3/src/rafimage.cpp
Examining data/exiv2-0.27.3/src/riffvideo.cpp
Examining data/exiv2-0.27.3/src/rw2image.cpp
Examining data/exiv2-0.27.3/src/rw2image_int.cpp
Examining data/exiv2-0.27.3/src/rw2image_int.hpp
Examining data/exiv2-0.27.3/src/safe_op.hpp
Examining data/exiv2-0.27.3/src/samsungmn_int.cpp
Examining data/exiv2-0.27.3/src/samsungmn_int.hpp
Examining data/exiv2-0.27.3/src/sigmamn_int.cpp
Examining data/exiv2-0.27.3/src/sigmamn_int.hpp
Examining data/exiv2-0.27.3/src/sonymn_int.cpp
Examining data/exiv2-0.27.3/src/sonymn_int.hpp
Examining data/exiv2-0.27.3/src/ssh.cpp
Examining data/exiv2-0.27.3/src/tags.cpp
Examining data/exiv2-0.27.3/src/tags_int.cpp
Examining data/exiv2-0.27.3/src/tags_int.hpp
Examining data/exiv2-0.27.3/src/tgaimage.cpp
Examining data/exiv2-0.27.3/src/tiffcomposite_int.cpp
Examining data/exiv2-0.27.3/src/tiffcomposite_int.hpp
Examining data/exiv2-0.27.3/src/tifffwd_int.hpp
Examining data/exiv2-0.27.3/src/tiffimage.cpp
Examining data/exiv2-0.27.3/src/tiffimage_int.cpp
Examining data/exiv2-0.27.3/src/tiffimage_int.hpp
Examining data/exiv2-0.27.3/src/tiffvisitor_int.cpp
Examining data/exiv2-0.27.3/src/tiffvisitor_int.hpp
Examining data/exiv2-0.27.3/src/timegm.h
Examining data/exiv2-0.27.3/src/types.cpp
Examining data/exiv2-0.27.3/src/tzfile.h
Examining data/exiv2-0.27.3/src/unused.h
Examining data/exiv2-0.27.3/src/utils.cpp
Examining data/exiv2-0.27.3/src/utils.hpp
Examining data/exiv2-0.27.3/src/utilsvideo.cpp
Examining data/exiv2-0.27.3/src/value.cpp
Examining data/exiv2-0.27.3/src/version.cpp
Examining data/exiv2-0.27.3/src/webpimage.cpp
Examining data/exiv2-0.27.3/src/xmp.cpp
Examining data/exiv2-0.27.3/src/xmpsidecar.cpp
Examining data/exiv2-0.27.3/unitTests/gtestwrapper.h
Examining data/exiv2-0.27.3/unitTests/mainTestRunner.cpp
Examining data/exiv2-0.27.3/unitTests/test_DateValue.cpp
Examining data/exiv2-0.27.3/unitTests/test_FileIo.cpp
Examining data/exiv2-0.27.3/unitTests/test_TimeValue.cpp
Examining data/exiv2-0.27.3/unitTests/test_XmpKey.cpp
Examining data/exiv2-0.27.3/unitTests/test_basicio.cpp
Examining data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp
Examining data/exiv2-0.27.3/unitTests/test_enforce.cpp
Examining data/exiv2-0.27.3/unitTests/test_futils.cpp
Examining data/exiv2-0.27.3/unitTests/test_helper_functions.cpp
Examining data/exiv2-0.27.3/unitTests/test_image_int.cpp
Examining data/exiv2-0.27.3/unitTests/test_safe_op.cpp
Examining data/exiv2-0.27.3/unitTests/test_slice.cpp
Examining data/exiv2-0.27.3/unitTests/test_tiffheader.cpp
Examining data/exiv2-0.27.3/unitTests/test_types.cpp
Examining data/exiv2-0.27.3/xmpsdk/include/MD5.h
Examining data/exiv2-0.27.3/xmpsdk/include/TXMPIterator.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/TXMPMeta.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/TXMPUtils.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/XMPSDK.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/XMP_Environment.h
Examining data/exiv2-0.27.3/xmpsdk/include/XMP_Version.h
Examining data/exiv2-0.27.3/xmpsdk/include/client-glue/WXMPFiles.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/client-glue/WXMPIterator.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/client-glue/WXMPMeta.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/client-glue/WXMPUtils.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/client-glue/WXMP_Common.hpp
Examining data/exiv2-0.27.3/xmpsdk/include/XMP_Const.h
Examining data/exiv2-0.27.3/xmpsdk/src/ExpatAdapter.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/ExpatAdapter.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/MD5.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/ParseRDF.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/UnicodeConversions.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/UnicodeConversions.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/WXMPIterator.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/WXMPMeta.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/WXMPUtils.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMLParserAdapter.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/XML_Node.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPIterator.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPIterator.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPMeta-GetSet.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPMeta.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPUtils-FileInfo.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMPUtils.hpp
Examining data/exiv2-0.27.3/xmpsdk/src/XMP_BuildInfo.h

FINAL RESULTS:

data/exiv2-0.27.3/src/basicio.cpp:680:23:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
                if (::readlink(path().c_str(), pf, lbuf.size_ - 1) == -1) {
data/exiv2-0.27.3/src/basicio.cpp:819:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                    if (::chmod(pf, origStMode) == -1) {
data/exiv2-0.27.3/src/futils.cpp:509:25:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        ssize_t     l = readlink (proc,path,sizeof(path)-1);
data/exiv2-0.27.3/src/futils.cpp:517:21:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
        ssize_t l = readlink ("/proc/self/exe", path,sizeof(path)-1);
data/exiv2-0.27.3/src/version.cpp:212:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int l = readlink (procsz, pathsz,sizeof(pathsz));
data/exiv2-0.27.3/samples/geotag.cpp:45:25:  [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).
#define strcpy_s(d,l,s) strcpy(d,s)
data/exiv2-0.27.3/samples/geotag.cpp:46:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
#define strcat_s(d,l,s) strcat(d,s)
data/exiv2-0.27.3/samples/geotag.cpp:261:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(result,"%03d%s%02d'%02d\"%s" ,deg,gDeg,min,sec,NSEW);
data/exiv2-0.27.3/samples/geotag.cpp:270:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(result,"%s %s %-8.3f",sLon.c_str(),sLat.c_str(),ele_);
data/exiv2-0.27.3/samples/geotag.cpp:479:5:  [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(result,r.c_str());
data/exiv2-0.27.3/src/convert.cpp:47:10:  [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.
# define snprintf _snprintf
data/exiv2-0.27.3/src/convert.cpp:47:19:  [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.
# define snprintf _snprintf
data/exiv2-0.27.3/src/exiv2.cpp:1144:9:  [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(cts, ts.c_str());
data/exiv2-0.27.3/src/http.cpp:47:10:  [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.
#define  snprintf sprintf_s
data/exiv2-0.27.3/src/http.cpp:141:5:  [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(buffer, buffer_size, msg, x, y, z) ;
data/exiv2-0.27.3/src/http.cpp:288: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.
    int    n  = snprintf(buffer,buff_l,httpTemplate,verb,page,version,servername,header) ;
data/exiv2-0.27.3/src/image_int.cpp:48:22:  [4] (format) vsnprintf:
  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.
                rc = vsnprintf(&buffer[0], buffer.size(), format, args);
data/exiv2-0.27.3/src/image_int.hpp:38:55:  [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.
#define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0)))
data/exiv2-0.27.3/src/iptc.cpp:366:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buff, "  %6d | %7d | %-24s | %6d | ", record, dataset,
data/exiv2-0.27.3/src/minoltamn_int.cpp:1954:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        FILE* f = ::popen("/bin/bash -c \"exiftool ~/temp/screen.jpg | grep 'Lens ID' | cut -d: -f 2 | sed -E -e 's/^ //g'\"","r");
data/exiv2-0.27.3/src/properties.cpp:2527:14:  [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).
        std::strcpy(c, ns2.c_str());
data/exiv2-0.27.3/src/properties.cpp:2530:14:  [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).
        std::strcpy(c, prefix.c_str());
data/exiv2-0.27.3/src/value.cpp:50:9:  [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.
#define snprintf c99_snprintf
data/exiv2-0.27.3/src/value.cpp:51:9:  [4] (format) vsnprintf:
  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.
#define vsnprintf c99_vsnprintf
data/exiv2-0.27.3/src/value.cpp:1161:23:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        int scanned = sscanf(buf, format, &t.hour, &t.minute, &t.second);
data/exiv2-0.27.3/src/value.cpp:1177:23:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        int scanned = sscanf(buf, format, &t.hour, &t.minute, &t.second,
data/exiv2-0.27.3/src/value.cpp:1207:27:  [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.
        const int wrote = snprintf(temp, sizeof(temp), // 11 bytes are written + \0
data/exiv2-0.27.3/src/version.cpp:267:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    if  ( edition ) sprintf(version+::strlen(version)," (%s/%s)",editions[edition],bits==64?"x64":"x86");
data/exiv2-0.27.3/xmpsdk/src/XML_Node.cpp:21:10:  [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.
	#define snprintf _snprintf
data/exiv2-0.27.3/xmpsdk/src/XML_Node.cpp:21:19:  [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.
	#define snprintf _snprintf
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.hpp:105:10:  [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.
	#define snprintf _snprintf
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.hpp:105:19:  [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.
	#define snprintf _snprintf
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:942:2:  [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 ( const_cast<char*>(sConvertedValue->c_str()), sConvertedValue->size(), format, binValue );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:971:2:  [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 ( const_cast<char*>(sConvertedValue->c_str()), sConvertedValue->size(), format, binValue );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1000:2:  [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 ( const_cast<char*>(sConvertedValue->c_str()), sConvertedValue->size(), format, binValue );
data/exiv2-0.27.3/include/exiv2/rwlock.hpp:40:17:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
                InitializeCriticalSection(&lock_);
data/exiv2-0.27.3/include/exiv2/rwlock.hpp:63:17:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
                EnterCriticalSection(&lock_);
data/exiv2-0.27.3/include/exiv2/rwlock.hpp:74:17:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
                EnterCriticalSection(&lock_);
data/exiv2-0.27.3/samples/exiv2json.cpp:32:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
const char* realpath(const char* file,char* path)
data/exiv2-0.27.3/samples/exiv2json.cpp:240:23:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    fs.Add("realpath",realpath(path,resolved_path));
data/exiv2-0.27.3/samples/geotag.cpp:41:10:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
char*    realpath(const char* file,char* path);
data/exiv2-0.27.3/samples/geotag.cpp:72:7:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
char* realpath(const char* file,char* path)
data/exiv2-0.27.3/samples/geotag.cpp:849:35:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                    char*  path = realpath(arg,buffer);
data/exiv2-0.27.3/samples/getopt-test.cpp:54:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int getopt(int argc, char** const argv)
data/exiv2-0.27.3/samples/getopt-test.cpp:56:32:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        int rc = Util::Getopt::getopt(argc, argv, ::optstring);
data/exiv2-0.27.3/samples/getopt-test.cpp:94:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	    n = ::getopt(argc,argv,::optstring);
data/exiv2-0.27.3/samples/getopt-test.cpp:112:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	    n = Util::getopt(argc,argv,::optstring);
data/exiv2-0.27.3/samples/getopt-test.cpp:130:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    params.getopt(argc, argv);
data/exiv2-0.27.3/samples/metacopy.cpp:48:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    if (params.getopt(argc, argv)) {
data/exiv2-0.27.3/samples/metacopy.cpp:148:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int Params::getopt(int argc, char* const argv[])
data/exiv2-0.27.3/samples/metacopy.cpp:150:28:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int rc = Util::Getopt::getopt(argc, argv, optstring_);
data/exiv2-0.27.3/samples/metacopy.hpp:67:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int getopt(int argc, char* const argv[]);
data/exiv2-0.27.3/samples/toexv.cpp:54:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		if (params.getopt(argc, argv)) return params.usage();
data/exiv2-0.27.3/samples/toexv.cpp:194:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int Params::getopt(int argc, char* const argv[])
data/exiv2-0.27.3/samples/toexv.cpp:196:28:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int rc = Util::Getopt::getopt(argc, argv, optstring_);
data/exiv2-0.27.3/samples/toexv.hpp:56:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int getopt(int argc, char* const argv[]);
data/exiv2-0.27.3/src/actions.cpp:2014:9:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
        EnterCriticalSection(&cs);
data/exiv2-0.27.3/src/exiv2.cpp:142:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    if (params.getopt(argc, argv)) {
data/exiv2-0.27.3/src/exiv2.cpp:1012:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int Params::getopt(int argc, char* const Argv[])
data/exiv2-0.27.3/src/exiv2.cpp:1059:28:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int rc = Util::Getopt::getopt(argc, argv, optstring_);
data/exiv2-0.27.3/src/exiv2app.hpp:329:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int getopt(int argc, char* const argv[]);
data/exiv2-0.27.3/src/futils.cpp:80:16:  [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.
        return getenv(ENVARKEY[env_var]) ? getenv(ENVARKEY[env_var]) : ENVARDEF[env_var];
data/exiv2-0.27.3/src/futils.cpp:80:44:  [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.
        return getenv(ENVARKEY[env_var]) ? getenv(ENVARKEY[env_var]) : ENVARDEF[env_var];
data/exiv2-0.27.3/src/getopt.cpp:38:6:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	int getopt(int argc, char * const argv[], const char *optstring)
data/exiv2-0.27.3/src/getopt.cpp:101:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int Getopt::getopt(int argc, char* const argv[], const std::string& optstring)
data/exiv2-0.27.3/src/getopt.cpp:107:27:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
            int c = Util::getopt(argc, argv, optstring.c_str());
data/exiv2-0.27.3/src/getopt.hpp:16:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    int getopt(int argc, char * const argv[], const char *optstring);
data/exiv2-0.27.3/src/getopt.hpp:55:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        int getopt(int argc, char* const argv[], const std::string& optstring);
data/exiv2-0.27.3/src/http.cpp:221: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* PROXY  = getenv(PROXI);
data/exiv2-0.27.3/src/http.cpp:222: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* proxy  = getenv(proxi);
data/exiv2-0.27.3/src/http.cpp:230:28:  [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* NO_PROXY = getenv(NO_PROXI);
data/exiv2-0.27.3/src/http.cpp:231:28:  [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* no_proxy = getenv(no_proxi);
data/exiv2-0.27.3/src/types.cpp:243:20:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                is.setstate(std::ios::failbit);
data/exiv2-0.27.3/src/types.cpp:271:20:  [3] (random) setstate:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                is.setstate(std::ios::failbit);
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.cpp:92:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
		InitializeCriticalSection ( mutex );
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.cpp:101:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection ( &mutex );
data/exiv2-0.27.3/contrib/organize/MD5.cpp:77: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((md5byte *)ctx->in + 64 - t, buf, len);
data/exiv2-0.27.3/contrib/organize/MD5.cpp:81: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((md5byte *)ctx->in + 64 - t, buf, t);
data/exiv2-0.27.3/contrib/organize/MD5.cpp:89: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(ctx->in, buf, 64);
data/exiv2-0.27.3/contrib/organize/MD5.cpp:97: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(ctx->in, buf, len);
data/exiv2-0.27.3/contrib/organize/MD5.cpp:132: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(digest, ctx->buf, 16);
data/exiv2-0.27.3/contrib/organize/MD5.h:47:31:  [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.
extern void MD5Final(unsigned char digest[16], struct MD5_CTX *context);
data/exiv2-0.27.3/contrib/organize/organize.cpp:255:38:  [2] (misc) open:
  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).
        image = Exiv2::ImageFactory::open(source_file.string());
data/exiv2-0.27.3/contrib/organize/organize.cpp:297:16:  [2] (misc) open:
  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).
        if (io.open() != 0)
data/exiv2-0.27.3/include/exiv2/basicio.hpp:83:21:  [2] (misc) open:
  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).
        virtual int open() = 0;
data/exiv2-0.27.3/include/exiv2/basicio.hpp:334:13:  [2] (misc) open:
  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).
        int open(const std::string& mode);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:342:21:  [2] (misc) open:
  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).
        virtual int open();
data/exiv2-0.27.3/include/exiv2/basicio.hpp:567:21:  [2] (misc) open:
  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).
        virtual int open();
data/exiv2-0.27.3/include/exiv2/basicio.hpp:849:21:  [2] (misc) open:
  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).
        virtual int open();
data/exiv2-0.27.3/include/exiv2/image.hpp:572:31:  [2] (misc) open:
  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).
        static Image::AutoPtr open(const std::string& path, bool useCurl = true);
data/exiv2-0.27.3/include/exiv2/image.hpp:578:31:  [2] (misc) open:
  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).
        static Image::AutoPtr open(const std::wstring& wpath, bool useCurl = true);
data/exiv2-0.27.3/include/exiv2/image.hpp:591:31:  [2] (misc) open:
  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).
        static Image::AutoPtr open(const byte* data, long size);
data/exiv2-0.27.3/include/exiv2/image.hpp:609:31:  [2] (misc) open:
  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).
        static Image::AutoPtr open(BasicIo::AutoPtr io);
data/exiv2-0.27.3/include/exiv2/value.hpp:1537:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pDataArea_, rhs.pDataArea_, rhs.sizeDataArea_);
data/exiv2-0.27.3/include/exiv2/value.hpp:1558:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(tmp, rhs.pDataArea_, rhs.sizeDataArea_);
data/exiv2-0.27.3/include/exiv2/value.hpp:1747:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(tmp, buf, len);
data/exiv2-0.27.3/samples/addmoddel.cpp:98:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/conntest.cpp:42:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    long timeout = atol(timeoutStr.c_str());
data/exiv2-0.27.3/samples/conntest.cpp:91:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        long length = atol(response.c_str());
data/exiv2-0.27.3/samples/convert-test.cpp:21:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/easyaccess-test.cpp:54:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/exifcomment.cpp:26:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/exifdata-test.cpp:36:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exifdata-test.cpp:109:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exifdata-test.cpp:117:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exifdata.cpp:180:54:  [2] (misc) open:
  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).
		Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exifprint.cpp:73:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exifvalue.cpp:25:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/exiv2json.cpp:66:52:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            if (         C == ']' ) token.i = std::atoi(token.n.c_str()); // encoded string first index == 1
data/exiv2-0.27.3/samples/exiv2json.cpp:177:34:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
             STORE(node,key,std::atoi(value.c_str()) );
data/exiv2-0.27.3/samples/exiv2json.cpp:239: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 resolved_path[2000]; // PATH_MAX];
data/exiv2-0.27.3/samples/exiv2json.cpp:285:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/samples/geotag.cpp:222: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        result[200];
data/exiv2-0.27.3/samples/geotag.cpp:232: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(result,"%d/1 %d/1 %d/1",HH,mm,SS1);
data/exiv2-0.27.3/samples/geotag.cpp:238: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 result[200];
data/exiv2-0.27.3/samples/geotag.cpp:240: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(result,"%d/100",abs((int)d));
data/exiv2-0.27.3/samples/geotag.cpp:257: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 result[200];
data/exiv2-0.27.3/samples/geotag.cpp:259:9:  [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(result,"%d/1 %d/1 %d/1" ,deg,min,sec);
data/exiv2-0.27.3/samples/geotag.cpp:267: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 result[200];
data/exiv2-0.27.3/samples/geotag.cpp:366: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 buffer[100];
data/exiv2-0.27.3/samples/geotag.cpp:371: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(buffer,s,len);
data/exiv2-0.27.3/samples/geotag.cpp:383: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(buffer,s,len);
data/exiv2-0.27.3/samples/geotag.cpp:465: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.
    static char result[100];
data/exiv2-0.27.3/samples/geotag.cpp:477: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.
    static char result[_MAX_PATH] ;
data/exiv2-0.27.3/samples/geotag.cpp:496: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     search[_MAX_PATH+10];
data/exiv2-0.27.3/samples/geotag.cpp:558:27:  [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).
    FILE*       f       = fopen(path,"r");
data/exiv2-0.27.3/samples/geotag.cpp:562: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   buffer[8*1024];
data/exiv2-0.27.3/samples/geotag.cpp:600:46:  [2] (misc) open:
  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).
        Image::AutoPtr image = ImageFactory::open(path);
data/exiv2-0.27.3/samples/geotag.cpp:626:50:  [2] (misc) open:
  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).
            Image::AutoPtr image = ImageFactory::open(path);
data/exiv2-0.27.3/samples/geotag.cpp:656:19:  [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).
    FILE* f     = fopen(path,"r");
data/exiv2-0.27.3/samples/geotag.cpp:782: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 const* keywords[kwMAX];
data/exiv2-0.27.3/samples/geotag.cpp:820:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        int        ivalue = ::atoi(value?value:"0");
data/exiv2-0.27.3/samples/geotag.cpp:845:21:  [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   buffer[1024];
data/exiv2-0.27.3/samples/geotag.cpp:904:68:  [2] (misc) open:
  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).
                Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/samples/iotest.cpp:71:39:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int blocksize = argc==6 ? atoi(ba) : 10000;
data/exiv2-0.27.3/samples/iotest.cpp:78:22:  [2] (misc) open:
  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).
            if ( io->open() != 0 ) {
data/exiv2-0.27.3/samples/iotest.cpp:82:26:  [2] (misc) open:
  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).
            if ( !output.open("wb") ) {
data/exiv2-0.27.3/samples/iotest.cpp:103:20:  [2] (misc) open:
  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).
        if (fileIn.open() != 0) {
data/exiv2-0.27.3/samples/iotest.cpp:108:22:  [2] (misc) open:
  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).
        if (fileOut1.open("w+b") != 0) {
data/exiv2-0.27.3/samples/iotest.cpp:134:22:  [2] (misc) open:
  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).
        if (fileTest.open("w+b") != 0) {
data/exiv2-0.27.3/samples/iotest.cpp:146:22:  [2] (misc) open:
  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).
        if (fileOut2.open("w+b") != 0) {
data/exiv2-0.27.3/samples/iotest.cpp:183:12:  [2] (misc) open:
  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).
    if (io.open() != 0) {
data/exiv2-0.27.3/samples/iotest.cpp:246:12:  [2] (misc) open:
  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).
    if (io.open() != 0)  {
data/exiv2-0.27.3/samples/iptceasy.cpp:40:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/iptcprint.cpp:22:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/iptctest.cpp:40:46:  [2] (misc) open:
  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).
        Image::AutoPtr image = ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/largeiptc-test.cpp:24:16:  [2] (misc) open:
  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).
        if (io.open() != 0) {
data/exiv2-0.27.3/samples/largeiptc-test.cpp:35:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/metacopy.cpp:62:58:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr readImg = Exiv2::ImageFactory::open(memIo);
data/exiv2-0.27.3/samples/metacopy.cpp:66:59:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr writeImg = Exiv2::ImageFactory::open(params.write_);
data/exiv2-0.27.3/samples/mmap-test.cpp:25:14:  [2] (misc) open:
  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).
    if (file.open("rb") != 0) {
data/exiv2-0.27.3/samples/mmap-test.cpp:33: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(buf.pData_, pData, buf.size_);
data/exiv2-0.27.3/samples/mmap-test.cpp:37: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(buf.pData_, pData, buf.size_);
data/exiv2-0.27.3/samples/mrwthumb.cpp:23:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/mrwthumb.cpp:45:18:  [2] (misc) open:
  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).
            file.open("wb");
data/exiv2-0.27.3/samples/mt-test.cpp:38:54:  [2] (misc) open:
  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).
		Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[n]);
data/exiv2-0.27.3/samples/prevtest.cpp:22:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(filename);
data/exiv2-0.27.3/samples/remotetest.cpp:46:60:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr writeTest = Exiv2::ImageFactory::open(file, useCurlFromExiv2TestApps);
data/exiv2-0.27.3/samples/remotetest.cpp:53:59:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr readTest = Exiv2::ImageFactory::open(file, useCurlFromExiv2TestApps);
data/exiv2-0.27.3/samples/tiffaddpath-test.cpp:76:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint32_t tag = atol(argv[1]);
data/exiv2-0.27.3/samples/tiffaddpath-test.cpp:77:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    uint16_t grp = atol(argv[2]);
data/exiv2-0.27.3/samples/toexv.cpp:57:58:  [2] (misc) open:
  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).
		Exiv2::Image::AutoPtr readImage = Exiv2::ImageFactory::open(params.read_);
data/exiv2-0.27.3/samples/write-test.cpp:167:43:  [2] (misc) open:
  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).
    Image::AutoPtr image1 = ImageFactory::open(file1);
data/exiv2-0.27.3/samples/write-test.cpp:183:43:  [2] (misc) open:
  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).
    Image::AutoPtr image2 = ImageFactory::open(file2);
data/exiv2-0.27.3/samples/write2-test.cpp:79:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/write2-test.cpp:211:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/write2-test.cpp:220:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(file);
data/exiv2-0.27.3/samples/xmpdump.cpp:21:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/samples/xmpparser-test.cpp:57:14:  [2] (misc) open:
  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).
    if (file.open("wb") != 0) {
data/exiv2-0.27.3/samples/xmpprint.cpp:30:56:  [2] (misc) open:
  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).
    Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(argv[1]);
data/exiv2-0.27.3/src/actions.cpp:284:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:516:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:741:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:758:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:806:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:895:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:1060:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:1102:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:1140:64:  [2] (misc) open:
  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).
            Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path_);
data/exiv2-0.27.3/src/actions.cpp:1155:29:  [2] (misc) open:
  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).
                    iccFile.open("wb") ;
data/exiv2-0.27.3/src/actions.cpp:1288:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1332:64:  [2] (misc) open:
  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).
            Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1359:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1394:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1635:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1771:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:1834:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/actions.cpp:2015: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 lpTempPathBuffer[MAX_PATH];
data/exiv2-0.27.3/src/actions.cpp:2026: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 sCount[13];
data/exiv2-0.27.3/src/actions.cpp:2027:9:  [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(sCount,"_%d",++count); /// \todo replace by std::snprintf on master
data/exiv2-0.27.3/src/actions.cpp:2065:75:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr sourceImage = bStdin ? Exiv2::ImageFactory::open(ioStdin) : Exiv2::ImageFactory::open(source);
data/exiv2-0.27.3/src/actions.cpp:2065:112:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr sourceImage = bStdin ? Exiv2::ImageFactory::open(ioStdin) : Exiv2::ImageFactory::open(source);
data/exiv2-0.27.3/src/actions.cpp:2077:48:  [2] (misc) open:
  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).
            targetImage = Exiv2::ImageFactory::open(target);
data/exiv2-0.27.3/src/actions.cpp:2132:20:  [2] (misc) open:
  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).
                os.open(target.c_str());
data/exiv2-0.27.3/src/actions.cpp:2166: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).
            FILE* f = ::fopen(target.c_str(),"rb") ;
data/exiv2-0.27.3/src/actions.cpp:2170: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 buffer[8*1024];
data/exiv2-0.27.3/src/actions.cpp:2203: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 basename[max];
data/exiv2-0.27.3/src/actions.cpp:2332:60:  [2] (misc) open:
  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).
        Exiv2::Image::AutoPtr image = Exiv2::ImageFactory::open(path);
data/exiv2-0.27.3/src/asfvideo.cpp:310:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/asfvideo.cpp:350: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 GUID[37] = ""; //the getGUID function write the GUID[36],
data/exiv2-0.27.3/src/asfvideo.cpp:489: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 streamType[37] = "";
data/exiv2-0.27.3/src/asfvideo.cpp:627:29:  [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.
        byte guidBuf[16];   char fileID[37] = "";
data/exiv2-0.27.3/src/asfvideo.cpp:741: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 fileID[37] = ""; int count = 7;
data/exiv2-0.27.3/src/basicio.cpp:231:24:  [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).
            fp_ = std::fopen(path_.c_str(), openMode_.c_str());
data/exiv2-0.27.3/src/basicio.cpp:619:17:  [2] (misc) open:
  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).
            if (open("a+b") != 0) {
data/exiv2-0.27.3/src/basicio.cpp:829:17:  [2] (misc) open:
  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).
            if (open("w+b") != 0) {
data/exiv2-0.27.3/src/basicio.cpp:840:21:  [2] (misc) open:
  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).
            if (src.open() != 0) {
data/exiv2-0.27.3/src/basicio.cpp:856:17:  [2] (misc) open:
  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).
            if (open(lastMode) != 0) {
data/exiv2-0.27.3/src/basicio.cpp:952:17:  [2] (misc) open:
  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).
    int FileIo::open()
data/exiv2-0.27.3/src/basicio.cpp:955:16:  [2] (misc) open:
  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).
        return open("rb");
data/exiv2-0.27.3/src/basicio.cpp:958:17:  [2] (misc) open:
  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).
    int FileIo::open(const std::string& mode)
data/exiv2-0.27.3/src/basicio.cpp:970: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).
            p_->fp_ = ::fopen(path().c_str(), mode.c_str());
data/exiv2-0.27.3/src/basicio.cpp:1129:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(data_, source, size_);
data/exiv2-0.27.3/src/basicio.cpp:1185:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                std::memcpy(data, data_, size_);
data/exiv2-0.27.3/src/basicio.cpp:1231:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(&p_->data_[p_->idx_], data, wcount);
data/exiv2-0.27.3/src/basicio.cpp:1256:21:  [2] (misc) open:
  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).
            if (src.open() != 0) {
data/exiv2-0.27.3/src/basicio.cpp:1358:16:  [2] (misc) open:
  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).
    int MemIo::open()
data/exiv2-0.27.3/src/basicio.cpp:1387:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf, &p_->data_[p_->idx_], allow);
data/exiv2-0.27.3/src/basicio.cpp:1455: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 readBuf[100*1024];
data/exiv2-0.27.3/src/basicio.cpp:1539: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 readBuf[100*1024];
data/exiv2-0.27.3/src/basicio.cpp:1707:19:  [2] (misc) open:
  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).
    int RemoteIo::open()
data/exiv2-0.27.3/src/basicio.cpp:1876:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(&buf[totalRead], &data[startPos], blockR);
data/exiv2-0.27.3/src/basicio.cpp:1908:17:  [2] (misc) open:
  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).
        if (src.open() != 0) {
data/exiv2-0.27.3/src/basicio.cpp:1964:21:  [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(bigBlock_+(block*blockSize),p,blockSize);
data/exiv2-0.27.3/src/basicio.cpp:2107:54:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return (lengthIter == response.end()) ? -1 : atol((lengthIter->second).c_str());
data/exiv2-0.27.3/src/basicio.cpp:2263:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        timeout_ = atol(timeout.c_str());
data/exiv2-0.27.3/src/basicio.cpp:2549:26:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                length = atol(response.c_str());
data/exiv2-0.27.3/src/basicio.cpp:2666:18:  [2] (misc) open:
  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).
        if (file.open("rb") != 0) {
data/exiv2-0.27.3/src/basicio.cpp:2685:18:  [2] (misc) open:
  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).
        if (file.open("rb") != 0) {
data/exiv2-0.27.3/src/basicio.cpp:2704:18:  [2] (misc) open:
  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).
        if (file.open("wb") != 0) {
data/exiv2-0.27.3/src/basicio.cpp:2714:18:  [2] (misc) open:
  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).
        if (file.open("wb") != 0) {
data/exiv2-0.27.3/src/bigtiffimage.cpp:301:38:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                std::memcpy(buf.pData_, data.pData_, (size_t) count * size);     // copy data
data/exiv2-0.27.3/src/bmpimage.cpp:76:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/bmpimage.cpp:135:24:  [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 unsigned char BmpImageId[2] = {'B', 'M'};
data/exiv2-0.27.3/src/convert.cpp:568: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[30];
data/exiv2-0.27.3/src/convert.cpp:868: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[30];
data/exiv2-0.27.3/src/convert.cpp:1102: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 ref_str[2] = {ref, 0};
data/exiv2-0.27.3/src/convert.cpp:1179:18:  [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 digest[16];
data/exiv2-0.27.3/src/convert.cpp:1265:18:  [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 digest[16];
data/exiv2-0.27.3/src/convert.cpp:1393:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        int len = MultiByteToWideChar(cp, 0, str.c_str(), (int)str.size(), 0, 0);
data/exiv2-0.27.3/src/convert.cpp:1402:19:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        int ret = MultiByteToWideChar(cp, 0, str.c_str(), (int)str.size(), (LPWSTR)&out[0], len * 2);
data/exiv2-0.27.3/src/convert.cpp:1545: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 outbuf[256];
data/exiv2-0.27.3/src/cr2header_int.cpp:59:9:  [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.pData_ + 8, cr2sig_, 4);
data/exiv2-0.27.3/src/cr2image.cpp:79:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/cr2image.cpp:95:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/cr2image.cpp:122:18:  [2] (misc) open:
  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).
        if (io_->open() == 0) {
data/exiv2-0.27.3/src/crwimage.cpp:94:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/crwimage.cpp:118:18:  [2] (misc) open:
  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).
        if (io_->open() == 0) {
data/exiv2-0.27.3/src/crwimage_int.cpp:219:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(pPadding_, pData + 14, padded_);
data/exiv2-0.27.3/src/crwimage_int.cpp:916: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 s[m];
data/exiv2-0.27.3/src/crwimage_int.cpp:1052:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(buf.pData_, comment.data(), comment.size());
data/exiv2-0.27.3/src/crwimage_int.cpp:1173:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (cc) std::memcpy(buf.pData_ + 8, cc->pData() + 8, cc->size() - 8);
data/exiv2-0.27.3/src/epsimage.cpp:254:16:  [2] (misc) open:
  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).
        if (io.open() != 0) {
data/exiv2-0.27.3/src/epsimage.cpp:1083:22:  [2] (misc) open:
  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).
            if (io_->open() == 0) {
data/exiv2-0.27.3/src/exiv2.cpp:937: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 buff[buff_size];
data/exiv2-0.27.3/src/exiv2.cpp:942:13:  [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(bytes+nBytes,buff,n);
data/exiv2-0.27.3/src/exiv2.cpp:949:9:  [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.pData_,(const void*)bytes,nBytes);
data/exiv2-0.27.3/src/exiv2.cpp:986:23:  [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).
            FILE* f = fopen(path,"rb");
data/exiv2-0.27.3/src/exiv2.cpp:1002:9:  [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.pData_,stdinBuf.pData_,buf.size_);
data/exiv2-0.27.3/src/fff.h:106: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  szFormatID[4];         /* Fileformat ID 'FFF\0'  4   4       */
data/exiv2-0.27.3/src/fff.h:107: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  szOrigin[16];          /* File origin           16  20       */
data/exiv2-0.27.3/src/fff.h:198: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 imgName[16];  /* (4 longs) */
data/exiv2-0.27.3/src/fff.h:352: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          pzTSName[SYSIMG_NAMELEN+1];
data/exiv2-0.27.3/src/fff.h:361: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  pzDPName[SYSIMG_NAMELEN+1];
data/exiv2-0.27.3/src/futils.cpp:223:18:  [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 quad[4];
data/exiv2-0.27.3/src/futils.cpp:364: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 buf2[n];
data/exiv2-0.27.3/src/futils.cpp:368: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[n];
data/exiv2-0.27.3/src/futils.cpp:481:13:  [2] (buffer) TCHAR:
  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.
            TCHAR filename[MAX_PATH];
data/exiv2-0.27.3/src/futils.cpp:489: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 pathbuf[PROC_PIDPATHINFO_MAXSIZE];
data/exiv2-0.27.3/src/futils.cpp:495: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               buffer[PATH_MAX] = {};
data/exiv2-0.27.3/src/futils.cpp:508: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        path[500];
data/exiv2-0.27.3/src/futils.cpp:516: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 path[500];
data/exiv2-0.27.3/src/getopt.cpp:69:16:  [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.
					optarg = (char *)argv[optind + 1];
data/exiv2-0.27.3/src/gifimage.cpp:77:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/gifimage.cpp:119:24:  [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 unsigned char Gif87aId[8] = { 'G', 'I', 'F', '8', '7', 'a' };
data/exiv2-0.27.3/src/gifimage.cpp:120:24:  [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 unsigned char Gif89aId[8] = { 'G', 'I', 'F', '8', '9', 'a' };
data/exiv2-0.27.3/src/http.cpp:38:28:  [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).
#define  fopen_S(f,n,a)  f=fopen(n,a)
data/exiv2-0.27.3/src/http.cpp:72:26:  [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).
#define fopen_S(f,n,o) f=fopen(n,o)
data/exiv2-0.27.3/src/http.cpp:139: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 buffer[buffer_size];
data/exiv2-0.27.3/src/http.cpp:264:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    serv_addr.sin_port          = htons(atoi(port_p));
data/exiv2-0.27.3/src/http.cpp:283: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   buffer[32*1024+1];
data/exiv2-0.27.3/src/http.cpp:327:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                            status = atoi(firstSpace);
data/exiv2-0.27.3/src/http.cpp:350:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                result = atoi(firstSpace);
data/exiv2-0.27.3/src/image.cpp:240: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 c[4];
data/exiv2-0.27.3/src/image.cpp:418:22:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                std::memcpy(buf.pData_,dir.pData_+8,4);  // copy dir[8:11] into buffer (short strings)
data/exiv2-0.27.3/src/image.cpp:748:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) return false;
data/exiv2-0.27.3/src/image.cpp:840:16:  [2] (misc) open:
  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).
        if (io.open() != 0) return ImageType::none;
data/exiv2-0.27.3/src/image.cpp:901:34:  [2] (misc) open:
  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).
    Image::AutoPtr ImageFactory::open(const std::string& path, bool useCurl)
data/exiv2-0.27.3/src/image.cpp:903:32:  [2] (misc) open:
  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).
        Image::AutoPtr image = open(ImageFactory::createIo(path, useCurl)); // may throw
data/exiv2-0.27.3/src/image.cpp:909:34:  [2] (misc) open:
  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).
    Image::AutoPtr ImageFactory::open(const std::wstring& wpath, bool useCurl)
data/exiv2-0.27.3/src/image.cpp:911:32:  [2] (misc) open:
  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).
        Image::AutoPtr image = open(ImageFactory::createIo(wpath, useCurl)); // may throw
data/exiv2-0.27.3/src/image.cpp:917:34:  [2] (misc) open:
  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).
    Image::AutoPtr ImageFactory::open(const byte* data, long size)
data/exiv2-0.27.3/src/image.cpp:920:32:  [2] (misc) open:
  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).
        Image::AutoPtr image = open(io); // may throw
data/exiv2-0.27.3/src/image.cpp:925:34:  [2] (misc) open:
  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).
    Image::AutoPtr ImageFactory::open(BasicIo::AutoPtr io)
data/exiv2-0.27.3/src/image.cpp:927:17:  [2] (misc) open:
  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).
        if (io->open() != 0) {
data/exiv2-0.27.3/src/image.cpp:943:21:  [2] (misc) open:
  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).
        if (fileIo->open("w+b") != 0) {
data/exiv2-0.27.3/src/image.cpp:959:21:  [2] (misc) open:
  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).
        if (fileIo->open("w+b") != 0) {
data/exiv2-0.27.3/src/image.cpp:1001:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(&blob[size], buf, len);
data/exiv2-0.27.3/src/ini.cpp:93: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 line[INI_MAX_LINE];
data/exiv2-0.27.3/src/ini.cpp:97: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 section[MAX_SECTION] = "";
data/exiv2-0.27.3/src/ini.cpp:98: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 prev_name[MAX_NAME] = "";
data/exiv2-0.27.3/src/ini.cpp:203:12:  [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).
    file = fopen(filename, "r");
data/exiv2-0.27.3/src/iptc.cpp:362: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 buff[100];
data/exiv2-0.27.3/src/jp2image.cpp:84:16:  [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 unsigned char Jp2Signature[12] = { 0x00, 0x00, 0x00, 0x0c, 0x6a, 0x50, 0x20, 0x20, 0x0d, 0x0a, 0x87, 0x0a };
data/exiv2-0.27.3/src/jp2image.cpp:139:22:  [2] (misc) open:
  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).
            if (io_->open() == 0)
data/exiv2-0.27.3/src/jp2image.cpp:179: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 c[4];
data/exiv2-0.27.3/src/jp2image.cpp:211:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/jp2image.cpp:295:31:  [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(icc.pData_,data.pData_+pad,icc.size_);
data/exiv2-0.27.3/src/jp2image.cpp:298:39:  [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).
                            FILE* f = fopen(iccPath,"wb");
data/exiv2-0.27.3/src/jp2image.cpp:466:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/jp2image.cpp:623:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/jp2image.cpp:683:23:  [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(output.pData_+outlen                     ,&newBox            ,sizeof(newBox));
data/exiv2-0.27.3/src/jp2image.cpp:684:23:  [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(output.pData_+outlen+sizeof(newBox)      ,pad                ,psize         );
data/exiv2-0.27.3/src/jp2image.cpp:691:23:  [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(output.pData_+outlen                     ,&newBox            ,sizeof(newBox)  );
data/exiv2-0.27.3/src/jp2image.cpp:692:23:  [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(output.pData_+outlen+sizeof(newBox)      , pad               ,psize           );
data/exiv2-0.27.3/src/jp2image.cpp:693:23:  [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(output.pData_+outlen+sizeof(newBox)+psize,iccProfile_.pData_,iccProfile_.size_);
data/exiv2-0.27.3/src/jp2image.cpp:697:19:  [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(output.pData_+outlen,boxBuf.pData_+inlen,subBox.length);
data/exiv2-0.27.3/src/jp2image.cpp:706:11:  [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(outBuf.pData_,output.pData_,outlen);
data/exiv2-0.27.3/src/jp2image.cpp:784:13:  [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(boxBuf.pData_, bheaderBuf.pData_, 8);               // Copy header.
data/exiv2-0.27.3/src/jp2image.cpp:825:29:  [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(rawExif.pData_, &blob[0], blob.size());
data/exiv2-0.27.3/src/jp2image.cpp:830:29:  [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(boxData.pData_,          boxDataSize,    4);
data/exiv2-0.27.3/src/jp2image.cpp:831:29:  [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(boxData.pData_ + 4,      boxUUIDtype,    4);
data/exiv2-0.27.3/src/jp2image.cpp:832:29:  [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(boxData.pData_ + 8,      kJp2UuidExif,   16);
data/exiv2-0.27.3/src/jp2image.cpp:833:29:  [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(boxData.pData_ + 8 + 16, rawExif.pData_, rawExif.size_);
data/exiv2-0.27.3/src/jp2image.cpp:853:29:  [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(boxData.pData_,          boxDataSize,    4);
data/exiv2-0.27.3/src/jp2image.cpp:854:29:  [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(boxData.pData_ + 4,      boxUUIDtype,    4);
data/exiv2-0.27.3/src/jp2image.cpp:855:29:  [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(boxData.pData_ + 8,      kJp2UuidIptc,   16);
data/exiv2-0.27.3/src/jp2image.cpp:856:29:  [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(boxData.pData_ + 8 + 16, rawIptc.pData_, rawIptc.size_);
data/exiv2-0.27.3/src/jp2image.cpp:883:25:  [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(boxData.pData_,          boxDataSize,  4);
data/exiv2-0.27.3/src/jp2image.cpp:884:25:  [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(boxData.pData_ + 4,      boxUUIDtype,  4);
data/exiv2-0.27.3/src/jp2image.cpp:885:25:  [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(boxData.pData_ + 8,      kJp2UuidXmp,  16);
data/exiv2-0.27.3/src/jp2image.cpp:886:25:  [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(boxData.pData_ + 8 + 16, xmp.pData_,   xmp.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:268:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(tmpBuf, Photoshop::irbId_[0], 4);
data/exiv2-0.27.3/src/jpgimage.cpp:316:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/jpgimage.cpp:347:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/jpgimage.cpp:502:27:  [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(profile.pData_,iccProfile_.pData_,iccProfile_.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:504:23:  [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(profile.pData_+iccProfile_.size_,icc.pData_,icc.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:579:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/jpgimage.cpp:605: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 MN[16];
data/exiv2-0.27.3/src/jpgimage.cpp:607:17:  [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(MN, "APP%d", i);
data/exiv2-0.27.3/src/jpgimage.cpp:610:21:  [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(MN, "SOF%d", i);
data/exiv2-0.27.3/src/jpgimage.cpp:904:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/jpgimage.cpp:1118:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        std::memcpy(tmpBuf + 4, exifId_, 6);
data/exiv2-0.27.3/src/jpgimage.cpp:1146:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    std::memcpy(tmpBuf + 4, xmpId_, 29);
data/exiv2-0.27.3/src/jpgimage.cpp:1183:25:  [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 pad[2];
data/exiv2-0.27.3/src/jpgimage.cpp:1222:30:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        std::memcpy(tmpBuf + 4, Photoshop::ps3Id_, 14);
data/exiv2-0.27.3/src/jpgimage.cpp:1395:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(tmpBuf + 2, exiv2Id_, 5);
data/exiv2-0.27.3/src/makernote_int.cpp:99: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 path[MAX_PATH];
data/exiv2-0.27.3/src/makernote_int.cpp:264:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(header_.pData_, pData, header_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:318:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(header_.pData_, pData, header_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:378:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(header_.pData_, pData, header_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:431:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:456:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, signature_, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:492:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:554:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:605:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(header_.pData_, pData, header_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:654:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(header_.pData_, pData, header_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:737:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:784:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:837:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf_.pData_, pData, buf_.size_);
data/exiv2-0.27.3/src/makernote_int.cpp:1230:9:  [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.pData_, pData, buf.size_);
data/exiv2-0.27.3/src/matroskavideo.cpp:496:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/matroskavideo.cpp:579: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 str[4] = "No";
data/exiv2-0.27.3/src/matroskavideo.cpp:630:41:  [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.
            if (returnValue(buf, size)) strcpy(str, "Yes");
data/exiv2-0.27.3/src/minoltamn_int.cpp:1956: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 buffer[200];
data/exiv2-0.27.3/src/mrwimage.cpp:99:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/orfimage.cpp:89:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/orfimage.cpp:107:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/orfimage.cpp:134:18:  [2] (misc) open:
  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).
        if (io_->open() == 0) {
data/exiv2-0.27.3/src/pgfimage.cpp:46:16:  [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 unsigned char pgfSignature[3] = { 0x50, 0x47, 0x46 };
data/exiv2-0.27.3/src/pgfimage.cpp:91:22:  [2] (misc) open:
  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).
            if (io_->open() == 0)
data/exiv2-0.27.3/src/pgfimage.cpp:112:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/pgfimage.cpp:152:53:  [2] (misc) open:
  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).
        Image::AutoPtr image = Exiv2::ImageFactory::open(imgData.pData_, imgData.size_);
data/exiv2-0.27.3/src/pgfimage.cpp:162:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/pgfimage.cpp:225:9:  [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 (buffer.pData_, &newHeaderSize, 4);
data/exiv2-0.27.3/src/pgfimage.cpp:297:9:  [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 (work.pData_,header.pData_,8);
data/exiv2-0.27.3/src/pngchunk_int.cpp:609:18:  [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           unhex[103]={0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
data/exiv2-0.27.3/src/pngchunk_int.cpp:621:15:  [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(info.pData_,text.pData_,text.size_);
data/exiv2-0.27.3/src/pngimage.cpp:49:16:  [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 unsigned char pngSignature[8] = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A };
data/exiv2-0.27.3/src/pngimage.cpp:80:22:  [2] (misc) open:
  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).
            if (io_->open() == 0)
data/exiv2-0.27.3/src/pngimage.cpp:215:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/pngimage.cpp:222: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    chType[5];
data/exiv2-0.27.3/src/pngimage.cpp:369:29:  [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(s.pData_,dataBuf.pData_,dataBuf.size_);// copy in the dataBuf
data/exiv2-0.27.3/src/pngimage.cpp:416:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/pngimage.cpp:505:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/pngimage.cpp:555:13:  [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(chunkBuf.pData_, cheaderBuf.pData_, 8);            // Copy header.
data/exiv2-0.27.3/src/pngimage.cpp:560: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 szChunk[5];
data/exiv2-0.27.3/src/pngimage.cpp:561:13:  [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(szChunk,cheaderBuf.pData_ + 4,4);
data/exiv2-0.27.3/src/preview.cpp:467:16:  [2] (misc) open:
  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).
        if (io.open() != 0) {
data/exiv2-0.27.3/src/preview.cpp:509:50:  [2] (misc) open:
  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).
            Image::AutoPtr image = ImageFactory::open(data.pData_, data.size_);
data/exiv2-0.27.3/src/preview.cpp:576:16:  [2] (misc) open:
  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).
        if (io.open() != 0) {
data/exiv2-0.27.3/src/preview.cpp:593:16:  [2] (misc) open:
  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).
        if (io.open() != 0) {
data/exiv2-0.27.3/src/preview.cpp:600:50:  [2] (misc) open:
  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).
            Image::AutoPtr image = ImageFactory::open(base + offset_, size_);
data/exiv2-0.27.3/src/preview.cpp:677:50:  [2] (misc) open:
  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).
            Image::AutoPtr image = ImageFactory::open(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/preview.cpp:790:20:  [2] (misc) open:
  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).
            if (io.open() != 0) {
data/exiv2-0.27.3/src/preview.cpp:817:29:  [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.pData_[idxBuf], base + offset, size);
data/exiv2-0.27.3/src/preview.cpp:929:18:  [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 char encodeBase64Table[64 + 1] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
data/exiv2-0.27.3/src/preview.cpp:1057:9:  [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(pData_, rhs.pData_, rhs.size_);
data/exiv2-0.27.3/src/preview.cpp:1069:9:  [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(pData_, rhs.pData_, rhs.size_);
data/exiv2-0.27.3/src/psdimage.cpp:56:14:  [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 resourceName[2];    // Pascal string (length byte + characters), padded to an even size -- this assumes the empty string
data/exiv2-0.27.3/src/psdimage.cpp:147:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/psdimage.cpp:354:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/psdimage.cpp:705:24:  [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 unsigned char PsdHeader[6] = { '8', 'B', 'P', 'S', 0, 1 };
data/exiv2-0.27.3/src/quicktimevideo.cpp:517:15:  [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 ignoreList[13][5] = {
data/exiv2-0.27.3/src/quicktimevideo.cpp:537:15:  [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 ignoreList[8][5] = {
data/exiv2-0.27.3/src/quicktimevideo.cpp:628:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/rafimage.cpp:97:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/rafimage.cpp:284:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/riffvideo.cpp:535:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/riffvideo.cpp:603:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/riffvideo.cpp:830:26:  [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.
        tempSize = size; char str[9] = " . . . ";
data/exiv2-0.27.3/src/riffvideo.cpp:1319:24:  [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 unsigned char RiffVideoId[4] = { 'R', 'I', 'F' ,'F'};
data/exiv2-0.27.3/src/rw2image.cpp:100:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/rw2image.cpp:118:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/rw2image.cpp:148:46:  [2] (misc) open:
  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).
        Image::AutoPtr image = ImageFactory::open(preview.pData(), preview.size());
data/exiv2-0.27.3/src/ssh.cpp:39:20:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        timeout_ = atol(timeout.c_str());
data/exiv2-0.27.3/src/ssh.cpp:75: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 buffer[256];
data/exiv2-0.27.3/src/tags_int.cpp:2842: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 s[5];
data/exiv2-0.27.3/src/tgaimage.cpp:77:18:  [2] (misc) open:
  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).
        if (io_->open() != 0)
data/exiv2-0.27.3/src/tiffcomposite_int.cpp:260:13:  [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(pData_, rhs.pData_, rhs.size_);
data/exiv2-0.27.3/src/tiffcomposite_int.cpp:610:9:  [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(origData_, pData, origSize_);
data/exiv2-0.27.3/src/tiffimage.cpp:174:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/tiffimage.cpp:217:18:  [2] (misc) open:
  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).
        if (io_->open() == 0) {
data/exiv2-0.27.3/src/tiffimage.cpp:337:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:655: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(buf.pData_, rawIptc.pData_, rawIptc.size_);
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:779:13:  [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 + 8, pTiffEntry->pData(), pTiffEntry->size());
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:983: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(object->pDataArea_, buf.pData_, buf.size_);
data/exiv2-0.27.3/src/types.cpp:149:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            std::memcpy(pData_, pData, size);
data/exiv2-0.27.3/src/types.cpp:602:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        len = MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, 0, 0);
data/exiv2-0.27.3/src/types.cpp:604:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        MultiByteToWideChar(CP_ACP, 0, s.c_str(), slength, buf, len);
data/exiv2-0.27.3/src/tzfile.h:55: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	tzh_magic[4];		/* TZ_MAGIC */
data/exiv2-0.27.3/src/tzfile.h:56: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	tzh_reserved[16];	/* reserved for future use */
data/exiv2-0.27.3/src/tzfile.h:57: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	tzh_ttisgmtcnt[4];	/* coded number of trans. time flags */
data/exiv2-0.27.3/src/tzfile.h:58: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	tzh_ttisstdcnt[4];	/* coded number of trans. time flags */
data/exiv2-0.27.3/src/tzfile.h:59: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	tzh_leapcnt[4];		/* coded number of leap seconds */
data/exiv2-0.27.3/src/tzfile.h: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	tzh_timecnt[4];		/* coded number of transition times */
data/exiv2-0.27.3/src/tzfile.h:61: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	tzh_typecnt[4];		/* coded number of local time types */
data/exiv2-0.27.3/src/tzfile.h:62: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	tzh_charcnt[4];		/* coded number of abbr. chars */
data/exiv2-0.27.3/src/value.cpp:679:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        if (s.size() > 0) std::memcpy(buf, &s[0], s.size());
data/exiv2-0.27.3/src/value.cpp:989:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(b, reinterpret_cast<const char*>(buf), 8);
data/exiv2-0.27.3/src/value.cpp:1031: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 temp[9];
data/exiv2-0.27.3/src/value.cpp:1033:21:  [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.
        int wrote = sprintf(temp, "%04d%02d%02d", date_.year, date_.month, date_.day);
data/exiv2-0.27.3/src/value.cpp:1035:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf, temp, wrote);
data/exiv2-0.27.3/src/value.cpp:1118:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(b, reinterpret_cast<const char*>(buf), (len < 12 ? len : 11));
data/exiv2-0.27.3/src/value.cpp:1202: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 temp[12];
data/exiv2-0.27.3/src/value.cpp:1213:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(buf, temp, wrote);
data/exiv2-0.27.3/src/version.cpp:174: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 szFilename[_MAX_PATH];
data/exiv2-0.27.3/src/version.cpp:209: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 procsz[100];
data/exiv2-0.27.3/src/version.cpp:210: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 pathsz[500];
data/exiv2-0.27.3/src/version.cpp:211: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(procsz,"/proc/%d/path/a.out", getpid());
data/exiv2-0.27.3/src/version.cpp:256: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  version[40];
data/exiv2-0.27.3/src/version.cpp:257: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(version,"%d.%02d",(_MSC_VER-600)/100,_MSC_VER%100);
data/exiv2-0.27.3/src/webpimage.cpp:125:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/webpimage.cpp:209: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(&size_buf, &payload.pData_[4], 3);
data/exiv2-0.27.3/src/webpimage.cpp:214: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(&size_buf, &payload.pData_[7], 3);
data/exiv2-0.27.3/src/webpimage.cpp:240: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(&size_buf, &payload.pData_[6], 2);
data/exiv2-0.27.3/src/webpimage.cpp:244: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(&size_buf, &payload.pData_[8], 2);
data/exiv2-0.27.3/src/webpimage.cpp:265: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(&size_buf_w, &payload.pData_[1], 2);
data/exiv2-0.27.3/src/webpimage.cpp:270: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(&size_buf_h, &payload.pData_[2], 3);
data/exiv2-0.27.3/src/webpimage.cpp:291: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(&size_buf, &payload.pData_[6], 3);
data/exiv2-0.27.3/src/webpimage.cpp:296: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(&size_buf, &payload.pData_[9], 3);
data/exiv2-0.27.3/src/webpimage.cpp:422:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/webpimage.cpp:488:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) throw Error(kerDataSourceOpenFailed, io_->path(), strError());
data/exiv2-0.27.3/src/webpimage.cpp:552: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(&size_buf, &payload.pData_[4], 3);
data/exiv2-0.27.3/src/webpimage.cpp:557: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(&size_buf, &payload.pData_[7], 3);
data/exiv2-0.27.3/src/webpimage.cpp:568: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(&size_buf, &payload.pData_[6], 2);
data/exiv2-0.27.3/src/webpimage.cpp:574: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(&size_buf, &payload.pData_[8], 2);
data/exiv2-0.27.3/src/webpimage.cpp:588: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(&size_buf_w, &payload.pData_[1], 2);
data/exiv2-0.27.3/src/webpimage.cpp:593: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(&size_buf_h, &payload.pData_[2], 3);
data/exiv2-0.27.3/src/webpimage.cpp:606: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(&size_buf, &payload.pData_[6], 3);
data/exiv2-0.27.3/src/webpimage.cpp:611: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(&size_buf, &payload.pData_[9], 3);
data/exiv2-0.27.3/src/webpimage.cpp:664:21:  [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(rawExifData, (char*)&exifLongHeader, 4);
data/exiv2-0.27.3/src/webpimage.cpp:665:21:  [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(rawExifData + 4, (char*)&size_buff, 2);
data/exiv2-0.27.3/src/webpimage.cpp:670:21:  [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(rawExifData, (char*)&exifLongHeader, 4);
data/exiv2-0.27.3/src/webpimage.cpp:671:21:  [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(rawExifData + 4, (char*)&size_buff, 2);
data/exiv2-0.27.3/src/webpimage.cpp:672:21:  [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(rawExifData + 6, (char*)&exifShortHeader, 6);
data/exiv2-0.27.3/src/webpimage.cpp:675: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(rawExifData + offset, payload.pData_, payload.size_);
data/exiv2-0.27.3/src/webpimage.cpp:736:24:  [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 unsigned char RiffImageId[4] = { 'R', 'I', 'F' ,'F'};
data/exiv2-0.27.3/src/webpimage.cpp:737:24:  [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 unsigned char WebPImageId[4] = { 'W', 'E', 'B' ,'P'};
data/exiv2-0.27.3/src/xmpsidecar.cpp:58:22:  [2] (misc) open:
  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).
            if (io_->open() == 0) {
data/exiv2-0.27.3/src/xmpsidecar.cpp:81:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/src/xmpsidecar.cpp:137:18:  [2] (misc) open:
  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).
        if (io_->open() != 0) {
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:21:23:  [2] (misc) open:
  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).
    ASSERT_EQ(0, file.open());
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:28:10:  [2] (misc) open:
  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).
    file.open();
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:35:10:  [2] (misc) open:
  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).
    file.open();
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:48:10:  [2] (misc) open:
  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).
    file.open();
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:55:10:  [2] (misc) open:
  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).
    file.open();
data/exiv2-0.27.3/unitTests/test_FileIo.cpp:68:10:  [2] (misc) open:
  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).
    file.open();
data/exiv2-0.27.3/unitTests/test_futils.cpp:187:15:  [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).
    FILE* f = fopen("/c//temp/test_futils.log","w");
data/exiv2-0.27.3/unitTests/test_helper_functions.cpp:7: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 data[5] = {'a', 'b', 'c', 0, 'd'};
data/exiv2-0.27.3/unitTests/test_helper_functions.cpp:16: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 data[4] = {'a', 'b', 'c', 'd'};
data/exiv2-0.27.3/unitTests/test_image_int.cpp:9: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 buf[10] = {'a', 'b', 'c', 1, 4, 0, 'e', 136, 0, 'a'};
data/exiv2-0.27.3/xmpsdk/include/MD5.h:57:31:  [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.
extern void MD5Final(unsigned char digest[16], struct MD5_CTX *context);
data/exiv2-0.27.3/xmpsdk/src/ExpatAdapter.cpp:154:4:  [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 msgBuffer[1000];
data/exiv2-0.27.3/xmpsdk/src/MD5.cpp:77: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((md5byte *)ctx->in + 64 - t, buf, len);
data/exiv2-0.27.3/xmpsdk/src/MD5.cpp:81: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((md5byte *)ctx->in + 64 - t, buf, t);
data/exiv2-0.27.3/xmpsdk/src/MD5.cpp:89: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(ctx->in, buf, 64);
data/exiv2-0.27.3/xmpsdk/src/MD5.cpp:97: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(ctx->in, buf, len);
data/exiv2-0.27.3/xmpsdk/src/MD5.cpp:132: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(digest, ctx->buf, 16);
data/exiv2-0.27.3/xmpsdk/src/XMLParserAdapter.hpp:130: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	pendingInput[kXMLPendingInputMax];	// Buffered input for character encoding checks.
data/exiv2-0.27.3/xmpsdk/src/XML_Node.cpp:218:4:  [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 numBuf [20];
data/exiv2-0.27.3/xmpsdk/src/XMPIterator.cpp:160: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 buffer [32];	// AUDIT: Using sizeof(buffer) below for snprintf length is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:56:14:  [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 char * kReplaceLatin1[128] =
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1098:4:  [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 message [200];	// AUDIT: Using sizeof(message) below for snprintf length is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1125: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 ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1176: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 ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1215:6:  [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 ( &parser.pendingInput[0], &parser.pendingInput[bytesDone], bytesLeft );	// AUDIT: Count is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1236: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 ( parser.pendingInput, &buffer[bytesDone], bytesLeft );	// AUDIT: Count is safe.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:304: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 hexBuf[16];
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:305: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 ( hexBuf, "&#xn;", 5 );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:109: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 buffer [20];
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:199: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		buffer [32];	// Decimal of a 64 bit int is at most about 20 digits.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:273: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		buffer [32];	// Decimal of a 64 bit int is at most about 20 digits.
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1044: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 buffer [100];	// Plenty long enough.
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1454: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	encChunk[4];
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1562: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	ch, rawChunk[3];
data/exiv2-0.27.3/contrib/organize/organize.cpp:305:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long read_count = io.read(buff, 4096);
data/exiv2-0.27.3/contrib/organize/organize.cpp:308:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            read_count = io.read(buff, 4096);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:131:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual DataBuf read(long rcount) = 0;
data/exiv2-0.27.3/include/exiv2/basicio.hpp:144:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual long read(byte* buf, long rcount) = 0;
data/exiv2-0.27.3/include/exiv2/basicio.hpp:388:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual DataBuf read(long rcount);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:401:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual long read(byte* buf, long rcount);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:613:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual DataBuf read(long rcount);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:626:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual long read(byte* buf, long rcount);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:895:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       virtual DataBuf read(long rcount);
data/exiv2-0.27.3/include/exiv2/basicio.hpp:910:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       virtual long read(byte* buf, long rcount);
data/exiv2-0.27.3/include/exiv2/value.hpp:83:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf, long len, ByteOrder byteOrder) =0;
data/exiv2-0.27.3/include/exiv2/value.hpp:94:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf) =0;
data/exiv2-0.27.3/include/exiv2/value.hpp:289:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf,
data/exiv2-0.27.3/include/exiv2/value.hpp:293:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:364:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:377:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf,
data/exiv2-0.27.3/include/exiv2/value.hpp:475:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        using StringValueBase::read;
data/exiv2-0.27.3/include/exiv2/value.hpp:481:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:575:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int read(const std::string& comment);
data/exiv2-0.27.3/include/exiv2/value.hpp:579:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int read(const byte* buf, long len, ByteOrder byteOrder);
data/exiv2-0.27.3/include/exiv2/value.hpp:691:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf,
data/exiv2-0.27.3/include/exiv2/value.hpp:694:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf) =0;
data/exiv2-0.27.3/include/exiv2/value.hpp:739:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        using XmpValue::read;
data/exiv2-0.27.3/include/exiv2/value.hpp:755:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:819:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        using XmpValue::read;
data/exiv2-0.27.3/include/exiv2/value.hpp:830:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:914:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        using XmpValue::read;
data/exiv2-0.27.3/include/exiv2/value.hpp:932:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:1025:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf,
data/exiv2-0.27.3/include/exiv2/value.hpp:1036:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:1132:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf,
data/exiv2-0.27.3/include/exiv2/value.hpp:1143:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:1270:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const byte* buf, long len, ByteOrder byteOrder);
data/exiv2-0.27.3/include/exiv2/value.hpp:1277:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual int read(const std::string& buf);
data/exiv2-0.27.3/include/exiv2/value.hpp:1521:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(buf, len, byteOrder);
data/exiv2-0.27.3/include/exiv2/value.hpp:1568:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ValueType<T>::read(const byte* buf, long len, ByteOrder byteOrder)
data/exiv2-0.27.3/include/exiv2/value.hpp:1581:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int ValueType<T>::read(const std::string& buf)
data/exiv2-0.27.3/samples/Jzon.cpp:800:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file.read(&json[0], size);
data/exiv2-0.27.3/samples/addmoddel.cpp:39:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("1999:12:31 23:59:59");
data/exiv2-0.27.3/samples/addmoddel.cpp:48:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rv->read("1/2 1/3");
data/exiv2-0.27.3/samples/exifprint.cpp:52:62:  [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).
                  << "strlen(Exiv2::version())        " << ::strlen(Exiv2::version())      << std::endl
data/exiv2-0.27.3/samples/geotag.cpp:552:25:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        buffer[len++] = fgetc(f);
data/exiv2-0.27.3/samples/geotag.cpp:572:39:  [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).
        bResult = strncmp(lead,buffer,strlen(lead))==0;
data/exiv2-0.27.3/samples/iotest.cpp:88:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                while ( (r=io->read(bytes,blocksize)) > 0  ) {
data/exiv2-0.27.3/samples/iotest.cpp:152:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readCount=fileOut1.read(buf, sizeof(buf)))) {
data/exiv2-0.27.3/samples/iotest.cpp:180: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).
    const size_t size1  = std::strlen(tester1) + 1;
data/exiv2-0.27.3/samples/iotest.cpp:181: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).
    const size_t size2  = std::strlen(tester2) + 1;
data/exiv2-0.27.3/samples/iotest.cpp:250:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((size_t) io.read(buf, sizeof(buf)) != insert + size2) {
data/exiv2-0.27.3/samples/iptceasy.cpp:34:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    value.read("very!");
data/exiv2-0.27.3/samples/iptctest.cpp:113:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    value->read(data);
data/exiv2-0.27.3/samples/iptctest.cpp:164:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    value->read(data);
data/exiv2-0.27.3/samples/largeiptc-test.cpp:29:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long readBytes = io.read(buf.pData_, buf.size_);
data/exiv2-0.27.3/samples/largeiptc-test.cpp:41:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        value.read(buf.pData_, buf.size_);
data/exiv2-0.27.3/samples/remotetest.cpp:42:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("2013:06:09 14:30:30");
data/exiv2-0.27.3/samples/toexv.cpp:74:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			memImage->io().read(buff,size);
data/exiv2-0.27.3/samples/toexv.cpp:102:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			memImage->io().read(data,size);
data/exiv2-0.27.3/samples/write2-test.cpp:41:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v1->read("160 161 162 163");
data/exiv2-0.27.3/samples/write2-test.cpp:45:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v2->read("-2 -1 0 1");
data/exiv2-0.27.3/samples/write2-test.cpp:49:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v3->read("-2/3 -1/3 0/3 1/3");
data/exiv2-0.27.3/samples/write2-test.cpp:53:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v4->read("255 254 253 252");
data/exiv2-0.27.3/samples/write2-test.cpp:196:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v5->read("160 161 162 163");
data/exiv2-0.27.3/samples/xmpsample.cpp:119:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("image/jpeg");
data/exiv2-0.27.3/samples/xmpsample.cpp:124:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("1) The first creator");         // The sequence in which the array
data/exiv2-0.27.3/samples/xmpsample.cpp:125:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("2) The second creator");        // elements are added is their
data/exiv2-0.27.3/samples/xmpsample.cpp:126:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("3) And another one");           // order in the array.
data/exiv2-0.27.3/samples/xmpsample.cpp:131:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("lang=de-DE Hallo, Welt");       // The default doesn't need a
data/exiv2-0.27.3/samples/xmpsample.cpp:132:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    v->read("Hello, World");                 // qualifier
data/exiv2-0.27.3/samples/xmpsample.cpp:160:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("9");
data/exiv2-0.27.3/samples/xmpsample.cpp:162:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("inch");
data/exiv2-0.27.3/samples/xmpsample.cpp:170:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("programmer");
data/exiv2-0.27.3/samples/xmpsample.cpp:174:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("");                                         // Clear the value
data/exiv2-0.27.3/samples/xmpsample.cpp:179:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("Birthday party");
data/exiv2-0.27.3/samples/xmpsample.cpp:181:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("Photographer");
data/exiv2-0.27.3/samples/xmpsample.cpp:184:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("Wedding ceremony");
data/exiv2-0.27.3/samples/xmpsample.cpp:186:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    tv.read("Best man");
data/exiv2-0.27.3/src/actions.cpp:80:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int read(const std::string& path);
data/exiv2-0.27.3/src/actions.cpp:82:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int read(struct tm* tm);
data/exiv2-0.27.3/src/actions.cpp:804:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:841:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ts.read(&tm);
data/exiv2-0.27.3/src/actions.cpp:893:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1214:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1392:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1469:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int rc = value->read(modifyCmd.value_);
data/exiv2-0.27.3/src/actions.cpp:1538:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int rc = value->read(modifyCmd.value_);
data/exiv2-0.27.3/src/actions.cpp:1633:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1769:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1832:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (Params::instance().preserve_) ts.read(path);
data/exiv2-0.27.3/src/actions.cpp:1902:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int Timestamp::read(const std::string& path)
data/exiv2-0.27.3/src/actions.cpp:1913:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int Timestamp::read(struct tm* tm)
data/exiv2-0.27.3/src/asfvideo.cpp:208:14:  [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(str1) != strlen(str2))
data/exiv2-0.27.3/src/asfvideo.cpp:208: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).
        if ( strlen(str1) != strlen(str2))
data/exiv2-0.27.3/src/asfvideo.cpp:211:36:  [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 ( uint64_t i = 0 ; i < strlen(str1); ++i )
data/exiv2-0.27.3/src/asfvideo.cpp:343:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(guidBuf, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:356:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/asfvideo.cpp:378:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:379:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:415:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:420:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);   tempLength = (int)buf.pData_[0];
data/exiv2-0.27.3/src/asfvideo.cpp:422:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, tempLength);
data/exiv2-0.27.3/src/asfvideo.cpp:423:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(toString16(buf));
data/exiv2-0.27.3/src/asfvideo.cpp:440:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:443:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:444:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/asfvideo.cpp:461:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:468:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, length[i]);
data/exiv2-0.27.3/src/asfvideo.cpp:488:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(guidBuf, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:495:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(guidBuf, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:502:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/asfvideo.cpp:508:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/asfvideo.cpp:510:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/asfvideo.cpp:513:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 5);
data/exiv2-0.27.3/src/asfvideo.cpp:515:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:526:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:531:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:546:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:548:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:553:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:556:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:566:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, descLength);
data/exiv2-0.27.3/src/asfvideo.cpp:574:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:584:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, descLength);
data/exiv2-0.27.3/src/asfvideo.cpp:593:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:603:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, descLength);
data/exiv2-0.27.3/src/asfvideo.cpp:612:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 18);
data/exiv2-0.27.3/src/asfvideo.cpp:614:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:624:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:633:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:634:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:636:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:638:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:648:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, nameLength);
data/exiv2-0.27.3/src/asfvideo.cpp:651:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(toString16(buf));
data/exiv2-0.27.3/src/asfvideo.cpp:653:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(guidBuf, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:666:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        io_->read(buf.pData_, dataLength);
data/exiv2-0.27.3/src/asfvideo.cpp:670:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:680:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, nameLength);
data/exiv2-0.27.3/src/asfvideo.cpp:683:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(toString16(buf));
data/exiv2-0.27.3/src/asfvideo.cpp:685:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:688:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/asfvideo.cpp:700:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, dataLength);
data/exiv2-0.27.3/src/asfvideo.cpp:704:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(toString16(buf));
data/exiv2-0.27.3/src/asfvideo.cpp:707:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read( Exiv2::toString( Exiv2::getUShort(buf.pData_, littleEndian)));
data/exiv2-0.27.3/src/asfvideo.cpp:710:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read( Exiv2::toString( Exiv2::getULong( buf.pData_, littleEndian)));
data/exiv2-0.27.3/src/asfvideo.cpp:713:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(Exiv2::toString(getUint64_t(buf)));
data/exiv2-0.27.3/src/asfvideo.cpp:716:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(Exiv2::toString(fileID));
data/exiv2-0.27.3/src/asfvideo.cpp:719:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read( Exiv2::toString(buf.pData_));
data/exiv2-0.27.3/src/asfvideo.cpp:740:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(guidBuf, 16);
data/exiv2-0.27.3/src/asfvideo.cpp:749:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/asfvideo.cpp:753:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4); io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:753:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4); io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/asfvideo.cpp:801:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/basicio.cpp:298:27:  [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).
            namebufPos += strlen(name) + 1;
data/exiv2-0.27.3/src/basicio.cpp:524:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(buf.pData_, buf.size_) != buf.size_) {
data/exiv2-0.27.3/src/basicio.cpp:597:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readCount = src.read(buf, sizeof(buf)))) {
data/exiv2-0.27.3/src/basicio.cpp:992:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DataBuf FileIo::read(long rcount)
data/exiv2-0.27.3/src/basicio.cpp:997:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long readCount = read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/basicio.cpp:1002:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long FileIo::read(byte* buf, long rcount)
data/exiv2-0.27.3/src/basicio.cpp:1015:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return getc(p_->fp_);
data/exiv2-0.27.3/src/basicio.cpp:1274:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readCount = src.read(buf, sizeof(buf)))) {
data/exiv2-0.27.3/src/basicio.cpp:1375:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DataBuf MemIo::read(long rcount)
data/exiv2-0.27.3/src/basicio.cpp:1378:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long readCount = read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/basicio.cpp:1383:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long MemIo::read(byte* buf, long rcount)
data/exiv2-0.27.3/src/basicio.cpp:1458:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            std::cin.read(readBuf, sizeof(readBuf));
data/exiv2-0.27.3/src/basicio.cpp:1542:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                std::cin.read(readBuf, sizeof(readBuf));
data/exiv2-0.27.3/src/basicio.cpp:1789:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            readCount = (size_t) src.read(buf, (long) blockSize);
data/exiv2-0.27.3/src/basicio.cpp:1810:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                readCount = src.read(buf, (long) blockSize);
data/exiv2-0.27.3/src/basicio.cpp:1832:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            src.read(data, dataSize);
data/exiv2-0.27.3/src/basicio.cpp:1844:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DataBuf RemoteIo::read(long rcount)
data/exiv2-0.27.3/src/basicio.cpp:1847:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long readCount = read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/basicio.cpp:1852:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    long RemoteIo::read(byte* buf, long rcount)
data/exiv2-0.27.3/src/basicio.cpp:2674:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long len = file.read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/basicio.cpp:2693:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long len = file.read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/bigtiffimage.cpp:81:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io.read(header, 2);
data/exiv2-0.27.3/src/bigtiffimage.cpp:93:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io.read(version, 2);
data/exiv2-0.27.3/src/bigtiffimage.cpp:105:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int read = io.read(buffer, 4);
data/exiv2-0.27.3/src/bigtiffimage.cpp:107:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read < 4)
data/exiv2-0.27.3/src/bigtiffimage.cpp:116:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                int read = io.read(buffer, 2);
data/exiv2-0.27.3/src/bigtiffimage.cpp:117:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read < 2)
data/exiv2-0.27.3/src/bigtiffimage.cpp:124:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read = io.read(buffer, 2); // null
data/exiv2-0.27.3/src/bigtiffimage.cpp:125:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read < 2)
data/exiv2-0.27.3/src/bigtiffimage.cpp:128:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    read = io.read(buffer, 8);
data/exiv2-0.27.3/src/bigtiffimage.cpp:129:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (read < 8)
data/exiv2-0.27.3/src/bigtiffimage.cpp:246:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            const DataBuf  data  = io.read(dataSize_);        // Read data as raw value. what should be done about it will be decided depending on type
data/exiv2-0.27.3/src/bigtiffimage.cpp:297:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                io.read(buf.pData_, (long) count * size);     // read
data/exiv2-0.27.3/src/bigtiffimage.cpp:378:64:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                    const long read_bytes = io.read(&bytes[0], static_cast<long>(count));
data/exiv2-0.27.3/src/bigtiffimage.cpp:392:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                    io.read(bytes,jump    )     ;  // read
data/exiv2-0.27.3/src/bigtiffimage.cpp:399:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                      io.read(&nikon_bytes.at(0), (long)nikon_bytes.size());
data/exiv2-0.27.3/src/bigtiffimage.cpp:432:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    const DataBuf data = Image::io().read(size);
data/exiv2-0.27.3/src/bmpimage.cpp:109:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, sizeof(buf)) == sizeof(buf)) {
data/exiv2-0.27.3/src/bmpimage.cpp:137:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/cr2header_int.cpp:18:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool Cr2Header::read(const byte* pData, uint32_t size)
data/exiv2-0.27.3/src/cr2header_int.hpp:55:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read(const byte* pData, uint32_t size);
data/exiv2-0.27.3/src/cr2image.cpp:128:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (0 == cr2Header.read(pData, 16)) {
data/exiv2-0.27.3/src/cr2image.cpp:216:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/cr2image.cpp:221:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool rc = header.read(buf, len);
data/exiv2-0.27.3/src/crwimage.cpp:105:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(file.pData_,file.size_);
data/exiv2-0.27.3/src/crwimage.cpp:124:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/crwimage.cpp:150:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        head->read(pData, size);
data/exiv2-0.27.3/src/crwimage.cpp:174:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            head->read(pData, size);
data/exiv2-0.27.3/src/crwimage.cpp:199:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(tmpBuf, 14);
data/exiv2-0.27.3/src/crwimage_int.cpp:197:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void CiffHeader::read(const byte* pData, uint32_t size)
data/exiv2-0.27.3/src/crwimage_int.cpp:225:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void CiffComponent::read(const byte* pData,
data/exiv2-0.27.3/src/crwimage_int.cpp:322:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            m->read(pData, size, o, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:540:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value->read(pData_, size_, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:834:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        value1->read(ciffComponent.pData(), ++i, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:845:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        value2->read(ciffComponent.pData() + j, i - j + 1, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:877:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value.read(ciffComponent.pData() + c*2, n*2, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:911:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        v.read(ciffComponent.pData(), 8, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:921:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value.read(std::string(s));
data/exiv2-0.27.3/src/crwimage_int.cpp:937:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        value1.read(ciffComponent.pData(), 4, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:942:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        value2.read(ciffComponent.pData() + 4, 4, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.cpp:989:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value->read(ciffComponent.pData(), size, byteOrder);
data/exiv2-0.27.3/src/crwimage_int.hpp:152:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        void read(const byte* pData,
data/exiv2-0.27.3/src/crwimage_int.hpp:465:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        void read(const byte* pData, uint32_t size);
data/exiv2-0.27.3/src/epsimage.cpp:1172:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        DataBuf buf = iIo.read(bufSize);
data/exiv2-0.27.3/src/exif.cpp:311:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return value_->read(value);
data/exiv2-0.27.3/src/exif.cpp:920:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return io.read((long) io.size());
data/exiv2-0.27.3/src/exiv2.cpp:456:25:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    bool bResult = std::equal(ending.rbegin(), ending.rend(), value.rbegin());
data/exiv2-0.27.3/src/futils.cpp:98: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).
        char* buf  = new char[strlen(str) * 3 + 1];
data/exiv2-0.27.3/src/futils.cpp:117: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).
        char* buf  = new char [(strlen(str) + 1)];
data/exiv2-0.27.3/src/gifimage.cpp:91:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, sizeof(buf)) == sizeof(buf))
data/exiv2-0.27.3/src/gifimage.cpp:122:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/http.cpp:49:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define  read     _read
data/exiv2-0.27.3/src/http.cpp:324: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).
                        body   = blankLinePos - buffer + strlen(blankLines[b]);
data/exiv2-0.27.3/src/image.cpp:351:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            const long bytesRead = io.read(dir.pData_, 2);
data/exiv2-0.27.3/src/image.cpp:379:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io.read(dir.pData_, 12);
data/exiv2-0.27.3/src/image.cpp:424:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io.read(buf.pData_,count*size);// read
data/exiv2-0.27.3/src/image.cpp:479:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        const long read_bytes = io.read(&bytes[0], count);
data/exiv2-0.27.3/src/image.cpp:491:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        io.read(bytes,jump    )     ;  // read
data/exiv2-0.27.3/src/image.cpp:496:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io.read(bytes,count-jump)        ;  // read
data/exiv2-0.27.3/src/image.cpp:519:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io.read(dir.pData_, 4);
data/exiv2-0.27.3/src/image.cpp:539:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io.read(dir.pData_,  8);
data/exiv2-0.27.3/src/image_int.cpp:36: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).
            size_t need = std::strlen(format)*8;  // initial guess
data/exiv2-0.27.3/src/ini.cpp:45: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).
    char* p = s + strlen(s);
data/exiv2-0.27.3/src/ini.cpp:82:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(dest, src, size);
data/exiv2-0.27.3/src/iptc.cpp:263:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return value_->read(value);
data/exiv2-0.27.3/src/iptc.cpp:564:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int rc = value->read(data, sizeData, Exiv2::bigEndian);
data/exiv2-0.27.3/src/iptc.cpp:572:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            rc = value->read(data, sizeData, Exiv2::bigEndian);
data/exiv2-0.27.3/src/jp2image.cpp:231:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (io_->read((byte*)&box, sizeof(box)) == sizeof(box))
data/exiv2-0.27.3/src/jp2image.cpp:261:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    while (io_->read((byte*)&subBox, sizeof(subBox)) == sizeof(subBox) && subBox.length )
data/exiv2-0.27.3/src/jp2image.cpp:287:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read(data.pData_,data.size_);
data/exiv2-0.27.3/src/jp2image.cpp:310:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read((byte*)&ihdr, sizeof(ihdr));
data/exiv2-0.27.3/src/jp2image.cpp:338:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (io_->read((byte*)&uuid, sizeof(uuid)) == sizeof(uuid))
data/exiv2-0.27.3/src/jp2image.cpp:352:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            bufRead = io_->read(rawData.pData_, rawData.size_);
data/exiv2-0.27.3/src/jp2image.cpp:406:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            bufRead = io_->read(rawData.pData_, rawData.size_);
data/exiv2-0.27.3/src/jp2image.cpp:425:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            bufRead = io_->read(rawData.pData_, rawData.size_);
data/exiv2-0.27.3/src/jp2image.cpp:495:71:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (box.length && box.type != kJp2BoxTypeClose && io_->read((byte*)&box, sizeof(box)) == sizeof(box))
data/exiv2-0.27.3/src/jp2image.cpp:516:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        while (io_->read((byte*)&subBox, sizeof(subBox)) == sizeof(subBox) &&
data/exiv2-0.27.3/src/jp2image.cpp:528:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read(data.pData_, data.size_);
data/exiv2-0.27.3/src/jp2image.cpp:557:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        if (io_->read((byte*)&uuid, sizeof(uuid)) == sizeof(uuid)) {
data/exiv2-0.27.3/src/jp2image.cpp:577:49:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            long bufRead = io_->read(rawData.pData_, rawData.size_);
data/exiv2-0.27.3/src/jp2image.cpp:754:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            long bufRead = io_->read(bheaderBuf.pData_, bheaderBuf.size_);
data/exiv2-0.27.3/src/jp2image.cpp:785:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = io_->read(boxBuf.pData_ + 8, box.length - 8); // Extract box data.
data/exiv2-0.27.3/src/jp2image.cpp:962:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/jpgimage.cpp:116: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).
            assert(strlen(irbId_[i]) == 4);
data/exiv2-0.27.3/src/jpgimage.cpp:372:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/jpgimage.cpp:386:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(rawExif.pData_, rawExif.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:408:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(xmpPacket.pData_, xmpPacket.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:428:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(psData.pData_, psData.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:453:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(comment.pData_, comment.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:495:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read( icc.pData_,icc.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:646:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bufRead = io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/jpgimage.cpp:673:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read(&xmp[0], size);
data/exiv2-0.27.3/src/jpgimage.cpp:708:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read(icc.pData_, icc.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:760:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            io_->read(exif, size);
data/exiv2-0.27.3/src/jpgimage.cpp:889:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:963:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/jpgimage.cpp:982:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(rawExif.pData_, rawExif.size_);
data/exiv2-0.27.3/src/jpgimage.cpp:1012:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(psData.pData_, size - 16);
data/exiv2-0.27.3/src/jpgimage.cpp:1085:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/jpgimage.cpp:1275:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, size + 2);
data/exiv2-0.27.3/src/jpgimage.cpp:1299:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readSize = io_->read(buf.pData_, buf.size_))) {
data/exiv2-0.27.3/src/jpgimage.cpp:1366:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(tmpBuf, 2);
data/exiv2-0.27.3/src/jpgimage.cpp:1418:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(tmpBuf, 7);
data/exiv2-0.27.3/src/makernote_int.cpp:241:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:258:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool OlympusMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:290:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:312:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool Olympus2MnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:345:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), byteOrder_);
data/exiv2-0.27.3/src/makernote_int.cpp:372:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool FujiMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:407:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:424:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool Nikon2MnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:485:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool Nikon3MnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:494:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!th.read(buf_.pData_ + 10, 8)) return false;
data/exiv2-0.27.3/src/makernote_int.cpp:530:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:547:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool PanasonicMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:577:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:599:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool PentaxDngMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:631:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:648:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool PentaxMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:671:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(0, 0, invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:684:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool SamsungMnHeader::read(const byte* /*pData*/,
data/exiv2-0.27.3/src/makernote_int.cpp:712:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature1_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:729:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool SigmaMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:760:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder);
data/exiv2-0.27.3/src/makernote_int.cpp:777:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool SonyMnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:808:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(signature_, sizeOfSignature(), invalidByteOrder );
data/exiv2-0.27.3/src/makernote_int.cpp:830:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool Casio2MnHeader::read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.cpp:940:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            || !tiffHeader.read(pData + 10, size - 10)
data/exiv2-0.27.3/src/makernote_int.cpp:1134:52:  [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).
                   && 0 == strncmp(key.ver_, ver_, strlen(ver_))
data/exiv2-0.27.3/src/makernote_int.hpp:146:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:194:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:225:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:257:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:293:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:325:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:361:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:393:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:425:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:454:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:479:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:512:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/makernote_int.hpp:544:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData,
data/exiv2-0.27.3/src/matroskavideo.cpp:521:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf, 1);
data/exiv2-0.27.3/src/matroskavideo.cpp:529:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (sz > 0) io_->read(buf + 1, sz - 1);
data/exiv2-0.27.3/src/matroskavideo.cpp:545:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf, 1);
data/exiv2-0.27.3/src/matroskavideo.cpp:548:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (sz > 0) io_->read(buf + 1, sz - 1);
data/exiv2-0.27.3/src/matroskavideo.cpp:570:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf2.pData_,s);
data/exiv2-0.27.3/src/matroskavideo.cpp:752:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(tmpBuf, 4);
data/exiv2-0.27.3/src/mrwimage.cpp:113:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(tmp, len);
data/exiv2-0.27.3/src/mrwimage.cpp:119:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(tmp, len);
data/exiv2-0.27.3/src/mrwimage.cpp:131:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(tmp, len);
data/exiv2-0.27.3/src/mrwimage.cpp:143:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/mrwimage.cpp:175:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/orfimage.cpp:140:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (0 == orfHeader.read(pData, 8)) {
data/exiv2-0.27.3/src/orfimage.cpp:226:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/orfimage.cpp:231:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool rc = orfHeader.read(buf, len);
data/exiv2-0.27.3/src/orfimage_int.cpp:16:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool OrfHeader::read(const byte* pData, uint32_t size)
data/exiv2-0.27.3/src/orfimage_int.hpp:59:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read(const byte* pData, uint32_t size);
data/exiv2-0.27.3/src/pgfimage.cpp:148:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long bufRead = io_->read(imgData.pData_, imgData.size_);
data/exiv2-0.27.3/src/pgfimage.cpp:208:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        DataBuf imgBuf   = img->io().read(imgSize);
data/exiv2-0.27.3/src/pgfimage.cpp:248:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readSize=io_->read(buf.pData_, buf.size_)))
data/exiv2-0.27.3/src/pgfimage.cpp:275:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long bufRead = iIo.read(buffer.pData_, buffer.size_);
data/exiv2-0.27.3/src/pgfimage.cpp:292:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long bufRead = iIo.read(header.pData_, header.size_);
data/exiv2-0.27.3/src/pgfimage.cpp:313:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = iIo.read(&header.pData_[16], 256*3);
data/exiv2-0.27.3/src/pgfimage.cpp:337:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/pngimage.cpp:64:16:  [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).
        assert(strlen(str) <= length);
data/exiv2-0.27.3/src/pngimage.cpp:250:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                long bufRead = io_->read(cheaderBuf.pData_, cheaderBuf.size_);
data/exiv2-0.27.3/src/pngimage.cpp:270:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                bufRead = io_->read(buff.pData_,dataOffset);
data/exiv2-0.27.3/src/pngimage.cpp:290:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    bufRead = io_->read(checksum,4);
data/exiv2-0.27.3/src/pngimage.cpp:322:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    bufRead = io_->read(data,dataOffset);
data/exiv2-0.27.3/src/pngimage.cpp:325:56:  [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).
                    uint32_t  name_l = (uint32_t) std::strlen((const char*)data)+1; // leading string length
data/exiv2-0.27.3/src/pngimage.cpp:402:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        long bufRead = io.read(buffer.pData_, buffer.size_);
data/exiv2-0.27.3/src/pngimage.cpp:543:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            long bufRead = io_->read(cheaderBuf.pData_, cheaderBuf.size_);
data/exiv2-0.27.3/src/pngimage.cpp:556:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            bufRead = io_->read(chunkBuf.pData_ + 8, dataOffset + 4); // Extract chunk data + CRC
data/exiv2-0.27.3/src/pngimage.cpp:737:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/psdimage.cpp:175:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, 26) != 26)
data/exiv2-0.27.3/src/psdimage.cpp:184:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, 4) != 4)
data/exiv2-0.27.3/src/psdimage.cpp:197:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, 4) != 4)
data/exiv2-0.27.3/src/psdimage.cpp:208:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (io_->read(buf, 8) != 8)
data/exiv2-0.27.3/src/psdimage.cpp:228:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (io_->read(buf, 4) != 4)
data/exiv2-0.27.3/src/psdimage.cpp:256:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(rawIPTC.pData_, rawIPTC.size_);
data/exiv2-0.27.3/src/psdimage.cpp:270:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(rawExif.pData_, rawExif.size_);
data/exiv2-0.27.3/src/psdimage.cpp:286:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(xmpPacket.pData_, xmpPacket.size_);
data/exiv2-0.27.3/src/psdimage.cpp:319:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (io_->read(buf, 28) != 28)
data/exiv2-0.27.3/src/psdimage.cpp:391:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(psd_head, 26) != 26) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:397:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, 4) != 4) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:413:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (io_->read(lbuf.pData_, toRead) != toRead) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:422:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, 4) != 4) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:443:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (io_->read(buf, 8) != 8) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:459:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (   io_->read(resName.pData_, adjResourceNameLen)
data/exiv2-0.27.3/src/psdimage.cpp:463:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (io_->read(buf, 4) != 4) throw Error(kerNotAnImage, "Photoshop");
data/exiv2-0.27.3/src/psdimage.cpp:519:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    if (io_->read(lbuf.pData_, toRead) != toRead) {
data/exiv2-0.27.3/src/psdimage.cpp:557:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((readSize=io_->read(lbuf.pData_, lbuf.size_))) {
data/exiv2-0.27.3/src/psdimage.cpp:707:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/quicktimevideo.cpp:659:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:667:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:726:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, size);
data/exiv2-0.27.3/src/quicktimevideo.cpp:734:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, size);
data/exiv2-0.27.3/src/quicktimevideo.cpp:742:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, size);
data/exiv2-0.27.3/src/quicktimevideo.cpp:747:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:748:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:767:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:769:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:772:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:785:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:787:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:790:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:806:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->seek(static_cast<long>(4), BasicIo::cur); io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:810:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:810:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:813:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:813:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:820:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:820:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:823:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:823:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:830:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:830:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:833:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:833:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2); io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:847:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:851:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 24);
data/exiv2-0.27.3/src/quicktimevideo.cpp:853:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 14);
data/exiv2-0.27.3/src/quicktimevideo.cpp:855:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:857:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:857:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:859:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:859:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:861:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 10); io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:861:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 10); io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:865:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:865:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:868:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 48);
data/exiv2-0.27.3/src/quicktimevideo.cpp:870:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:891:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:896:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:919:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, size - 8);
data/exiv2-0.27.3/src/quicktimevideo.cpp:924:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:935:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:936:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, size-12);
data/exiv2-0.27.3/src/quicktimevideo.cpp:956:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:960:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:964:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:971:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);   xmpData_["Xmp.video.PictureControlVersion"]  = Exiv2::toString(buf.pData_);
data/exiv2-0.27.3/src/quicktimevideo.cpp:972:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 20);  xmpData_["Xmp.video.PictureControlName"]     = Exiv2::toString(buf.pData_);
data/exiv2-0.27.3/src/quicktimevideo.cpp:973:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 20);  xmpData_["Xmp.video.PictureControlBase"]     = Exiv2::toString(buf.pData_);
data/exiv2-0.27.3/src/quicktimevideo.cpp:974:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);   std::memset(buf.pData_, 0x0, buf.size_);
data/exiv2-0.27.3/src/quicktimevideo.cpp:976:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:983:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:988:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:995:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1002:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1009:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1016:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1019:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1026:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1033:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);   xmpData_["Xmp.video.ToningSaturation"] = (int)buf.pData_[0];
data/exiv2-0.27.3/src/quicktimevideo.cpp:1043:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);   xmpData_["Xmp.video.TimeZone"] = Exiv2::getShort(buf.pData_, bigEndian);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1044:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1049:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1069:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, dataLength);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1079:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1092:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, dataLength - 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1097:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1110:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, dataLength - 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1115:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1116:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1129:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, dataLength - 8);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1134:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1135:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf2.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1148:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, dataLength - 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1161:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1163:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1164:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1165:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1185:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1186:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1192:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1195:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1206:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1207:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1225:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1231:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1256:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, static_cast<long>(size % 4)); //cause size is so small, this cast should be right.
data/exiv2-0.27.3/src/quicktimevideo.cpp:1264:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1270:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1294:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 3); size -= 3;
data/exiv2-0.27.3/src/quicktimevideo.cpp:1297:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 32); size -= 32;
data/exiv2-0.27.3/src/quicktimevideo.cpp:1304:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, static_cast<long>(size % 4));
data/exiv2-0.27.3/src/quicktimevideo.cpp:1311:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1312:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1330:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1345:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size % 2);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1358:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1401:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1414:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    v->read(exvGettext(td->label_));
data/exiv2-0.27.3/src/quicktimevideo.cpp:1416:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    v->read(Exiv2::toString(buf.pData_));
data/exiv2-0.27.3/src/quicktimevideo.cpp:1421:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size%4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1431:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1480:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size%4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1490:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1555:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size%4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1564:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1607:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size%4);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1644:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/quicktimevideo.cpp:1645:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/rafimage.cpp:120:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(magicdata, 16);
data/exiv2-0.27.3/src/rafimage.cpp:131:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(data1, 4);
data/exiv2-0.27.3/src/rafimage.cpp:142:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(data2, 8);
data/exiv2-0.27.3/src/rafimage.cpp:153:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(camdata, 32);
data/exiv2-0.27.3/src/rafimage.cpp:164:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(dir_version, 4);
data/exiv2-0.27.3/src/rafimage.cpp:175:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(unknown, 20);
data/exiv2-0.27.3/src/rafimage.cpp:178:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(jpg_img_offset, 4);
data/exiv2-0.27.3/src/rafimage.cpp:180:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(jpg_img_length, 4);
data/exiv2-0.27.3/src/rafimage.cpp:201:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(cfa_header_offset, 4);
data/exiv2-0.27.3/src/rafimage.cpp:203:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(cfa_header_length, 4);
data/exiv2-0.27.3/src/rafimage.cpp:224:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(cfa_offset, 4);
data/exiv2-0.27.3/src/rafimage.cpp:226:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(cfa_length, 4);
data/exiv2-0.27.3/src/rafimage.cpp:248:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/rafimage.cpp:258:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/rafimage.cpp:268:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/rafimage.cpp:296:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(jpg_img_offset, 4) != 4) throw Error(kerFailedToReadImageData);
data/exiv2-0.27.3/src/rafimage.cpp:298:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(jpg_img_length, 4) != 4) throw Error(kerFailedToReadImageData);
data/exiv2-0.27.3/src/rafimage.cpp:318:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, buf.size_);
data/exiv2-0.27.3/src/rafimage.cpp:356:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/riffvideo.cpp:64:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read(const byte* pData, uint32_t size);
data/exiv2-0.27.3/src/riffvideo.cpp:78:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool DummyTiffHeader::read(const byte* /*pData*/, uint32_t /*size*/)
data/exiv2-0.27.3/src/riffvideo.cpp:547:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(data, RIFF_TAG_SIZE * 2);
data/exiv2-0.27.3/src/riffvideo.cpp:566:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(chunkId.pData_, RIFF_TAG_SIZE);
data/exiv2-0.27.3/src/riffvideo.cpp:567:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(size_buff, RIFF_TAG_SIZE);
data/exiv2-0.27.3/src/riffvideo.cpp:570:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/riffvideo.cpp:623:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:626:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:627:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:642:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:652:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:731:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/riffvideo.cpp:742:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                 io_->read(buf.pData_, size - 4);
data/exiv2-0.27.3/src/riffvideo.cpp:776:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, size);
data/exiv2-0.27.3/src/riffvideo.cpp:790:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:795:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:798:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:800:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:801:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:814:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:827:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:834:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4); tempSize -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:838:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:839:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf2.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:846:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:848:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:860:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        io_->read(buf.pData_, dataSize);
data/exiv2-0.27.3/src/riffvideo.cpp:866:75:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                            std::memset(buf.pData_, 0x0, buf.size_); io_->read(buf.pData_, 1);
data/exiv2-0.27.3/src/riffvideo.cpp:877:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:879:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:891:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, dataSize);
data/exiv2-0.27.3/src/riffvideo.cpp:944:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:950:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:953:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:957:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4); size -= 4;
data/exiv2-0.27.3/src/riffvideo.cpp:962:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, infoSize);
data/exiv2-0.27.3/src/riffvideo.cpp:993:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:998:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 26);
data/exiv2-0.27.3/src/riffvideo.cpp:1001:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 50);
data/exiv2-0.27.3/src/riffvideo.cpp:1005:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 8);
data/exiv2-0.27.3/src/riffvideo.cpp:1011:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 26);
data/exiv2-0.27.3/src/riffvideo.cpp:1014:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 26);
data/exiv2-0.27.3/src/riffvideo.cpp:1020:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1024:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1025:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            tv.read(Exiv2::toString(Exiv2::getLong(buf.pData_, littleEndian)));
data/exiv2-0.27.3/src/riffvideo.cpp:1028:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, 4);
data/exiv2-0.27.3/src/riffvideo.cpp:1047:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, size);
data/exiv2-0.27.3/src/riffvideo.cpp:1067:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1109:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1117:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1173:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1180:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize); break;
data/exiv2-0.27.3/src/riffvideo.cpp:1182:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize); break;
data/exiv2-0.27.3/src/riffvideo.cpp:1184:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1187:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1190:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1193:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1196:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1199:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1202:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1211:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, bufMinSize);
data/exiv2-0.27.3/src/riffvideo.cpp:1226:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1254:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    io_->read(buf.pData_, 2);
data/exiv2-0.27.3/src/riffvideo.cpp:1321:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/rw2image.cpp:260:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/rw2image.cpp:265:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool rc = header.read(buf, len);
data/exiv2-0.27.3/src/tags.cpp:99:13:  [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(voc_) > key.size()) return false;
data/exiv2-0.27.3/src/tags.cpp:100:61:  [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).
        return 0 == strcmp(voc_, key.c_str() + key.size() - strlen(voc_));
data/exiv2-0.27.3/src/tgaimage.cpp:113:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (io_->read(buf, sizeof(buf)) == sizeof(buf))
data/exiv2-0.27.3/src/tgaimage.cpp:161:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, sizeof(buf));
data/exiv2-0.27.3/src/tiffcomposite_int.cpp:58:59:  [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).
                   || 0 == strncmp(make_, key.m_.c_str(), strlen(make_)))
data/exiv2-0.27.3/src/tiffcomposite_int.cpp:544:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return pHeader_->read(pData, size, byteOrder);
data/exiv2-0.27.3/src/tiffimage.cpp:223:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (0 == tiffHeader.read(pData, 8)) {
data/exiv2-0.27.3/src/tiffimage.cpp:323:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, len);
data/exiv2-0.27.3/src/tiffimage.cpp:328:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool rc = tiffHeader.read(buf, len);
data/exiv2-0.27.3/src/tiffimage_int.cpp:1786:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
data/exiv2-0.27.3/src/tiffimage_int.cpp:1849:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool TiffHeaderBase::read(const byte* pData, uint32_t size)
data/exiv2-0.27.3/src/tiffimage_int.hpp:84:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual bool read(const byte* pData, uint32_t size);
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:532:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                v->read(s.str());
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:660:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value->read(buf.pData_, buf.size_, byteOrder_);
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:674:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                value->read(irbBuf.pData_, irbBuf.size_, invalidByteOrder);
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:704:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            value->read(reinterpret_cast<const byte*>(&xmpPacket[0]),
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:1632:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            v->read(pData, size, byteOrder());
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:1639:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            v->read(buffer,isize, byteOrder());
data/exiv2-0.27.3/src/tiffvisitor_int.cpp:1739:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        v->read(pData, size, bo);
data/exiv2-0.27.3/src/value.cpp:206:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(buf, len, byteOrder);
data/exiv2-0.27.3/src/value.cpp:218:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int DataValue::read(const byte* buf, long len, ByteOrder /*byteOrder*/)
data/exiv2-0.27.3/src/value.cpp:225:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int DataValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:301:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(buf);
data/exiv2-0.27.3/src/value.cpp:321:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int StringValueBase::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:327:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int StringValueBase::read(const byte* buf, long len, ByteOrder /*byteOrder*/)
data/exiv2-0.27.3/src/value.cpp:410:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int AsciiValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:485:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(comment);
data/exiv2-0.27.3/src/value.cpp:492:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int CommentValue::read(const std::string& comment)
data/exiv2-0.27.3/src/value.cpp:517:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return StringValueBase::read(code + c);
data/exiv2-0.27.3/src/value.cpp:520:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int CommentValue::read(const byte* buf, long len, ByteOrder byteOrder)
data/exiv2-0.27.3/src/value.cpp:523:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return StringValueBase::read(buf, len, byteOrder);
data/exiv2-0.27.3/src/value.cpp:683:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int XmpValue::read(const byte* buf,
data/exiv2-0.27.3/src/value.cpp:688:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read(s);
data/exiv2-0.27.3/src/value.cpp:706:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(buf);
data/exiv2-0.27.3/src/value.cpp:709:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int XmpTextValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:808:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int XmpArrayValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:868:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(buf);
data/exiv2-0.27.3/src/value.cpp:871:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int LangAltValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:978:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int DateValue::read(const byte* buf, long len, ByteOrder /*byteOrder*/)
data/exiv2-0.27.3/src/value.cpp:1001:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int DateValue::read(const std::string& buf)
data/exiv2-0.27.3/src/value.cpp:1114:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int TimeValue::read(const byte* buf, long len, ByteOrder /*byteOrder*/)
data/exiv2-0.27.3/src/value.cpp:1137:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int TimeValue::read(const std::string& buf)
data/exiv2-0.27.3/src/version.cpp:267:39:  [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  ( edition ) sprintf(version+::strlen(version)," (%s/%s)",editions[edition],bits==64?"x64":"x86");
data/exiv2-0.27.3/src/webpimage.cpp:69:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      const long nread = iIo.read(buf, rcount);
data/exiv2-0.27.3/src/webpimage.cpp:151:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        io_->read(data, WEBP_TAG_SIZE * 3);
data/exiv2-0.27.3/src/webpimage.cpp:191:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(chunkId.pData_, WEBP_TAG_SIZE);
data/exiv2-0.27.3/src/webpimage.cpp:192:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(size_buff, WEBP_TAG_SIZE);
data/exiv2-0.27.3/src/webpimage.cpp:195:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/webpimage.cpp:197:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ( payload.size_ % 2 ) io_->read(&c,1);
data/exiv2-0.27.3/src/webpimage.cpp:315:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(chunkId.pData_, 4);
data/exiv2-0.27.3/src/webpimage.cpp:316:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(size_buff, 4);
data/exiv2-0.27.3/src/webpimage.cpp:321:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(payload.pData_, size);
data/exiv2-0.27.3/src/webpimage.cpp:434:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            io_->read(data, WEBP_TAG_SIZE * 2);
data/exiv2-0.27.3/src/webpimage.cpp:453:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(chunkId.pData_, WEBP_TAG_SIZE);
data/exiv2-0.27.3/src/webpimage.cpp:454:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(size_buff, WEBP_TAG_SIZE);
data/exiv2-0.27.3/src/webpimage.cpp:457:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                io_->read(payload.pData_, payload.size_);
data/exiv2-0.27.3/src/webpimage.cpp:741:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(riff, len);
data/exiv2-0.27.3/src/webpimage.cpp:742:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(data, len);
data/exiv2-0.27.3/src/webpimage.cpp:743:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(webp, len);
data/exiv2-0.27.3/src/xmp.cpp:308:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return p_->value_->read(value);
data/exiv2-0.27.3/src/xmp.cpp:682:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        val->read(propValue);
data/exiv2-0.27.3/src/xmp.cpp:699:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                val->read(propValue);
data/exiv2-0.27.3/src/xmpsidecar.cpp:46:41:  [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 long  xmlHdrCnt = (long) std::strlen(xmlHeader); // without the trailing 0-character
data/exiv2-0.27.3/src/xmpsidecar.cpp:95:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((l = io_->read(buf, len)) > 0) {
data/exiv2-0.27.3/src/xmpsidecar.cpp:220:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf, xmlHdrCnt + 1);
data/exiv2-0.27.3/src/xmpsidecar.cpp:228:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        iIo.read(buf + xmlHdrCnt + 1, len - xmlHdrCnt - 1);
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:28:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, dateValue.read(date, 8));
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:38:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, dateValue.read(date, 9));
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:45:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, dateValue.read(date, 8));
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:53:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, dateValue.read(date));
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:63:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, dateValue.read(date));
data/exiv2-0.27.3/unitTests/test_DateValue.cpp:70:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, dateValue.read(date));
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:33:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, value.read(hms));
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:45:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, value.read(hms));
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:57:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, value.read(hms));
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:70:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(0, value.read(hms));
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:81:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("aa:55:02")); // String with non-digit chars
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:82:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("25:55:02")); // Hours >= 24
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:83:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("23:65:02")); // Minutes >= 60
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:84:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("23:55:62")); // Seconds >= 60
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:85:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("23:55:02+25:04")); // tzHour >= 24
data/exiv2-0.27.3/unitTests/test_TimeValue.cpp:86:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(1, value.read("23:55:02+04:66")); // tzMinutes >= 60
data/exiv2-0.27.3/unitTests/test_basicio.cpp:24:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(io.read(tmp, sizeTmp), sizeTmp);
data/exiv2-0.27.3/unitTests/test_basicio.cpp:39:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(io.read(tmp, sizeof(tmp)), 0);
data/exiv2-0.27.3/unitTests/test_basicio.cpp:44:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(io.read(tmp, sizeof(tmp)), 0);
data/exiv2-0.27.3/unitTests/test_basicio.cpp:62:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(io.read(tmp, sizeTmp), sizeTmp);
data/exiv2-0.27.3/unitTests/test_basicio.cpp:80:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_EQ(io.read(tmp, sizeTmp), sizeTmp);
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:30:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_TRUE(header.read(cr2LittleEndian, 16));
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:36:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(NULL, 16));
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:42:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(cr2LittleEndian, 15));
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:43:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(cr2LittleEndian, 0));
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:51:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(bufferInvalidByteOrder, 16));
data/exiv2-0.27.3/unitTests/test_cr2header_int.cpp:59:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(bufferInvalidTag, 16));
data/exiv2-0.27.3/unitTests/test_slice.cpp:329:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ASSERT_TRUE(std::equal(is.begin(), is.end(), "is"));
data/exiv2-0.27.3/unitTests/test_slice.cpp:332:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ASSERT_TRUE(std::equal(sl_this.begin(), sl_this.end(), "this"));
data/exiv2-0.27.3/unitTests/test_slice.cpp:335:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ASSERT_TRUE(std::equal(sl_sentence.begin(), sl_sentence.end(), "sentence"));
data/exiv2-0.27.3/unitTests/test_slice.cpp:338:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    ASSERT_TRUE(std::equal(sl_full.begin(), sl_full.end(), str.c_str()));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:33:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_TRUE(header.read(tiffLittleEndian, 8));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:38:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(NULL, 8));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:43:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(NULL, 7));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:44:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(NULL, 9));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:50:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(bufferInvalidByteOrder, 8));
data/exiv2-0.27.3/unitTests/test_tiffheader.cpp:56:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ASSERT_FALSE(header.read(bufferInvalidTag, 8));
data/exiv2-0.27.3/xmpsdk/src/ExpatAdapter.cpp:198:18:  [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 sepPos = strlen(fullName);
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.cpp:195:46:  [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).
		VerifySimpleXMLName ( colonPos+1, colonPos+strlen(colonPos) );
data/exiv2-0.27.3/xmpsdk/src/XMPCore_Impl.hpp:374: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).
	XMP_StringLen prefixLen = std::strlen(prefix);
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-GetSet.cpp:264: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).
		const size_t genericLen = strlen ( genericLang );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1008: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).
				xmlParser->ParseBuffer ( replacement, strlen ( replacement ), false );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1083:54:  [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 ( xmpSize == kXMP_UseNullTermination ) xmpSize = strlen ( buffer );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Parse.cpp:1101: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).
			fwrite ( message, 1, strlen(message), parser.parseLog );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:90:44:  [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).
		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:91: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).
		outputLen += 2 * (indent*indentLen + strlen(kRDF_ValueStart) + 2);		// The rdf:value tags.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:102: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).
		outputLen += 2 * (indent*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:105:44:  [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).
		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_BagStart) + 2);		// The rdf:Bag/Seq/Alt tags.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:106: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).
		outputLen += 2 * currNode->children.size() * (strlen(kRDF_ItemStart) + 2);	// The rdf:li tags, indent counted in children.
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1060: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).
	const size_t indentLen   = strlen ( indentStr );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1070:26:  [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 outputLen = 2 * (strlen(kPacketHeader) + strlen(kRDF_XMPMetaStart) + strlen(kRDF_RDFStart) + 3*baseIndent*indentLen);
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1070:50:  [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 outputLen = 2 * (strlen(kPacketHeader) + strlen(kRDF_XMPMetaStart) + strlen(kRDF_RDFStart) + 3*baseIndent*indentLen);
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1070:78:  [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 outputLen = 2 * (strlen(kPacketHeader) + strlen(kRDF_XMPMetaStart) + strlen(kRDF_RDFStart) + 3*baseIndent*indentLen);
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1074: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).
		outputLen += 2*(baseIndent+2)*indentLen + strlen(kRDF_SchemaStart) + treeNameLen + strlen(kRDF_SchemaEnd) + 2;
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1074:86:  [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).
		outputLen += 2*(baseIndent+2)*indentLen + strlen(kRDF_SchemaStart) + treeNameLen + strlen(kRDF_SchemaEnd) + 2;
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1141:21:  [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).
		tailStr.reserve ( strlen(kPacketTrailer) + (strlen(indentStr) * baseIndent) );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1141:47:  [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).
		tailStr.reserve ( strlen(kPacketTrailer) + (strlen(indentStr) * baseIndent) );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta-Serialize.cpp:1233:23:  [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 newlineLen = strlen ( newline );
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:80:68:  [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).
#define OutProcLiteral(lit)	{ status = (*outProc) ( refCon, (lit), strlen(lit) );  if ( status != 0 ) goto EXIT; }
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:85:48:  [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).
							  status = (*outProc) ( refCon, buffer, strlen(buffer) );  if ( status != 0 ) goto EXIT; }
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:88:48:  [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).
							  status = (*outProc) ( refCon, buffer, strlen(buffer) );  if ( status != 0 ) goto EXIT; }
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:91:48:  [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).
							  status = (*outProc) ( refCon, buffer, strlen(buffer) );  if ( status != 0 ) goto EXIT; }
data/exiv2-0.27.3/xmpsdk/src/XMPMeta.cpp:95:48:  [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).
							  status = (*outProc) ( refCon, buffer, strlen(buffer) );  if ( status != 0 ) goto EXIT; }
data/exiv2-0.27.3/xmpsdk/src/XMPUtils-FileInfo.cpp:118: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).
		XMP_Assert ( (offset + *charSize) <= strlen(fullString) );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils-FileInfo.cpp:800: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).
	strLen = strlen ( separator );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils-FileInfo.cpp:817: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).
	strLen = strlen ( quotes );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils-FileInfo.cpp:929:18:  [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 endPos = strlen ( catedStr );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:423: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).
		for ( size_t i = strlen(buffer)-1; buffer[i] == '0'; --i ) buffer[i] = 0;	// Trim excess digits.
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:715: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).
	XMP_StringLen reserveLen = strlen(arrayName) + 2 + 32;	// Room plus padding.
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:731:14:  [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).
	*pathSize = strlen ( *fullPath );	// ! Don't use sComposedPath->size()!
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:763: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).
	XMP_StringLen reserveLen = strlen(structName) + fieldPath[kRootPropStep].step.size() + 1;
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:802: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).
	XMP_StringLen reserveLen = strlen(propName) + qualPath[kRootPropStep].step.size() + 2;
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:841: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).
	XMP_StringLen reserveLen = strlen(arrayName) + langName.size() + 14;
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:884: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).
	XMP_StringLen reserveLen = strlen(arrayName) + fieldPath[kRootPropStep].step.size() + strlen(fieldValue) + 5;
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:884:88:  [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).
	XMP_StringLen reserveLen = strlen(arrayName) + fieldPath[kRootPropStep].step.size() + strlen(fieldValue) + 5;
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:914: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).
		*strSize  = strlen ( kXMP_TrueStr );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:917: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).
		*strSize  = strlen ( kXMP_FalseStr );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:945:14:  [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).
	*strSize  = strlen ( *strValue );	// ! Don't use sConvertedValue->size()!
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:974:14:  [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).
	*strSize  = strlen ( *strValue );	// ! Don't use sConvertedValue->size()!
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1003:14:  [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).
	*strSize  = strlen ( *strValue );	// ! Don't use sConvertedValue->size()!
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1303:10:  [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).
					  ((strlen(strValue) >= 2) && (strValue[1] == ':')) ||
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1304:10:  [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).
					  ((strlen(strValue) >= 3) && (strValue[2] == ':')) );
data/exiv2-0.27.3/xmpsdk/src/XMPUtils.cpp:1681: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).
	static size_t kTrailerLen = strlen ( kPacketTrailer );

ANALYSIS SUMMARY:

Hits = 1227
Lines analyzed = 121417 in approximately 4.58 seconds (26508 lines/second)
Physical Source Lines of Code (SLOC) = 80804
Hits@level = [0] 165 [1] 711 [2] 440 [3]  41 [4]  30 [5]   5
Hits@level+ = [0+] 1392 [1+] 1227 [2+] 516 [3+]  76 [4+]  35 [5+]   5
Hits/KSLOC@level+ = [0+] 17.2269 [1+] 15.1849 [2+] 6.38582 [3+] 0.940547 [4+] 0.433147 [5+] 0.0618781
Dot directories skipped = 2 (--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.