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

FINAL RESULTS:

data/pillow-8.0.1/src/Tk/tkImaging.c:245: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-8.0.1/src/_imaging.c:122: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-8.0.1/src/_imaging.c:201: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-8.0.1/src/_imaging.c:202: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-8.0.1/src/_imaging.c:452: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-8.0.1/src/_imaging.c:1193: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-8.0.1/src/_imaging.c:1692: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-8.0.1/src/_imaging.c:1787: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-8.0.1/src/_imaging.c:1942: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-8.0.1/src/_imaging.c:1954: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-8.0.1/src/_imaging.c:1955: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-8.0.1/src/_imaging.c:2177: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-8.0.1/src/_imaging.c:3305: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-8.0.1/src/_imaging.c:3639: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-8.0.1/src/_imagingcms.c:210: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-8.0.1/src/_imagingcms.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(self->mode_out, mode_out);
data/pillow-8.0.1/src/_webp.c:55: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-8.0.1/src/_webp.c:57: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-8.0.1/src/libImaging/Access.c:245: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-8.0.1/src/libImaging/Access.c:249: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-8.0.1/src/libImaging/Convert.c:1669:9:  [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-8.0.1/src/libImaging/Convert.c:1729: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-8.0.1/src/libImaging/Dib.c:112: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-8.0.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-8.0.1/src/libImaging/Fill.c:38: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-8.0.1/src/libImaging/Imaging.h:201: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-8.0.1/src/libImaging/Imaging.h:202: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-8.0.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-8.0.1/src/_imagingft.c:170: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-8.0.1/src/_imagingft.c:173:23:  [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-0");
data/pillow-8.0.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-8.0.1/src/Tk/tkImaging.c:241: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-8.0.1/src/_imaging.c:400: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-8.0.1/src/_imaging.c:404: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-8.0.1/src/_imaging.c:408: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-8.0.1/src/_imaging.c:447: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-8.0.1/src/_imaging.c:585: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-8.0.1/src/_imaging.c:594: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-8.0.1/src/_imaging.c:619: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-8.0.1/src/_imaging.c:804: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-8.0.1/src/_imaging.c:1360: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-8.0.1/src/_imaging.c:1536: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-8.0.1/src/_imaging.c:1609: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-8.0.1/src/_imaging.c:1721: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-8.0.1/src/_imaging.c:1748: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-8.0.1/src/_imaging.c:1761: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-8.0.1/src/_imaging.c:2675: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-8.0.1/src/_imaging.c:3312: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-8.0.1/src/_imagingcms.c:189: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-8.0.1/src/_imagingcms.c:190: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-8.0.1/src/_imagingcms.c:361: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-8.0.1/src/_imagingcms.c:601: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-8.0.1/src/_imagingcms.c:681: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-8.0.1/src/_imagingcms.c:788: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-8.0.1/src/_imagingcms.c:872: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-8.0.1/src/_imagingft.c:310: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-8.0.1/src/_webp.c:44: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-8.0.1/src/_webp.c:828: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-8.0.1/src/_webp.c:830: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.%d", version_number >> 16, (version_number >> 8) % 0x100, version_number % 0x100);
data/pillow-8.0.1/src/display.c:210: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-8.0.1/src/encode.c:609: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-8.0.1/src/encode.c:1096: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-8.0.1/src/encode.c:1111: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-8.0.1/src/libImaging/Access.c:83: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-8.0.1/src/libImaging/Access.c:100: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-8.0.1/src/libImaging/Access.c:102: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-8.0.1/src/libImaging/Access.c:111: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-8.0.1/src/libImaging/Access.c:114: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-8.0.1/src/libImaging/Access.c:121: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-8.0.1/src/libImaging/Access.c:130: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-8.0.1/src/libImaging/Access.c:132: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-8.0.1/src/libImaging/Access.c:141: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-8.0.1/src/libImaging/Access.c:144: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-8.0.1/src/libImaging/Access.c:156: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-8.0.1/src/libImaging/Access.c:169: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-8.0.1/src/libImaging/Access.c:184: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-8.0.1/src/libImaging/Access.c:201: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-8.0.1/src/libImaging/Bands.c:59: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-8.0.1/src/libImaging/Bands.c:108: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-8.0.1/src/libImaging/Bands.c:110: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-8.0.1/src/libImaging/Bands.c:128: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-8.0.1/src/libImaging/Bands.c:130: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-8.0.1/src/libImaging/Bands.c:132: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-8.0.1/src/libImaging/Bands.c:152: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-8.0.1/src/libImaging/Bands.c:154: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-8.0.1/src/libImaging/Bands.c:156: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-8.0.1/src/libImaging/Bands.c:158: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-8.0.1/src/libImaging/BcnDecode.c:53: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, src, sizeof(bc3_alpha));
data/pillow-8.0.1/src/libImaging/BcnDecode.c:168: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.
    decode_bc3_alpha((char *)col, src, sizeof(col[0]), 3);
data/pillow-8.0.1/src/libImaging/BcnDecode.c:172: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.
    decode_bc3_alpha((char *)col, src, sizeof(col[0]), 0);
data/pillow-8.0.1/src/libImaging/BcnDecode.c:176: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.
    decode_bc3_alpha((char *)col, src, sizeof(col[0]), 0);
data/pillow-8.0.1/src/libImaging/BcnDecode.c:798: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(dst + sz*x, col + sz*(j*4 + i), sz);
data/pillow-8.0.1/src/libImaging/BcnDecode.c:806: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(dst, col + sz*(j*4), 4 * sz);
data/pillow-8.0.1/src/libImaging/BcnDecode.c:826:41:  [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-8.0.1/src/libImaging/BcnDecode.c:844:45:  [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-8.0.1/src/libImaging/BoxBlur.c:207: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-8.0.1/src/libImaging/BoxBlur.c:223: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-8.0.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-8.0.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-8.0.1/src/libImaging/Convert.c:278: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-8.0.1/src/libImaging/Convert.c:288: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-8.0.1/src/libImaging/Convert.c:301: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-8.0.1/src/libImaging/Convert.c:314: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-8.0.1/src/libImaging/Convert.c:551: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-8.0.1/src/libImaging/Convert.c:639: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-8.0.1/src/libImaging/Convert.c:649: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-8.0.1/src/libImaging/Convert.c:679: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-8.0.1/src/libImaging/Convert.c:729: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-8.0.1/src/libImaging/Convert.c:739: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-8.0.1/src/libImaging/Convert.c:769: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-8.0.1/src/libImaging/Convert.c:859: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-8.0.1/src/libImaging/Convert.c:870: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-8.0.1/src/libImaging/Convert.c:880: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-8.0.1/src/libImaging/Convert.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_, &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Convert.c:1148: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-8.0.1/src/libImaging/Convert.c:1168: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-8.0.1/src/libImaging/Convert.c:1394: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-8.0.1/src/libImaging/Convert.c:1667: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.
        static char buf[256];
data/pillow-8.0.1/src/libImaging/Convert.c:1727: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-8.0.1/src/libImaging/Copy.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->block, imIn->block, imIn->ysize * imIn->linesize);
data/pillow-8.0.1/src/libImaging/Copy.c:44: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-8.0.1/src/libImaging/Dib.c:120: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-8.0.1/src/libImaging/Dib.c:145: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-8.0.1/src/libImaging/File.c:63: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-8.0.1/src/libImaging/Fill.c:48: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-8.0.1/src/libImaging/Filter.c:108: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-8.0.1/src/libImaging/Filter.c:137: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-8.0.1/src/libImaging/Filter.c:150: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-8.0.1/src/libImaging/Filter.c:169: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-8.0.1/src/libImaging/Filter.c:192: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-8.0.1/src/libImaging/Filter.c:195: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-8.0.1/src/libImaging/Filter.c:198: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-8.0.1/src/libImaging/Filter.c:215: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-8.0.1/src/libImaging/Filter.c:216: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-8.0.1/src/libImaging/Filter.c:253: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-8.0.1/src/libImaging/Filter.c:270: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-8.0.1/src/libImaging/Filter.c:295: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-8.0.1/src/libImaging/Filter.c:326: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-8.0.1/src/libImaging/Filter.c:329: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-8.0.1/src/libImaging/Filter.c:332: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-8.0.1/src/libImaging/Filter.c:333: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-8.0.1/src/libImaging/FliDecode.c:131: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(local_buf + x, data + 2, i);
data/pillow-8.0.1/src/libImaging/FliDecode.c:171: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(out + x, data + 2, i);
data/pillow-8.0.1/src/libImaging/FliDecode.c:205: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(out + x, data + 1, i);
data/pillow-8.0.1/src/libImaging/FliDecode.c:231: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(local_buf, data, state->xsize);
data/pillow-8.0.1/src/libImaging/Geometry.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(imOut->image[yr], imIn->image[y], imIn->linesize);
data/pillow-8.0.1/src/libImaging/Geometry.c:450: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-8.0.1/src/libImaging/Geometry.c:462: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-8.0.1/src/libImaging/Geometry.c:518: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-8.0.1/src/libImaging/Geometry.c:529: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-8.0.1/src/libImaging/Geometry.c:639: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-8.0.1/src/libImaging/Geometry.c:650: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-8.0.1/src/libImaging/GetBBox.c:171: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-8.0.1/src/libImaging/GetBBox.c:172: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-8.0.1/src/libImaging/GetBBox.c:186: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-8.0.1/src/libImaging/GetBBox.c:187: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-8.0.1/src/libImaging/GetBBox.c:215: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-8.0.1/src/libImaging/GetBBox.c:217: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-8.0.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-8.0.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-8.0.1/src/libImaging/GifDecode.c:284: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, p, i);
data/pillow-8.0.1/src/libImaging/GifEncode.c:302: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(ptr+1, block->data, block->size);
data/pillow-8.0.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-8.0.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-8.0.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-8.0.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-8.0.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-8.0.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-8.0.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-8.0.1/src/libImaging/JpegEncode.c: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(context->destination.pub.next_output_byte,
data/pillow-8.0.1/src/libImaging/JpegEncode.c:344: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-8.0.1/src/libImaging/JpegEncode.c:345: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-8.0.1/src/libImaging/Pack.c:274: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-8.0.1/src/libImaging/Pack.c:481: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-8.0.1/src/libImaging/Pack.c:488: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-8.0.1/src/libImaging/Pack.c:495: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-8.0.1/src/libImaging/Pack.c:502: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-8.0.1/src/libImaging/Palette.c:119: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-8.0.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-8.0.1/src/libImaging/Paste.c:301: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-8.0.1/src/libImaging/Paste.c:335: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-8.0.1/src/libImaging/Point.c:108: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-8.0.1/src/libImaging/Point.c:266: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-8.0.1/src/libImaging/Quant.c:1777: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-8.0.1/src/libImaging/QuantHeap.c:64: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-8.0.1/src/libImaging/QuantOctree.c:184: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-8.0.1/src/libImaging/QuantOctree.c:325: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-8.0.1/src/libImaging/QuantOctree.c:326: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-8.0.1/src/libImaging/QuantPngQuant.c:119: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-8.0.1/src/libImaging/QuantPngQuant.c:121: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.%d", number / 10000, (number / 100) % 100, number % 100);
data/pillow-8.0.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-8.0.1/src/libImaging/RankFilter.c:100: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-8.0.1/src/libImaging/Reduce.c:91: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:131: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:176: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:234: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:257: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:282: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:336: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:356: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:378: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:422: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:452: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:492: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:503: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:515: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:560: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:574: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:590: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:642: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:660: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:681: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:723: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:735: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:748: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:800: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:818: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:839: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:893: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:913: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:937: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:999: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:1023: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:1052: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[y] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:1141: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] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:1165: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] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Reduce.c:1188: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] + x * sizeof(v), &v, sizeof(v));
data/pillow-8.0.1/src/libImaging/Resample.c:332: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-8.0.1/src/libImaging/Resample.c:349: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-8.0.1/src/libImaging/Resample.c:367: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-8.0.1/src/libImaging/Resample.c:417: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-8.0.1/src/libImaging/Resample.c:434: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-8.0.1/src/libImaging/Resample.c:452: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-8.0.1/src/libImaging/SgiRleDecode.c:89: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-8.0.1/src/libImaging/SgiRleDecode.c:96: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-8.0.1/src/libImaging/TgaRleDecode.c:72: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-8.0.1/src/libImaging/TgaRleDecode.c:93: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(state->buffer + state->x, ptr + 1, n);
data/pillow-8.0.1/src/libImaging/TgaRleEncode.c:151: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-8.0.1/src/libImaging/TiffDecode.c:221: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-8.0.1/src/libImaging/TiffDecode.c:222: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-8.0.1/src/libImaging/TiffDecode.c:223: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-8.0.1/src/libImaging/TiffDecode.c:248: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-8.0.1/src/libImaging/TiffDecode.c:576: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-8.0.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-8.0.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-8.0.1/src/libImaging/Unpack.c:488: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-8.0.1/src/libImaging/Unpack.c:493: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-8.0.1/src/libImaging/Unpack.c:505: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-8.0.1/src/libImaging/Unpack.c:517: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-8.0.1/src/libImaging/Unpack.c:529: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-8.0.1/src/libImaging/Unpack.c:541: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-8.0.1/src/libImaging/Unpack.c:553: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-8.0.1/src/libImaging/Unpack.c:685: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-8.0.1/src/libImaging/Unpack.c:697: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-8.0.1/src/libImaging/Unpack.c:709: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-8.0.1/src/libImaging/Unpack.c:723: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-8.0.1/src/libImaging/Unpack.c:735: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-8.0.1/src/libImaging/Unpack.c:757: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-8.0.1/src/libImaging/Unpack.c:779: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-8.0.1/src/libImaging/Unpack.c:801: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-8.0.1/src/libImaging/Unpack.c:865: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-8.0.1/src/libImaging/Unpack.c:892: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-8.0.1/src/libImaging/Unpack.c:903: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-8.0.1/src/libImaging/Unpack.c:915: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-8.0.1/src/libImaging/Unpack.c:927: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-8.0.1/src/libImaging/Unpack.c:939: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-8.0.1/src/libImaging/Unpack.c:951: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-8.0.1/src/libImaging/Unpack.c:966: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-8.0.1/src/libImaging/Unpack.c:1046: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-8.0.1/src/libImaging/Unpack.c:1054: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-8.0.1/src/libImaging/Unpack.c:1064: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-8.0.1/src/libImaging/Unpack.c:1074: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-8.0.1/src/libImaging/Unpack.c:1081: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-8.0.1/src/libImaging/Unpack.c:1088: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-8.0.1/src/libImaging/Unpack.c:1096: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-8.0.1/src/libImaging/Unpack.c:1106: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-8.0.1/src/libImaging/codec_fd.c:27: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-8.0.1/src/map.c:148: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-8.0.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-8.0.1/src/path.c:128: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-8.0.1/src/_imaging.c:757: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-8.0.1/src/_imaging.c:1692: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-8.0.1/src/_imagingcms.c:670: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-8.0.1/src/_imagingft.c:320: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-8.0.1/src/_imagingft.c:684: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(anchor) != 2) {
data/pillow-8.0.1/src/decode.c:903: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-8.0.1/src/decode.c:904: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-8.0.1/src/encode.c:1119: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-8.0.1/src/libImaging/Dib.c:93: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-8.0.1/src/libImaging/Dib.c:116: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-8.0.1/src/libImaging/Fill.c:73: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-8.0.1/src/libImaging/Fill.c:96: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-8.0.1/src/libImaging/Histo.c:45: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-8.0.1/src/libImaging/Matrix.c:52: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-8.0.1/src/libImaging/Palette.c:42: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-8.0.1/src/libImaging/TiffDecode.c:704:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read;

ANALYSIS SUMMARY:

Hits = 297
Lines analyzed = 40922 in approximately 1.14 seconds (35962 lines/second)
Physical Source Lines of Code (SLOC) = 30912
Hits@level = [0]  80 [1]  16 [2] 251 [3]   2 [4]  28 [5]   0
Hits@level+ = [0+] 377 [1+] 297 [2+] 281 [3+]  30 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 12.1959 [1+] 9.60792 [2+] 9.09032 [3+] 0.970497 [4+] 0.905797 [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.