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/pillow-python2-6.2.1/src/map.c
Examining data/pillow-python2-6.2.1/src/path.c
Examining data/pillow-python2-6.2.1/src/_imagingmorph.c
Examining data/pillow-python2-6.2.1/src/_imagingcms.c
Examining data/pillow-python2-6.2.1/src/_webp.c
Examining data/pillow-python2-6.2.1/src/decode.c
Examining data/pillow-python2-6.2.1/src/Tk/_tkmini.h
Examining data/pillow-python2-6.2.1/src/Tk/tkImaging.c
Examining data/pillow-python2-6.2.1/src/py3.h
Examining data/pillow-python2-6.2.1/src/encode.c
Examining data/pillow-python2-6.2.1/src/outline.c
Examining data/pillow-python2-6.2.1/src/_imagingmath.c
Examining data/pillow-python2-6.2.1/src/libImaging/Filter.c
Examining data/pillow-python2-6.2.1/src/libImaging/EpsEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Dib.c
Examining data/pillow-python2-6.2.1/src/libImaging/UnpackYCC.c
Examining data/pillow-python2-6.2.1/src/libImaging/JpegDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Draw.c
Examining data/pillow-python2-6.2.1/src/libImaging/BoxBlur.c
Examining data/pillow-python2-6.2.1/src/libImaging/ModeFilter.c
Examining data/pillow-python2-6.2.1/src/libImaging/Gif.h
Examining data/pillow-python2-6.2.1/src/libImaging/AlphaComposite.c
Examining data/pillow-python2-6.2.1/src/libImaging/codec_fd.c
Examining data/pillow-python2-6.2.1/src/libImaging/Unpack.c
Examining data/pillow-python2-6.2.1/src/libImaging/Histo.c
Examining data/pillow-python2-6.2.1/src/libImaging/Jpeg2K.h
Examining data/pillow-python2-6.2.1/src/libImaging/Fill.c
Examining data/pillow-python2-6.2.1/src/libImaging/ImPlatform.h
Examining data/pillow-python2-6.2.1/src/libImaging/XbmEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/PackDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantHash.h
Examining data/pillow-python2-6.2.1/src/libImaging/ZipDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Blend.c
Examining data/pillow-python2-6.2.1/src/libImaging/Storage.c
Examining data/pillow-python2-6.2.1/src/libImaging/JpegEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/TiffDecode.h
Examining data/pillow-python2-6.2.1/src/libImaging/Point.c
Examining data/pillow-python2-6.2.1/src/libImaging/Matrix.c
Examining data/pillow-python2-6.2.1/src/libImaging/RawEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Offset.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantPngQuant.c
Examining data/pillow-python2-6.2.1/src/libImaging/Zip.h
Examining data/pillow-python2-6.2.1/src/libImaging/Bit.h
Examining data/pillow-python2-6.2.1/src/libImaging/XbmDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/ImagingUtils.h
Examining data/pillow-python2-6.2.1/src/libImaging/Bands.c
Examining data/pillow-python2-6.2.1/src/libImaging/raqm.h
Examining data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Convert.c
Examining data/pillow-python2-6.2.1/src/libImaging/File.c
Examining data/pillow-python2-6.2.1/src/libImaging/GifDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Geometry.c
Examining data/pillow-python2-6.2.1/src/libImaging/GifEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/FliDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/RawDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/PcxEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Except.c
Examining data/pillow-python2-6.2.1/src/libImaging/BitDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/PcdDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/TgaRleDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantPngQuant.h
Examining data/pillow-python2-6.2.1/src/libImaging/Jpeg.h
Examining data/pillow-python2-6.2.1/src/libImaging/Resample.c
Examining data/pillow-python2-6.2.1/src/libImaging/ImDib.h
Examining data/pillow-python2-6.2.1/src/libImaging/Palette.c
Examining data/pillow-python2-6.2.1/src/libImaging/PcxDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/ConvertYCbCr.c
Examining data/pillow-python2-6.2.1/src/libImaging/ZipEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Effects.c
Examining data/pillow-python2-6.2.1/src/libImaging/UnsharpMask.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantOctree.h
Examining data/pillow-python2-6.2.1/src/libImaging/HexDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Pack.c
Examining data/pillow-python2-6.2.1/src/libImaging/Copy.c
Examining data/pillow-python2-6.2.1/src/libImaging/Jpeg2KEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantHash.c
Examining data/pillow-python2-6.2.1/src/libImaging/Access.c
Examining data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Raw.h
Examining data/pillow-python2-6.2.1/src/libImaging/Imaging.h
Examining data/pillow-python2-6.2.1/src/libImaging/Crop.c
Examining data/pillow-python2-6.2.1/src/libImaging/Chops.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantHeap.c
Examining data/pillow-python2-6.2.1/src/libImaging/SgiRleDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Paste.c
Examining data/pillow-python2-6.2.1/src/libImaging/Quant.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantHeap.h
Examining data/pillow-python2-6.2.1/src/libImaging/QuantTypes.h
Examining data/pillow-python2-6.2.1/src/libImaging/ColorLUT.c
Examining data/pillow-python2-6.2.1/src/libImaging/TgaRleEncode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Sgi.h
Examining data/pillow-python2-6.2.1/src/libImaging/Jpeg2KDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/Negative.c
Examining data/pillow-python2-6.2.1/src/libImaging/GetBBox.c
Examining data/pillow-python2-6.2.1/src/libImaging/SunRleDecode.c
Examining data/pillow-python2-6.2.1/src/libImaging/RankFilter.c
Examining data/pillow-python2-6.2.1/src/libImaging/QuantOctree.c
Examining data/pillow-python2-6.2.1/src/_imagingtk.c
Examining data/pillow-python2-6.2.1/src/_imagingft.c
Examining data/pillow-python2-6.2.1/src/_imaging.c
Examining data/pillow-python2-6.2.1/src/display.c

FINAL RESULTS:

data/pillow-python2-6.2.1/src/Tk/tkImaging.c:246:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message, "Cannot load function %s", func_name);
data/pillow-python2-6.2.1/src/_imaging.c:118:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    ImagingAccess access;
data/pillow-python2-6.2.1/src/_imaging.c:196:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (imagep->access)
data/pillow-python2-6.2.1/src/_imaging.c:197:52:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        ImagingAccessDelete(imagep->image, imagep->access);
data/pillow-python2-6.2.1/src/_imaging.c:475:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
getpixel(Imaging im, ImagingAccess access, int x, int y)
data/pillow-python2-6.2.1/src/_imaging.c:1188:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return getpixel(self->image, self->access, x, y);
data/pillow-python2-6.2.1/src/_imaging.c:1660: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(self->image->mode, strlen(self->image->mode) == 2 ? "PA" : "P");
data/pillow-python2-6.2.1/src/_imaging.c:1751:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (self->access)
data/pillow-python2-6.2.1/src/_imaging.c:1856: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(im->mode, mode);
data/pillow-python2-6.2.1/src/_imaging.c:1866:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (self->access)
data/pillow-python2-6.2.1/src/_imaging.c:1867:39:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        ImagingAccessDelete(im, self->access);
data/pillow-python2-6.2.1/src/_imaging.c:2076:61:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                "iN", v->count, getpixel(self->image, self->access, v->x, v->y)
data/pillow-python2-6.2.1/src/_imaging.c:3098:54:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return getpixel(self->image->image, self->image->access, x, y);
data/pillow-python2-6.2.1/src/_imaging.c:3417:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return getpixel(im, self->access, x, y);
data/pillow-python2-6.2.1/src/_imagingcms.c:216: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(self->mode_in, mode_in);
data/pillow-python2-6.2.1/src/_imagingcms.c:217: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(self->mode_out, mode_out);
data/pillow-python2-6.2.1/src/_webp.c:48:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        message_len = sprintf(message, "could not assemble chunks: %s", kErrorMessages[-err]);
data/pillow-python2-6.2.1/src/_webp.c:50:23:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        message_len = sprintf(message, "could not set %.4s chunk: %s", chunk, kErrorMessages[-err]);
data/pillow-python2-6.2.1/src/libImaging/Access.c:242:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    return access;
data/pillow-python2-6.2.1/src/libImaging/Access.c:246:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
_ImagingAccessDelete(Imaging im, ImagingAccess access)
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1628:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "conversion from %s to %s not supported", imIn->mode, mode);
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1686:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "conversion from %s to %s not supported in convert_transparent", imIn->mode, mode);
data/pillow-python2-6.2.1/src/libImaging/Dib.c:109: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(dib->mode, mode);
data/pillow-python2-6.2.1/src/libImaging/Fill.c:32:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access) {
data/pillow-python2-6.2.1/src/libImaging/Fill.c:36:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            ImagingAccessDelete(im, access);
data/pillow-python2-6.2.1/src/libImaging/Imaging.h:203:60:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
extern void _ImagingAccessDelete(Imaging im, ImagingAccess access);
data/pillow-python2-6.2.1/src/libImaging/Imaging.h:204:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define ImagingAccessDelete(im, access) /* nop, for now */
data/pillow-python2-6.2.1/src/libImaging/Storage.c:211: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(im->mode, mode);
data/pillow-python2-6.2.1/src/_imagingft.c:164:19:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    p_raqm.raqm = LoadLibrary("libraqm");
data/pillow-python2-6.2.1/src/Tk/tkImaging.c:69:10:  [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).
    id = atol(name);
data/pillow-python2-6.2.1/src/Tk/tkImaging.c:242: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 message[100];
data/pillow-python2-6.2.1/src/_imaging.c:424: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(list + i * sizeof(INT32), &itemp, sizeof(itemp));
data/pillow-python2-6.2.1/src/_imaging.c:428: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(list + i * sizeof(ftemp), &ftemp, sizeof(ftemp));
data/pillow-python2-6.2.1/src/_imaging.c:432: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(list + i * sizeof(dtemp), &dtemp, sizeof(dtemp));
data/pillow-python2-6.2.1/src/_imaging.c:470: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(out, &t1, 4);
data/pillow-python2-6.2.1/src/_imaging.c:604: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(ink, &itmp, sizeof(itmp));
data/pillow-python2-6.2.1/src/_imaging.c:612: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(ink, &ftmp, sizeof(ftmp));
data/pillow-python2-6.2.1/src/_imaging.c:639: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[4];
data/pillow-python2-6.2.1/src/_imaging.c:815: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(&item, ((char*) table_data) + i * sizeof(FLOAT32), sizeof(FLOAT32));
data/pillow-python2-6.2.1/src/_imaging.c:1346: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 ink[4];
data/pillow-python2-6.2.1/src/_imaging.c:1508: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(image->image8[y], p+i, x);
data/pillow-python2-6.2.1/src/_imaging.c:1579: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 ink[4];
data/pillow-python2-6.2.1/src/_imaging.c:1688:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(self->image->palette->mode, "RGBA");
data/pillow-python2-6.2.1/src/_imaging.c:1714:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(self->image->palette->mode, "RGBA");
data/pillow-python2-6.2.1/src/_imaging.c:1727: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 ink[4];
data/pillow-python2-6.2.1/src/_imaging.c:2504: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(*text, buffer, len);
data/pillow-python2-6.2.1/src/_imaging.c:3105: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 ink[4];
data/pillow-python2-6.2.1/src/_imagingcms.c:196: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 mode_in[8];
data/pillow-python2-6.2.1/src/_imagingcms.c:197: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 mode_out[8];
data/pillow-python2-6.2.1/src/_imagingcms.c:381: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(pDstExtras + x * dstChunkSize, pSrcExtras + x * srcChunkSize, channelSize);
data/pillow-python2-6.2.1/src/_imagingcms.c:609: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 filename[MAX_PATH];
data/pillow-python2-6.2.1/src/_imagingcms.c:687:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[5];
data/pillow-python2-6.2.1/src/_imagingcms.c:797: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 name[cmsMAX_PATH];
data/pillow-python2-6.2.1/src/_imagingcms.c:879: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 *intent_descs[INTENTS];
data/pillow-python2-6.2.1/src/_imagingcms.c:952:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[256];
data/pillow-python2-6.2.1/src/_imagingft.c:298: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(self->font_bytes, font_bytes, (size_t)font_bytes_size);
data/pillow-python2-6.2.1/src/_webp.c:37: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 message[100];
data/pillow-python2-6.2.1/src/display.c:203: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(display->dib->bits, ptr, bytes);
data/pillow-python2-6.2.1/src/encode.c:582: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(p, dictionary, dictionary_size);
data/pillow-python2-6.2.1/src/encode.c:1056: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(p, extra, extra_size);
data/pillow-python2-6.2.1/src/encode.c:1068: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(pp, rawExif, rawExifLen);
data/pillow-python2-6.2.1/src/libImaging/Access.c:82: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(out, p, im->pixelsize);
data/pillow-python2-6.2.1/src/libImaging/Access.c:99: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(color, &out, sizeof(out));
data/pillow-python2-6.2.1/src/libImaging/Access.c:101: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(color, in, sizeof(UINT16));
data/pillow-python2-6.2.1/src/libImaging/Access.c:110: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(color, in, sizeof(UINT16));
data/pillow-python2-6.2.1/src/libImaging/Access.c:113: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(color, &out, sizeof(out));
data/pillow-python2-6.2.1/src/libImaging/Access.c:120: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(color, &im->image32[y][x], sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Access.c:129: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(color, &out, sizeof(out));
data/pillow-python2-6.2.1/src/libImaging/Access.c:131: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(color, in, sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Access.c:140: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(color, in, sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Access.c:143: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(color, &out, sizeof(out));
data/pillow-python2-6.2.1/src/libImaging/Access.c:155: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(&im->image32[y][x], color, sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Access.c:167: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(&im->image8[y][x+x], color, 2);
data/pillow-python2-6.2.1/src/libImaging/Access.c:182: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(&im->image8[y][x*4], color, 4);
data/pillow-python2-6.2.1/src/libImaging/Access.c:199: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(&im->image32[y][x], color, sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:54: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(out + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:103: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(out0 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:105: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(out1 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:123: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(out0 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:125: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(out1 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:127: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(out2 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:147: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(out0 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:149: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(out1 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:151: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(out2 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Bands.c:153: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(out3 + x, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:53: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(dst, src, sizeof(bc3_alpha));
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:168:20:  [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.
	decode_bc3_alpha((char *)col, src, sizeof(col[0]), 3);
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:172:20:  [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.
	decode_bc3_alpha((char *)col, src, sizeof(col[0]), 0);
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:176:20:  [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.
	decode_bc3_alpha((char *)col, src, sizeof(col[0]), 0);
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:792: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(dst + sz*x, col + sz*(j*4 + i), sz);
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:800:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(dst, col + sz*(j*4), 4 * sz);
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:820:32:  [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.
			put_block(im, state, (const char *)col, sizeof(col[0]), C); \
data/pillow-python2-6.2.1/src/libImaging/BcnDecode.c:835:32:  [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.
			put_block(im, state, (const char *)col, sizeof(col[0]), C);
data/pillow-python2-6.2.1/src/libImaging/BoxBlur.c:206: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(imOut->image8[y], lineOut, imIn->xsize);
data/pillow-python2-6.2.1/src/libImaging/BoxBlur.c:222: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(imOut->image32[y], lineOut, imIn->xsize * 4);
data/pillow-python2-6.2.1/src/libImaging/ColorLUT.c:140: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(rowOut + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/ColorLUT.c:161: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(rowOut + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:273: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:283: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:296: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:309: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:546: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(out, &repl, sizeof(repl));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:634: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:644: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:673: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(out_, &f, sizeof(f));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:722: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(out_, &f, sizeof(f));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:732: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(out_, &f, sizeof(f));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:761: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(out_, &i, sizeof(i));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:850: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:861: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:871: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:882: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1131: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1150: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(out_, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1367: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(imOut->image[y], imIn->image[y], imIn->linesize);
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1626: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 char buf[256];
data/pillow-python2-6.2.1/src/libImaging/Convert.c:1684: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 char buf[256];
data/pillow-python2-6.2.1/src/libImaging/Copy.c:39: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(imOut->block, imIn->block, imIn->ysize * imIn->linesize);
data/pillow-python2-6.2.1/src/libImaging/Copy.c:42: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(imOut->image[y], imIn->image[y], imIn->linesize);
data/pillow-python2-6.2.1/src/libImaging/Dib.c:117:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        dib->pack = dib->unpack = (ImagingShuffler) memcpy;
data/pillow-python2-6.2.1/src/libImaging/Dib.c:142: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 palbuf[sizeof(LOGPALETTE)+256*sizeof(PALETTEENTRY)];
data/pillow-python2-6.2.1/src/libImaging/File.c:60:10:  [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 = fopen(outfile, "wb");
data/pillow-python2-6.2.1/src/libImaging/Fill.c:45: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(&c, colour, im->pixelsize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:98: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(imOut->image[0], im->image[0], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:127: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(out, in0, sizeof(UINT32));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:140: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:159: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:182: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:185: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(out + x * sizeof(UINT32), in0 + x * sizeof(UINT32), sizeof(UINT32));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:188: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(imOut->image[y], im->image[y], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:205: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(imOut->image[0], im->image[0], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:206: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(imOut->image[1], im->image[1], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:243: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(out, in0, sizeof(UINT32) * 2);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:260: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:285: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:316: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(out + x * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Filter.c:319: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(out + x * sizeof(UINT32), in0 + x * sizeof(UINT32), sizeof(UINT32) * 2);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:322: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(imOut->image[y], im->image[y], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/Filter.c:323: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(imOut->image[y+1], im->image[y+1], im->linesize);
data/pillow-python2-6.2.1/src/libImaging/FliDecode.c:113:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf + x, data + 2, i);
data/pillow-python2-6.2.1/src/libImaging/FliDecode.c:145:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(out + x, data + 2, i);
data/pillow-python2-6.2.1/src/libImaging/FliDecode.c:173:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(out + x, data + 1, i);
data/pillow-python2-6.2.1/src/libImaging/FliDecode.c:194: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(buf, data, state->xsize);
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:76: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(imOut->image[yr], imIn->image[y], imIn->linesize);
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:431: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(out, im->image8[y] + x * sizeof(INT16), sizeof(INT16));
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:442: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(out, &im->image32[y][x], sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:496: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(out, &k, sizeof(k));
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:507: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(out, &k, sizeof(k));
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:612: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(out, &k, sizeof(k));
data/pillow-python2-6.2.1/src/libImaging/Geometry.c:623: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(out, &k, sizeof(k));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:149: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(extrema, &imin, sizeof(imin));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:150: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(((char*)extrema) + sizeof(imin), &imax, sizeof(imax));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:163: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(extrema, &fmin, sizeof(fmin));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:164: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(((char*)extrema) + sizeof(fmin), &fmax, sizeof(fmax));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:181: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(extrema, &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/GetBBox.c:183: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(((char*)extrema) + sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Gif.h:59: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 buffer[GIFTABLE];
data/pillow-python2-6.2.1/src/libImaging/Gif.h:63: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 data[GIFTABLE];
data/pillow-python2-6.2.1/src/libImaging/GifDecode.c:278: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(out, p, i);
data/pillow-python2-6.2.1/src/libImaging/GifEncode.c:294: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(ptr+1, block->data, block->size);
data/pillow-python2-6.2.1/src/libImaging/ImDib.h:30: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 mode[4];
data/pillow-python2-6.2.1/src/libImaging/Imaging.h:86: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 mode[IMAGING_MODE_LENGTH];     /* Band names ("1", "L", "P", "RGB", "RGBA", "CMYK", "YCbCr", "BGR;xy") */
data/pillow-python2-6.2.1/src/libImaging/Imaging.h: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 mode[IMAGING_MODE_LENGTH];     /* Band names (of corresponding source image) */
data/pillow-python2-6.2.1/src/libImaging/Imaging.h:151: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 mode[IMAGING_MODE_LENGTH];     /* Band names */
data/pillow-python2-6.2.1/src/libImaging/Jpeg.h:35: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 jpegmode[8+1];
data/pillow-python2-6.2.1/src/libImaging/Jpeg.h:39: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 rawmode[8+1];
data/pillow-python2-6.2.1/src/libImaging/Jpeg.h:92: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 rawmode[8+1];
data/pillow-python2-6.2.1/src/libImaging/JpegEncode.c:266: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(context->destination.pub.next_output_byte,
data/pillow-python2-6.2.1/src/libImaging/JpegEncode.c:335: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 version[20];
data/pillow-python2-6.2.1/src/libImaging/JpegEncode.c:336: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.%d", JPEG_LIB_VERSION / 10, JPEG_LIB_VERSION % 10);
data/pillow-python2-6.2.1/src/libImaging/Pack.c:264: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(out, in + i * 4, 4);
data/pillow-python2-6.2.1/src/libImaging/Pack.c:470: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(out, in, pixels);
data/pillow-python2-6.2.1/src/libImaging/Pack.c:477: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(out, in, pixels*2);
data/pillow-python2-6.2.1/src/libImaging/Pack.c:484: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(out, in, pixels*3);
data/pillow-python2-6.2.1/src/libImaging/Pack.c:491: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(out, in, 4*pixels);
data/pillow-python2-6.2.1/src/libImaging/Palette.c:112: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(new_palette, palette, sizeof(struct ImagingPaletteInstance));
data/pillow-python2-6.2.1/src/libImaging/Paste.c:41: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(imOut->image[y+dy]+dx, imIn->image[y+sy]+sx, xsize);
data/pillow-python2-6.2.1/src/libImaging/Paste.c:293: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(&ink32, ink_, pixelsize);
data/pillow-python2-6.2.1/src/libImaging/Paste.c:325: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(&ink32, ink_, pixelsize);
data/pillow-python2-6.2.1/src/libImaging/Point.c:107: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(out + x, table + in[x] * sizeof(INT32), sizeof(INT32));
data/pillow-python2-6.2.1/src/libImaging/Point.c:252: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(out + x * sizeof(UINT16), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Quant.c:1676:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(imOut->palette->mode, "RGBA");
data/pillow-python2-6.2.1/src/libImaging/QuantHeap.c:58:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(newheap,h->heap,sizeof(void *)*h->heapsize);
data/pillow-python2-6.2.1/src/libImaging/QuantOctree.c:179:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(buckets, cube->buckets, sizeof(struct _ColorBucket)*cube->size);
data/pillow-python2-6.2.1/src/libImaging/QuantOctree.c:316:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(result, bucketsA, sizeof(struct _ColorBucket) * nBucketsA);
data/pillow-python2-6.2.1/src/libImaging/QuantOctree.c:317:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
   memcpy(&result[nBucketsA], bucketsB, sizeof(struct _ColorBucket) * nBucketsB);
data/pillow-python2-6.2.1/src/libImaging/QuantTypes.h:27: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.
      unsigned char v[4];
data/pillow-python2-6.2.1/src/libImaging/RankFilter.c:87: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 + i*size, &IMAGING_PIXEL_##type(im, x, y+i),\
data/pillow-python2-6.2.1/src/libImaging/Resample.c:317: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Resample.c:334: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Resample.c:352: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Resample.c:401: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Resample.c:418: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/Resample.c:436: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(imOut->image[yy] + xx * sizeof(v), &v, sizeof(v));
data/pillow-python2-6.2.1/src/libImaging/SgiRleDecode.c:75: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(dest, src, 2);
data/pillow-python2-6.2.1/src/libImaging/SgiRleDecode.c:82: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(dest, src, 2);
data/pillow-python2-6.2.1/src/libImaging/TgaRleDecode.c:69: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(state->buffer + state->x + i, ptr+1, depth);
data/pillow-python2-6.2.1/src/libImaging/TgaRleDecode.c:88: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(state->buffer + state->x, ptr + 1, n);
data/pillow-python2-6.2.1/src/libImaging/TgaRleEncode.c:142: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(
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:210: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(swap_line, top_line, 4*tile_width);
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:211: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(top_line, bottom_line, 4*tile_width);
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:212: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(bottom_line, swap_line, 4*tile_width);
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:237: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 emsg[1024] = "";
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:530: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 field_name[10];
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:332: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:344: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:487: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:492: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:504: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:516: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:528: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:540: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:552: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:684: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:696: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:708: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:722: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:734: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:756: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:778: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:800: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:864: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:891: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:902: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:914: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:926: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:938: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:950: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:965: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(_out, &iv, sizeof(iv));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1045: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(out, &pixel, sizeof(pixel));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1053: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(out, &pixel, sizeof(pixel));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1063: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(out, &pixel, sizeof(pixel));
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1073: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(out, in, pixels);
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1080: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(out, in, pixels*2);
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1087: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(out, in, 4 * pixels);
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1095: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(_out, in, 4);
data/pillow-python2-6.2.1/src/libImaging/Unpack.c:1105: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(_out, in, 4);
data/pillow-python2-6.2.1/src/libImaging/codec_fd.c:28: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(dest, buffer, length);
data/pillow-python2-6.2.1/src/map.c:141: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(PyBytes_AsString(buf), mapper->base + mapper->offset, size);
data/pillow-python2-6.2.1/src/path.c:81: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(p, xy, count * 2 * sizeof(double));
data/pillow-python2-6.2.1/src/path.c:127: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(xy, path->xy, 2 * path->count * sizeof(double));
data/pillow-python2-6.2.1/src/_imaging.c:769: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).
                if (strlen(buffer_info.format) == 1) {
data/pillow-python2-6.2.1/src/_imaging.c:1660:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strcpy(self->image->mode, strlen(self->image->mode) == 2 ? "PA" : "P");
data/pillow-python2-6.2.1/src/_imagingcms.c:676:39:  [1] (buffer) wcslen:
  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).
    uni = PyUnicode_FromWideChar(buf, wcslen(buf));
data/pillow-python2-6.2.1/src/_imagingft.c:307: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).
    if (!error && encoding && strlen((char*) encoding) == 4) {
data/pillow-python2-6.2.1/src/decode.c:853:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(((JPEGSTATE*)decoder->state.context)->rawmode, rawmode, 8);
data/pillow-python2-6.2.1/src/decode.c:854:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(((JPEGSTATE*)decoder->state.context)->jpegmode, jpegmode, 8);
data/pillow-python2-6.2.1/src/encode.c:1075:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(((JPEGENCODERSTATE*)encoder->state.context)->rawmode, rawmode, 8);
data/pillow-python2-6.2.1/src/libImaging/Dib.c:90: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).
    dib->info->bmiHeader.biBitCount = strlen(mode)*8;
data/pillow-python2-6.2.1/src/libImaging/Dib.c:113:22:  [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).
    dib->pixelsize = strlen(mode);
data/pillow-python2-6.2.1/src/libImaging/Fill.c:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(mode) != 1) {
data/pillow-python2-6.2.1/src/libImaging/Fill.c:90:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(mode) != 1) {
data/pillow-python2-6.2.1/src/libImaging/Histo.c:44:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(h->mode, im->mode, IMAGING_MODE_LENGTH-1);
data/pillow-python2-6.2.1/src/libImaging/Matrix.c:50: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).
    } else if (strlen(mode) == 3 && im->bands == 3) {
data/pillow-python2-6.2.1/src/libImaging/Palette.c:40:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(palette->mode, mode, IMAGING_MODE_LENGTH-1);
data/pillow-python2-6.2.1/src/libImaging/TiffDecode.c:658:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;

ANALYSIS SUMMARY:

Hits = 256
Lines analyzed = 37375 in approximately 1.03 seconds (36434 lines/second)
Physical Source Lines of Code (SLOC) = 27608
Hits@level = [0]  78 [1]  15 [2] 212 [3]   1 [4]  28 [5]   0
Hits@level+ = [0+] 334 [1+] 256 [2+] 241 [3+]  29 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 12.0979 [1+] 9.27267 [2+] 8.72935 [3+] 1.05042 [4+] 1.0142 [5+]   0
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.