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/kdoctools-5.74.0/src/meinproc.cpp
Examining data/kdoctools-5.74.0/src/docbookxslt.h
Examining data/kdoctools-5.74.0/src/meinproc_common.h
Examining data/kdoctools-5.74.0/src/xslt_kde.cpp
Examining data/kdoctools-5.74.0/src/checkXML5.cpp
Examining data/kdoctools-5.74.0/src/docbookl10nhelper.cpp
Examining data/kdoctools-5.74.0/src/meinproc_common.cpp
Examining data/kdoctools-5.74.0/src/docbookxslt_p.h
Examining data/kdoctools-5.74.0/src/xslt.cpp

FINAL RESULTS:

data/kdoctools-5.74.0/src/meinproc_common.cpp:13:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
static inline FILE *popen(const char *command, const char *mode)
data/kdoctools-5.74.0/src/meinproc_common.cpp:51:25:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        FILE *xmllint = popen(QFile::encodeName(cmd).constData(), "r");
data/kdoctools-5.74.0/src/xslt.cpp:72: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(URL, url.toLatin1().constData());
data/kdoctools-5.74.0/src/xslt.cpp:326:17:  [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(buffer + buffer_len, test.data());
data/kdoctools-5.74.0/src/xslt.cpp:334:17:  [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(buffer + buffer_len, test.data());
data/kdoctools-5.74.0/src/docbookl10nhelper.cpp:40:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (! outFile.open(QIODevice::WriteOnly)) {
data/kdoctools-5.74.0/src/docbookl10nhelper.cpp:82:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (! outFile.open(QIODevice::WriteOnly)) {
data/kdoctools-5.74.0/src/docbookl10nhelper.cpp:132:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (! i18nFile.open(QIODevice::ReadOnly)) {
data/kdoctools-5.74.0/src/meinproc.cpp:58:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    base += atoi((const char *)xmlGetProp(cur, (const xmlChar *)"header"));
data/kdoctools-5.74.0/src/meinproc_common.cpp:52:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[ 512 ];
data/kdoctools-5.74.0/src/meinproc_common.cpp:76:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file.open(stdout, QIODevice::WriteOnly);
data/kdoctools-5.74.0/src/meinproc_common.cpp:83:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file.open(QIODevice::WriteOnly);
data/kdoctools-5.74.0/src/meinproc_common.cpp:110:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file.open(QIODevice::WriteOnly);
data/kdoctools-5.74.0/src/xslt.cpp:71: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 URL[1024];
data/kdoctools-5.74.0/src/xslt.cpp:302: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[30000];
data/kdoctools-5.74.0/src/xslt_kde.cpp:13:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!fd.open(QIODevice::WriteOnly)) {

ANALYSIS SUMMARY:

Hits = 16
Lines analyzed = 1266 in approximately 0.17 seconds (7476 lines/second)
Physical Source Lines of Code (SLOC) = 939
Hits@level = [0]   2 [1]   0 [2]  11 [3]   0 [4]   5 [5]   0
Hits@level+ = [0+]  18 [1+]  16 [2+]  16 [3+]   5 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 19.1693 [1+] 17.0394 [2+] 17.0394 [3+] 5.32481 [4+] 5.32481 [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.