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/contextfree-3.3+dfsg1/src-unix/posixSystem.h
Examining data/contextfree-3.3+dfsg1/src-unix/pngCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-unix/posixVersion.cpp
Examining data/contextfree-3.3+dfsg1/src-unix/fdostream.h
Examining data/contextfree-3.3+dfsg1/src-unix/main.cpp
Examining data/contextfree-3.3+dfsg1/src-unix/pngCanvas.h
Examining data/contextfree-3.3+dfsg1/src-unix/posixTimer.cpp
Examining data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp
Examining data/contextfree-3.3+dfsg1/src-common/primShape.cpp
Examining data/contextfree-3.3+dfsg1/src-common/config.h
Examining data/contextfree-3.3+dfsg1/src-common/makeCFfilename.h
Examining data/contextfree-3.3+dfsg1/src-common/test-test.cpp
Examining data/contextfree-3.3+dfsg1/src-common/examples.h
Examining data/contextfree-3.3+dfsg1/src-common/rendererAST.h
Examining data/contextfree-3.3+dfsg1/src-common/CmdInfo.cpp
Examining data/contextfree-3.3+dfsg1/src-common/cfdgimpl.cpp
Examining data/contextfree-3.3+dfsg1/src-common/test.h
Examining data/contextfree-3.3+dfsg1/src-common/abstractPngCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-common/Rand64.cpp
Examining data/contextfree-3.3+dfsg1/src-common/backwards.h
Examining data/contextfree-3.3+dfsg1/src-common/pathIterator.h
Examining data/contextfree-3.3+dfsg1/src-common/ast.cpp
Examining data/contextfree-3.3+dfsg1/src-common/tiledCanvas.h
Examining data/contextfree-3.3+dfsg1/src-common/astexpression.h
Examining data/contextfree-3.3+dfsg1/src-common/bounds.h
Examining data/contextfree-3.3+dfsg1/src-common/ffCanvasDummy.cpp
Examining data/contextfree-3.3+dfsg1/src-common/cfdg.cpp
Examining data/contextfree-3.3+dfsg1/src-common/cfdgimpl.h
Examining data/contextfree-3.3+dfsg1/src-common/attributes.h
Examining data/contextfree-3.3+dfsg1/src-common/HSBColor.cpp
Examining data/contextfree-3.3+dfsg1/src-common/prettyint.cpp
Examining data/contextfree-3.3+dfsg1/src-common/stacktype.cpp
Examining data/contextfree-3.3+dfsg1/src-common/cfdg.h
Examining data/contextfree-3.3+dfsg1/src-common/xorshift64star.h
Examining data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp
Examining data/contextfree-3.3+dfsg1/src-common/primShape.h
Examining data/contextfree-3.3+dfsg1/src-common/CFscintilla.cpp
Examining data/contextfree-3.3+dfsg1/src-common/commandLineSystem.cpp
Examining data/contextfree-3.3+dfsg1/src-common/CFscintilla.h
Examining data/contextfree-3.3+dfsg1/src-common/tempfile.cpp
Examining data/contextfree-3.3+dfsg1/src-common/upload.h
Examining data/contextfree-3.3+dfsg1/src-common/variation.h
Examining data/contextfree-3.3+dfsg1/src-common/test-main.cpp
Examining data/contextfree-3.3+dfsg1/src-common/renderimpl.h
Examining data/contextfree-3.3+dfsg1/src-common/astexpression.cpp
Examining data/contextfree-3.3+dfsg1/src-common/tiledCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-common/variation.cpp
Examining data/contextfree-3.3+dfsg1/src-common/scanner.h
Examining data/contextfree-3.3+dfsg1/src-common/rendererAST.cpp
Examining data/contextfree-3.3+dfsg1/src-common/astreplacement.h
Examining data/contextfree-3.3+dfsg1/src-common/shape.h
Examining data/contextfree-3.3+dfsg1/src-common/test.cpp
Examining data/contextfree-3.3+dfsg1/src-common/abstractPngCanvas.h
Examining data/contextfree-3.3+dfsg1/src-common/agg-extras/agg_copy_rect.h
Examining data/contextfree-3.3+dfsg1/src-common/agg-extras/agg_trans_affine_1D.h
Examining data/contextfree-3.3+dfsg1/src-common/agg-extras/agg_trans_affine_time.h
Examining data/contextfree-3.3+dfsg1/src-common/agg-extras/agg_fast_ellipse.h
Examining data/contextfree-3.3+dfsg1/src-common/version.h
Examining data/contextfree-3.3+dfsg1/src-common/SVGCanvas.h
Examining data/contextfree-3.3+dfsg1/src-common/json3.hpp
Examining data/contextfree-3.3+dfsg1/src-common/aggCanvas.h
Examining data/contextfree-3.3+dfsg1/src-common/pathIterator.cpp
Examining data/contextfree-3.3+dfsg1/src-common/builder.h
Examining data/contextfree-3.3+dfsg1/src-common/shapeSTL.cpp
Examining data/contextfree-3.3+dfsg1/src-common/ffCanvas.h
Examining data/contextfree-3.3+dfsg1/src-common/astreplacement.cpp
Examining data/contextfree-3.3+dfsg1/src-common/builder.cpp
Examining data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-common/commandLineSystem.h
Examining data/contextfree-3.3+dfsg1/src-common/HSBColor.h
Examining data/contextfree-3.3+dfsg1/src-common/Rand64.h
Examining data/contextfree-3.3+dfsg1/src-common/shapeSTL.h
Examining data/contextfree-3.3+dfsg1/src-common/stacktype.h
Examining data/contextfree-3.3+dfsg1/src-common/shape.cpp
Examining data/contextfree-3.3+dfsg1/src-common/json_fwd.hpp
Examining data/contextfree-3.3+dfsg1/src-common/chunk_vector.h
Examining data/contextfree-3.3+dfsg1/src-common/aggCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-common/myrandom.h
Examining data/contextfree-3.3+dfsg1/src-common/tempfile.h
Examining data/contextfree-3.3+dfsg1/src-common/makeCFfilename.cpp
Examining data/contextfree-3.3+dfsg1/src-common/upload.cpp
Examining data/contextfree-3.3+dfsg1/src-common/ast.h
Examining data/contextfree-3.3+dfsg1/src-common/ffCanvas.cpp
Examining data/contextfree-3.3+dfsg1/src-common/bounds.cpp
Examining data/contextfree-3.3+dfsg1/src-common/CmdInfo.h
Examining data/contextfree-3.3+dfsg1/src-common/prettyint.h

FINAL RESULTS:

data/contextfree-3.3+dfsg1/src-common/builder.cpp:144:18:  [4] (shell) system:
  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.
    if (!m_CFDG->system()->isGuiProgram())
data/contextfree-3.3+dfsg1/src-common/builder.cpp:165:13:  [4] (shell) system:
  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.
    m_CFDG->system()->error();
data/contextfree-3.3+dfsg1/src-common/builder.cpp:184:13:  [4] (shell) system:
  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.
    m_CFDG->system()->syntaxError(err);
data/contextfree-3.3+dfsg1/src-common/builder.cpp:196:13:  [4] (shell) system:
  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.
    m_CFDG->system()->error();
data/contextfree-3.3+dfsg1/src-common/builder.cpp:198:17:  [4] (shell) system:
  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.
        m_CFDG->system()->syntaxError(err);
data/contextfree-3.3+dfsg1/src-common/builder.cpp:200:17:  [4] (shell) system:
  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.
        m_CFDG->system()->message("Error in %s at line %d - %s", 
data/contextfree-3.3+dfsg1/src-common/builder.cpp:206:10:  [4] (shell) system:
  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.
Builder::system()
data/contextfree-3.3+dfsg1/src-common/builder.cpp:208:20:  [4] (shell) system:
  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.
    return m_CFDG->system();
data/contextfree-3.3+dfsg1/src-common/builder.cpp:251:17:  [4] (shell) system:
  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.
        m_CFDG->system()->relativeFilePath(*m_currentPath, fname.c_str());
data/contextfree-3.3+dfsg1/src-common/builder.cpp:252:26:  [4] (shell) system:
  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.
    auto input = m_CFDG->system()->openFileForRead(path);
data/contextfree-3.3+dfsg1/src-common/builder.cpp:254:17:  [4] (shell) system:
  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.
        m_CFDG->system()->error();
data/contextfree-3.3+dfsg1/src-common/builder.cpp:256:17:  [4] (shell) system:
  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.
        m_CFDG->system()->message("Couldn't open rules file %s", path.c_str());
data/contextfree-3.3+dfsg1/src-common/builder.cpp:270:13:  [4] (shell) system:
  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.
    m_CFDG->system()->message("Reading rules file %s", fname.c_str());
data/contextfree-3.3+dfsg1/src-common/builder.h:104:25:  [4] (shell) system:
  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.
    AbstractSystem*     system();
data/contextfree-3.3+dfsg1/src-common/cfdg.cpp:211:52:  [4] (shell) system:
  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.
CFDG::ParseFile(const char* fname, AbstractSystem* system, int variation,
data/contextfree-3.3+dfsg1/src-common/cfdg.cpp:223:48:  [4] (shell) system:
  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.
            pCfdg = std::make_unique<CFDGImpl>(system);
data/contextfree-3.3+dfsg1/src-common/cfdgimpl.h:155:25:  [4] (shell) system:
  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.
        AbstractSystem* system() { return m_system; }
data/contextfree-3.3+dfsg1/src-common/commandLineSystem.cpp:78:31:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    std::size_t sz = 1 + std::vsnprintf(nullptr, 0, fmt, args1);
data/contextfree-3.3+dfsg1/src-common/commandLineSystem.cpp:82:10:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    std::vsnprintf(buf.data(), buf.size(), fmt, args2);
data/contextfree-3.3+dfsg1/src-common/json3.hpp:1053:86:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check))
data/contextfree-3.3+dfsg1/src-common/json3.hpp:5413:23:  [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.
                (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:7065:15:  [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.
        (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:8498:23:  [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.
                (std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:14124:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x",
data/contextfree-3.3+dfsg1/src-common/json3.hpp:14130:43:  [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.
                                    (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x",
data/contextfree-3.3+dfsg1/src-common/json3.hpp:14168:35:  [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.
                            (std::snprintf)(&sn[0], sn.size(), "%.2X", byte);
data/contextfree-3.3+dfsg1/src-common/json3.hpp:14262:27:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                    (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast<std::uint8_t>(s.back()));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:14463:36:  [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.
        std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:73:35:  [4] (shell) system:
  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.
        std::size_t mem = m_cfdg->system()->getPhysicalMemory();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:99:5:  [4] (shell) system:
  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.
    system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:100:5:  [4] (shell) system:
  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.
    system()->syntaxError(err);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:286:13:  [4] (shell) system:
  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.
            system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:287:13:  [4] (shell) system:
  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.
            system()->syntaxError(e);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:290:13:  [4] (shell) system:
  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.
            system()->catastrophicError(e.what());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:316:13:  [4] (shell) system:
  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.
            system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:317:13:  [4] (shell) system:
  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.
            system()->syntaxError(e);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:321:13:  [4] (shell) system:
  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.
            system()->catastrophicError(e.what());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:342:9:  [4] (shell) system:
  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.
        system()->message("Done.");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:495:9:  [4] (shell) system:
  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.
        system()->message("Precomputing time/space bounds");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:509:9:  [4] (shell) system:
  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.
        system()->message("Computing zoom");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:523:13:  [4] (shell) system:
  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.
            system()->catastrophicError(e.what());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:537:9:  [4] (shell) system:
  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.
        system()->message("Generating frame %d of %d", frameCount, frames);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:550:17:  [4] (shell) system:
  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.
                system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:551:17:  [4] (shell) system:
  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.
                system()->syntaxError(err);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:568:13:  [4] (shell) system:
  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.
            system()->message("An error occurred generating frame %d", frameCount);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:579:9:  [4] (shell) system:
  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.
        system()->message("Animation of %d frames complete", frames);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:588:9:  [4] (shell) system:
  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.
        system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:589:9:  [4] (shell) system:
  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.
        system()->message("A shape has undefined or infinite state: %s", m_cfdg->decodeShapeName(s.mShapeType).c_str());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:613:9:  [4] (shell) system:
  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.
        system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:614:9:  [4] (shell) system:
  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.
        system()->message("Shape with no rules encountered: %s", m_cfdg->decodeShapeName(s.mShapeType).c_str());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:700:9:  [4] (shell) system:
  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.
        system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:701:9:  [4] (shell) system:
  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.
        system()->message("A shape has undefined or infinite state: %s", m_cfdg->decodeShapeName(fs.mShapeType).c_str());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:749:36:  [4] (shell) system:
  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.
    m_unfinishedFiles.emplace_back(system(), AbstractSystem::ExpansionTemp,
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:754:36:  [4] (shell) system:
  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.
    m_unfinishedFiles.emplace_back(system(), AbstractSystem::ExpansionTemp,
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:759:5:  [4] (shell) system:
  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.
    system()->message("Writing %s temp files %d & %d",
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:770:28:  [4] (shell) system:
  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.
        outStats.mSystem = system();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:784:17:  [4] (shell) system:
  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.
                system()->stats(outStats);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:791:9:  [4] (shell) system:
  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.
        system()->message("Cannot open temporary file for expansions");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:814:28:  [4] (shell) system:
  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.
        outStats.mSystem = system();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:826:17:  [4] (shell) system:
  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.
                system()->stats(outStats);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:833:9:  [4] (shell) system:
  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.
        system()->message("Cannot open temporary file for expansions");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:837:5:  [4] (shell) system:
  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.
    system()->message("Resorting expansions");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:852:24:  [4] (shell) system:
  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.
    outStats.mSystem = system();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:862:13:  [4] (shell) system:
  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.
            system()->stats(outStats);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:876:34:  [4] (shell) system:
  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.
    m_finishedFiles.emplace_back(system(), AbstractSystem::ShapeTemp, ++mFinishedFileCount);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:882:13:  [4] (shell) system:
  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.
            system()->message("Sorting shapes...");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:885:28:  [4] (shell) system:
  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.
        outStats.mSystem = system();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:893:17:  [4] (shell) system:
  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.
                system()->stats(outStats);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:900:9:  [4] (shell) system:
  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.
        system()->message("Cannot open temporary file for shapes");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:950:24:  [4] (shell) system:
  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.
            TempFile t(system(), AbstractSystem::MergeTemp, ++mFinishedFileCount);
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:964:21:  [4] (shell) system:
  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.
                    system()->message("Cannot open temporary file for shapes");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:968:17:  [4] (shell) system:
  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.
                system()->message("Merging temp files %d through %d",
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:1030:13:  [4] (shell) system:
  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.
            system()->error();
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:1031:13:  [4] (shell) system:
  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.
            system()->message("Non drawable shape with no rules: %s",
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:1062:13:  [4] (shell) system:
  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.
            system()->message("Sorting shapes...");
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:1078:9:  [4] (shell) system:
  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.
        system()->catastrophicError(e.what());
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:1090:5:  [4] (shell) system:
  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.
    system()->stats(m_stats);
data/contextfree-3.3+dfsg1/src-common/renderimpl.h:103:25:  [4] (shell) system:
  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.
        AbstractSystem* system() { return m_cfdg->system(); }
data/contextfree-3.3+dfsg1/src-common/renderimpl.h:103:51:  [4] (shell) system:
  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.
        AbstractSystem* system() { return m_cfdg->system(); }
data/contextfree-3.3+dfsg1/src-common/tempfile.cpp:74:36:  [4] (shell) system:
  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.
TempFile::TempFile(AbstractSystem* system, AbstractSystem::TempType type, int num)
data/contextfree-3.3+dfsg1/src-common/tempfile.cpp:75:15:  [4] (shell) system:
  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.
    : mSystem(system), mType(type), mNum(num), mWritten(false)
data/contextfree-3.3+dfsg1/src-unix/main.cpp:448:23:  [4] (shell) system:
  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.
    CommandLineSystem system(opts.quiet);
data/contextfree-3.3+dfsg1/src-unix/main.cpp:451:22:  [4] (shell) system:
  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.
        auto temps = system.findTempFiles();
data/contextfree-3.3+dfsg1/src-unix/main.cpp:459:25:  [4] (shell) system:
  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.
                    if (system.deleteTempFile(temp))
data/contextfree-3.3+dfsg1/src-unix/main.cpp:462:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                        fprintf(stderr, FileFormat "\n", temp.c_str());
data/contextfree-3.3+dfsg1/src-unix/main.cpp:467:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stderr, FileFormat "\n", temp.c_str());
data/contextfree-3.3+dfsg1/src-unix/main.cpp:476:62:  [4] (shell) system:
  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.
    cfdg_ptr myDesign = CFDG::ParseFile(opts.input.c_str(), &system,
data/contextfree-3.3+dfsg1/src-unix/main.cpp:584:29:  [4] (shell) system:
  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.
    if (myCanvas->mError || system.error(false) || TheRenderer->requestStop) {
data/contextfree-3.3+dfsg1/src-unix/main.cpp:625:18:  [4] (shell) system:
  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.
        if (std::system(opts.displayExec.c_str()) != 0)
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:992:75:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                             : functype == Vec   ? static_cast<int>(floor(random))
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:1200:24:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                *res = random * fabs(a[1] - a[0]) + fmin(a[0], a[1]);
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:2433:71:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                                    arguments->getChild(0)->evaluate(&random, 1) != 1)
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:2436:59:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                        } else if (static_cast<int>(floor(random)) < 2 ||
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:2437:59:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                                   static_cast<int>(floor(random)) > AST::MaxVectorSize)
data/contextfree-3.3+dfsg1/src-common/astexpression.cpp:3377:51:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
            j["vector length"] = static_cast<int>(random);
data/contextfree-3.3+dfsg1/src-common/astexpression.h:232:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        double random;
data/contextfree-3.3+dfsg1/src-common/ffCanvas.cpp:384:26:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
        char* tempname = tmpnam(buf);
data/contextfree-3.3+dfsg1/src-common/variation.cpp:101:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
int Variation::random(int letters)
data/contextfree-3.3+dfsg1/src-common/variation.cpp:136:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      int v = Variation::random();
data/contextfree-3.3+dfsg1/src-common/variation.h:46:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    static int random(int letters = 3);
data/contextfree-3.3+dfsg1/src-unix/main.cpp:422:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    int var = Variation::random(6);
data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp:82:72:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *                                              tmpenv = getenv("TMPDIR");
data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp:83:72:  [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.
    if (!tmpenv || stat(tmpenv, &sb) || !S_ISDIR(sb.st_mode)) tmpenv = getenv("TEMP");
data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp:84:72:  [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.
    if (!tmpenv || stat(tmpenv, &sb) || !S_ISDIR(sb.st_mode)) tmpenv = getenv("TMP");
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp:284:9:  [2] (buffer) wchar_t:
  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.
        wchar_t wpath[32768];
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp:285:15:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
        if (::MultiByteToWideChar(CP_UTF8, 0, opath, -1, wpath, 32768))
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp:286:25:  [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).
            mOutputFile.open(wpath, std::ios::binary | std::ios::trunc | std::ios::out);
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp:288:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        mOutputFile.open(opath, std::ios::binary | std::ios::trunc | std::ios::out);
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.h:57: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 mEndline[82];
data/contextfree-3.3+dfsg1/src-common/ffCanvas.cpp:379: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[L_tmpnam_s];
data/contextfree-3.3+dfsg1/src-common/ffCanvas.cpp:383: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[L_tmpnam];
data/contextfree-3.3+dfsg1/src-common/json3.hpp:1441: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.
((struct { char v[sizeof(void) * 2]; } *) 1) \
data/contextfree-3.3+dfsg1/src-common/json3.hpp:7007:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, vec.data(), sizeof(NumberType));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:12566:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(vec.data(), &n, sizeof(NumberType));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:12597:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        std::memcpy(&result, &x, sizeof(x));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:12695:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    std::memcpy(&target, &source, sizeof(Source));
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:120: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(static_cast<void*>(dest + current),
data/contextfree-3.3+dfsg1/src-common/test-test.cpp:296:9:  [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).
    out.open();
data/contextfree-3.3+dfsg1/src-common/test.cpp:198:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[20];
data/contextfree-3.3+dfsg1/src-common/variation.cpp:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[100];
data/contextfree-3.3+dfsg1/src-common/variation.cpp:145:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int v = atoi(buf);
data/contextfree-3.3+dfsg1/src-unix/pngCanvas.cpp:96:32:  [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).
                out.reset(std::fopen(outfilename, "wb"));
data/contextfree-3.3+dfsg1/src-common/CFscintilla.cpp:60:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        auto len = std::strlen(utf8ops[op]);
data/contextfree-3.3+dfsg1/src-common/SVGCanvas.cpp:295:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        mLength = static_cast<int>(std::strlen(mDescription));
data/contextfree-3.3+dfsg1/src-common/commandLineSystem.cpp:134:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            return std::make_unique<imemstream>(cfdg, std::strlen(cfdg));
data/contextfree-3.3+dfsg1/src-common/json3.hpp:3935:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return std::fgetc(m_file);
data/contextfree-3.3+dfsg1/src-common/json3.hpp:4242: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).
                        std::strlen(reinterpret_cast<const char*>(b))) {}
data/contextfree-3.3+dfsg1/src-common/renderimpl.cpp:463:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::vector<Bounds>::iterator write, read, end;
data/contextfree-3.3+dfsg1/src-common/shape.cpp:110:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ShapeBase::read(std::istream& is)
data/contextfree-3.3+dfsg1/src-common/shape.cpp:112:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(reinterpret_cast<char *>(this), offsetof(ShapeBase, mAreaCache));
data/contextfree-3.3+dfsg1/src-common/shape.cpp:124:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Shape::read(std::istream& is)
data/contextfree-3.3+dfsg1/src-common/shape.cpp:126:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ShapeBase::read(is);
data/contextfree-3.3+dfsg1/src-common/shape.cpp:151:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
FinishedShape::read(std::istream& is)
data/contextfree-3.3+dfsg1/src-common/shape.cpp:153:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ShapeBase::read(is);
data/contextfree-3.3+dfsg1/src-common/shape.cpp:154:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(reinterpret_cast<char *>(&mBounds), sizeof(Bounds));
data/contextfree-3.3+dfsg1/src-common/shape.h:102:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(std::istream& is);
data/contextfree-3.3+dfsg1/src-common/shape.h:150:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(std::istream& is);
data/contextfree-3.3+dfsg1/src-common/shape.h:197:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(std::istream& is);
data/contextfree-3.3+dfsg1/src-common/shape.h:201:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline std::istream& operator>>(std::istream& is, Shape& s) { s.read(is); return is; }
data/contextfree-3.3+dfsg1/src-common/shape.h:203:73:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
inline std::istream& operator>>(std::istream& is, FinishedShape& s) { s.read(is); return is; }
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:210:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
StackRule::read(std::istream& is)
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:215:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(reinterpret_cast<char*>(&(st[1].typeInfo)), sizeof(AST::ASTparameters*));
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:220:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                is.read(reinterpret_cast<char*>(&*it), it.type().mTuplesize * sizeof(StackType));
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:263:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is.read(reinterpret_cast<char*>(&size), sizeof(uint64_t));
data/contextfree-3.3+dfsg1/src-common/stacktype.cpp:267:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        s->read(is);
data/contextfree-3.3+dfsg1/src-common/stacktype.h:195:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void        read(std::istream& is);
data/contextfree-3.3+dfsg1/src-unix/pngCanvas.cpp:163:35:  [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).
        comments[0].text_length = strlen(comments[0].text);
data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp:115:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int tfd = mkstemps(b.get(), (int)std::strlen(TempSuffixes[tt]));
data/contextfree-3.3+dfsg1/src-unix/posixSystem.cpp:149: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).
    std::size_t len = std::strlen(TempPrefixAll);

ANALYSIS SUMMARY:

Hits = 149
Lines analyzed = 53718 in approximately 1.23 seconds (43543 lines/second)
Physical Source Lines of Code (SLOC) = 31412
Hits@level = [0]   1 [1]  27 [2]  18 [3]  15 [4]  89 [5]   0
Hits@level+ = [0+] 150 [1+] 149 [2+] 122 [3+] 104 [4+]  89 [5+]   0
Hits/KSLOC@level+ = [0+] 4.77525 [1+] 4.74341 [2+] 3.88387 [3+] 3.31084 [4+] 2.83331 [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.