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/splix-2.0.0+svn315/tools/qpdl.h
Examining data/splix-2.0.0+svn315/tools/i18n.h
Examining data/splix-2.0.0+svn315/tools/appliargs.h
Examining data/splix-2.0.0+svn315/tools/jbgtopbm.cpp
Examining data/splix-2.0.0+svn315/tools/qpdl.cpp
Examining data/splix-2.0.0+svn315/tools/pjl.cpp
Examining data/splix-2.0.0+svn315/tools/algo0x11.h
Examining data/splix-2.0.0+svn315/tools/template.cpp
Examining data/splix-2.0.0+svn315/tools/page.cpp
Examining data/splix-2.0.0+svn315/tools/page.h
Examining data/splix-2.0.0+svn315/tools/appliargs.cpp
Examining data/splix-2.0.0+svn315/tools/algo0x11.cpp
Examining data/splix-2.0.0+svn315/tools/pjl.h
Examining data/splix-2.0.0+svn315/tools/decompress.cpp
Examining data/splix-2.0.0+svn315/src/algo0x15.cpp
Examining data/splix-2.0.0+svn315/src/core.cpp
Examining data/splix-2.0.0+svn315/src/document.cpp
Examining data/splix-2.0.0+svn315/src/band.cpp
Examining data/splix-2.0.0+svn315/src/semaphore.cpp
Examining data/splix-2.0.0+svn315/src/rendering.cpp
Examining data/splix-2.0.0+svn315/src/colors.cpp
Examining data/splix-2.0.0+svn315/src/printer.cpp
Examining data/splix-2.0.0+svn315/src/algo0x13.cpp
Examining data/splix-2.0.0+svn315/src/request.cpp
Examining data/splix-2.0.0+svn315/src/page.cpp
Examining data/splix-2.0.0+svn315/src/ppdfile.cpp
Examining data/splix-2.0.0+svn315/src/algo0x0e.cpp
Examining data/splix-2.0.0+svn315/src/rastertoqpdl.cpp
Examining data/splix-2.0.0+svn315/src/algo0x11.cpp
Examining data/splix-2.0.0+svn315/src/bandplane.cpp
Examining data/splix-2.0.0+svn315/src/pstoqpdl.cpp
Examining data/splix-2.0.0+svn315/src/compress.cpp
Examining data/splix-2.0.0+svn315/src/algorithm.cpp
Examining data/splix-2.0.0+svn315/src/qpdl.cpp
Examining data/splix-2.0.0+svn315/src/algo0x0d.cpp
Examining data/splix-2.0.0+svn315/src/cache.cpp
Examining data/splix-2.0.0+svn315/include/qpdl.h
Examining data/splix-2.0.0+svn315/include/algo0x0e.h
Examining data/splix-2.0.0+svn315/include/algo0x13.h
Examining data/splix-2.0.0+svn315/include/rendering.h
Examining data/splix-2.0.0+svn315/include/semaphore.h
Examining data/splix-2.0.0+svn315/include/algo0x15.h
Examining data/splix-2.0.0+svn315/include/version.h
Examining data/splix-2.0.0+svn315/include/band.h
Examining data/splix-2.0.0+svn315/include/algo0x11.h
Examining data/splix-2.0.0+svn315/include/bandplane.h
Examining data/splix-2.0.0+svn315/include/ppdfile.h
Examining data/splix-2.0.0+svn315/include/algo0x0d.h
Examining data/splix-2.0.0+svn315/include/errlog.h
Examining data/splix-2.0.0+svn315/include/printer.h
Examining data/splix-2.0.0+svn315/include/page.h
Examining data/splix-2.0.0+svn315/include/document.h
Examining data/splix-2.0.0+svn315/include/algorithm.h
Examining data/splix-2.0.0+svn315/include/cache.h
Examining data/splix-2.0.0+svn315/include/request.h
Examining data/splix-2.0.0+svn315/include/compress.h
Examining data/splix-2.0.0+svn315/include/options.h
Examining data/splix-2.0.0+svn315/include/core.h
Examining data/splix-2.0.0+svn315/include/colors.h

FINAL RESULTS:

data/splix-2.0.0+svn315/src/cache.cpp:541: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(_tempFile, path);
data/splix-2.0.0+svn315/src/ppdfile.cpp:249: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(tmp, _out);
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:69:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execl(RASTERDIR "/" RASTERTOQPDL, RASTERDIR "/" RASTERTOQPDL, arg1, 
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:86: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(RASTERDIR "/" GSTORASTER, F_OK) != -1) {
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:88:13:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            execl(RASTERDIR "/" GSTORASTER, RASTERDIR "/" GSTORASTER, arg1, arg2, 
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:93:13:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            execl(RASTERDIR "/" PSTORASTER, RASTERDIR "/" PSTORASTER, arg1, arg2, 
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:142:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(tmp, size, CUPSPROFILE "/%s/%s-%lux%lucms%s", manufacturer,
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:144:25:  [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 (!xResolution || access(tmp, R_OK))
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:145:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(tmp, size, CUPSPROFILE "/%s/%scms%s", manufacturer,
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:204:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ppdFile = getenv("PPD");
data/splix-2.0.0+svn315/src/rastertoqpdl.cpp:53:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    ppdFile = getenv("PPD");
data/splix-2.0.0+svn315/src/request.cpp:56:39:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    _username = username ? username : getenv("USER");
data/splix-2.0.0+svn315/include/algo0x15.h:39:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char           _bih[20];
data/splix-2.0.0+svn315/include/ppdfile.h:226:33:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        bool                    open(const char *file, const char *version, 
data/splix-2.0.0+svn315/src/algo0x11.cpp:189: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(output, out, outputSize);
data/splix-2.0.0+svn315/src/algo0x13.cpp: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(tmp, data, len);
data/splix-2.0.0+svn315/src/algo0x13.cpp:90: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(info->data + info->size, data, toCopy);
data/splix-2.0.0+svn315/src/algo0x15.cpp:54: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(compressor->_bih, data, 20);
data/splix-2.0.0+svn315/src/algo0x15.cpp:63: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(compressor->_data + compressor->_size, data, data_len);
data/splix-2.0.0+svn315/src/algo0x15.cpp:134: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(final_data, _data, _size);
data/splix-2.0.0+svn315/src/cache.cpp:285:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(tmp, _pages, _maxPagesInTable *
data/splix-2.0.0+svn315/src/cache.cpp:542:15:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if ((fd = mkstemp(_tempFile)) == -1) {
data/splix-2.0.0+svn315/src/cache.cpp:577:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(_tempFile, O_RDONLY)) == -1) {
data/splix-2.0.0+svn315/src/colors.cpp:28: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 *planes[4], bmask;
data/splix-2.0.0+svn315/src/compress.cpp:57: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 *planes[4], *band;
data/splix-2.0.0+svn315/src/compress.cpp:195: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 *planes[4], *band[4];
data/splix-2.0.0+svn315/src/document.cpp:73: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 *line, *planes[4];
data/splix-2.0.0+svn315/src/document.cpp:169: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(planes[i] + index + marginWidthInB, line + clippingX, 
data/splix-2.0.0+svn315/src/page.cpp:176:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char bih[20];
data/splix-2.0.0+svn315/src/page.cpp:195: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(_bih, bih_data, 20);
data/splix-2.0.0+svn315/src/ppdfile.cpp:49:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool PPDFile::open(const char *file, const char *version, const char *useropts)
data/splix-2.0.0+svn315/src/ppdfile.cpp:214:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char temp[3] = {0, 0, 0};
data/splix-2.0.0+svn315/src/printer.cpp:87:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _unknownByte1 = ((const char *)value)[0];
data/splix-2.0.0+svn315/src/printer.cpp:88:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _unknownByte2 = ((const char *)value)[1];
data/splix-2.0.0+svn315/src/printer.cpp:89:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    _unknownByte3 = ((const char *)value)[2];
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:149:38:  [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).
    if (stat(tmp, &fi) || !(handle = fopen(tmp, "r"))) {
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:187: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[1024];
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:217:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!ppd.open(ppdFile, PPDVERSION, options))
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:336:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tmp[sizeof(buffer)];
data/splix-2.0.0+svn315/src/qpdl.cpp:38: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 header[16] = { 0x13, 0, 0, 0, 0x23, 0x15, 0, 0,
data/splix-2.0.0+svn315/src/qpdl.cpp:68: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 header[0xc];
data/splix-2.0.0+svn315/src/qpdl.cpp:135: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 header[0x20] __attribute__((aligned(4)));
data/splix-2.0.0+svn315/src/qpdl.cpp:335: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 header[0x11];
data/splix-2.0.0+svn315/src/rastertoqpdl.cpp:71:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!ppd.open(ppdFile, PPDVERSION, options))
data/splix-2.0.0+svn315/tools/decompress.cpp:69:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!qpdlDocument.open(QIODevice::ReadOnly)) {
data/splix-2.0.0+svn315/tools/jbgtopbm.cpp:69:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!input.open(QIODevice::ReadOnly)) {
data/splix-2.0.0+svn315/tools/jbgtopbm.cpp:80:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!output.open(QIODevice::WriteOnly)) {
data/splix-2.0.0+svn315/tools/page.cpp:69:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!_files[i].open(QIODevice::WriteOnly)) {
data/splix-2.0.0+svn315/tools/qpdl.h:57: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                    _unknown[3];
data/splix-2.0.0+svn315/src/band.cpp:90:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &band->_bandNr, sizeof(band->_bandNr));
data/splix-2.0.0+svn315/src/band.cpp:91:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &colors, sizeof(colors));
data/splix-2.0.0+svn315/src/band.cpp:92:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &band->_width, sizeof(band->_width));
data/splix-2.0.0+svn315/src/band.cpp:93:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &band->_height, sizeof(band->_height));
data/splix-2.0.0+svn315/src/bandplane.cpp:83:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &plane->_colorNr, sizeof(plane->_colorNr));
data/splix-2.0.0+svn315/src/bandplane.cpp:84:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &plane->_size, sizeof(plane->_size));
data/splix-2.0.0+svn315/src/bandplane.cpp:86:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, data, plane->_size);
data/splix-2.0.0+svn315/src/bandplane.cpp:88:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &plane->_checksum, sizeof(plane->_checksum));
data/splix-2.0.0+svn315/src/bandplane.cpp:89:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &plane->_endian, sizeof(plane->_endian));
data/splix-2.0.0+svn315/src/bandplane.cpp:90:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &plane->_compression, sizeof(plane->_compression));
data/splix-2.0.0+svn315/src/cache.cpp:540:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    _tempFile = new char[strlen(path)+1];
data/splix-2.0.0+svn315/src/page.cpp:163:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_xResolution, sizeof(page->_xResolution));
data/splix-2.0.0+svn315/src/page.cpp:164:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_yResolution, sizeof(page->_yResolution));
data/splix-2.0.0+svn315/src/page.cpp:165:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_width, sizeof(page->_width));
data/splix-2.0.0+svn315/src/page.cpp:166:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_height, sizeof(page->_height));
data/splix-2.0.0+svn315/src/page.cpp:167:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_colors, sizeof(page->_colors));
data/splix-2.0.0+svn315/src/page.cpp:168:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_pageNr, sizeof(page->_pageNr));
data/splix-2.0.0+svn315/src/page.cpp:169:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_copiesNr, sizeof(page->_copiesNr));
data/splix-2.0.0+svn315/src/page.cpp:170:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_compression, sizeof(page->_compression));
data/splix-2.0.0+svn315/src/page.cpp:171:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &page->_empty, sizeof(page->_empty));
data/splix-2.0.0+svn315/src/page.cpp:172:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(fd, &nr, sizeof(nr));
data/splix-2.0.0+svn315/src/page.cpp:177:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        read(fd, bih, 20);
data/splix-2.0.0+svn315/src/ppdfile.cpp:211:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    _preformatted = new char[strlen(str)];
data/splix-2.0.0+svn315/src/ppdfile.cpp:213:28:  [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 (*str == '<' && strlen(str) >= 3 && isxdigit(*(str+1))) {
data/splix-2.0.0+svn315/src/ppdfile.cpp:248:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    tmp = new char[strlen(_out)+1];
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:40:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *tmp = new char[strlen(data) + 1];
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:139:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(CUPSPROFILE) + strlen(manufacturer) + strlen(file) + 64;
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:139:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(CUPSPROFILE) + strlen(manufacturer) + strlen(file) + 64;
data/splix-2.0.0+svn315/src/pstoqpdl.cpp:139:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(CUPSPROFILE) + strlen(manufacturer) + strlen(file) + 64;
data/splix-2.0.0+svn315/tools/decompress.cpp:74:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (qpdlDocument.read(9) != QByteArray("-12345X")) {
data/splix-2.0.0+svn315/tools/qpdl.cpp:113:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    QByteArray header = data.read(0x11);
data/splix-2.0.0+svn315/tools/qpdl.cpp:221:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        header = data.read(5);
data/splix-2.0.0+svn315/tools/qpdl.cpp:246:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                header = data.read(5);
data/splix-2.0.0+svn315/tools/qpdl.cpp:251:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                content = data.read(size);
data/splix-2.0.0+svn315/tools/qpdl.cpp:271:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            header = data.read(5);
data/splix-2.0.0+svn315/tools/qpdl.cpp:275:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            content = data.read(size);
data/splix-2.0.0+svn315/tools/qpdl.cpp:286:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            header = data.read(5);
data/splix-2.0.0+svn315/tools/qpdl.cpp:290:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            content = data.read(size);
data/splix-2.0.0+svn315/tools/qpdl.cpp:395:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        footer = data.read(2);

ANALYSIS SUMMARY:

Hits = 88
Lines analyzed = 8807 in approximately 0.32 seconds (27865 lines/second)
Physical Source Lines of Code (SLOC) = 4949
Hits@level = [0]  76 [1]  39 [2]  37 [3]   3 [4]   9 [5]   0
Hits@level+ = [0+] 164 [1+]  88 [2+]  49 [3+]  12 [4+]   9 [5+]   0
Hits/KSLOC@level+ = [0+] 33.138 [1+] 17.7814 [2+] 9.90099 [3+] 2.42473 [4+] 1.81855 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.