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/source-highlight-3.1.9/src/envmapper.c
Examining data/source-highlight-3.1.9/src/envmapper.h
Examining data/source-highlight-3.1.9/src/cmdline.h
Examining data/source-highlight-3.1.9/src/check-regexp_cmd.h
Examining data/source-highlight-3.1.9/src/source-highlight-settings.cpp
Examining data/source-highlight-3.1.9/src/source-highlight.cc
Examining data/source-highlight-3.1.9/src/check-regexp_cmd.c
Examining data/source-highlight-3.1.9/src/cmdline.c
Examining data/source-highlight-3.1.9/src/check-regexp.cpp
Examining data/source-highlight-3.1.9/src/source-highlight-cgi.cc
Examining data/source-highlight-3.1.9/build-aux/snippet/_Noreturn.h
Examining data/source-highlight-3.1.9/build-aux/snippet/c++defs.h
Examining data/source-highlight-3.1.9/build-aux/snippet/warn-on-use.h
Examining data/source-highlight-3.1.9/build-aux/snippet/arg-nonnull.h
Examining data/source-highlight-3.1.9/gl/dosname.h
Examining data/source-highlight-3.1.9/gl/dirent.in.h
Examining data/source-highlight-3.1.9/gl/getopt_int.h
Examining data/source-highlight-3.1.9/gl/time.in.h
Examining data/source-highlight-3.1.9/gl/string.in.h
Examining data/source-highlight-3.1.9/gl/stripslash.c
Examining data/source-highlight-3.1.9/gl/stdlib.in.h
Examining data/source-highlight-3.1.9/gl/basename-lgpl.c
Examining data/source-highlight-3.1.9/gl/stdbool.in.h
Examining data/source-highlight-3.1.9/gl/strdup.c
Examining data/source-highlight-3.1.9/gl/gettext.h
Examining data/source-highlight-3.1.9/gl/unistd.in.h
Examining data/source-highlight-3.1.9/gl/dirname-lgpl.c
Examining data/source-highlight-3.1.9/gl/getopt1.c
Examining data/source-highlight-3.1.9/gl/sys_stat.in.h
Examining data/source-highlight-3.1.9/gl/stddef.in.h
Examining data/source-highlight-3.1.9/gl/memset.c
Examining data/source-highlight-3.1.9/gl/progname.c
Examining data/source-highlight-3.1.9/gl/mkdir.c
Examining data/source-highlight-3.1.9/gl/dirname.h
Examining data/source-highlight-3.1.9/gl/getopt.in.h
Examining data/source-highlight-3.1.9/gl/getopt.c
Examining data/source-highlight-3.1.9/gl/progname.h
Examining data/source-highlight-3.1.9/gl/malloc.c
Examining data/source-highlight-3.1.9/lib/srchilite/langdefscanner.cc
Examining data/source-highlight-3.1.9/lib/srchilite/readtags.c
Examining data/source-highlight-3.1.9/lib/srchilite/textstyleformatterfactory.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/debuglistener.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/textstyleformattercollection.h
Examining data/source-highlight-3.1.9/lib/srchilite/namedsubexpslangelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/stylescanner.cc
Examining data/source-highlight-3.1.9/lib/srchilite/textstyles.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstateprinter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/stringdef.h
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlightutils.h
Examining data/source-highlight-3.1.9/lib/srchilite/verbosity.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/ctagsformatter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/textstyle.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/langelems.h
Examining data/source-highlight-3.1.9/lib/srchilite/delimitedlangelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/eventgenerator.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightrule.h
Examining data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.h
Examining data/source-highlight-3.1.9/lib/srchilite/stringtable.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/formatter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/parserinfo.h
Examining data/source-highlight-3.1.9/lib/srchilite/srcuntabifier.h
Examining data/source-highlight-3.1.9/lib/srchilite/langelemsprinter.h
Examining data/source-highlight-3.1.9/lib/srchilite/languageinfer.h
Examining data/source-highlight-3.1.9/lib/srchilite/keys.h
Examining data/source-highlight-3.1.9/lib/srchilite/statelangelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/regexranges.h
Examining data/source-highlight-3.1.9/lib/srchilite/stringdef.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/styleparser.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstatebuilder.h
Examining data/source-highlight-3.1.9/lib/srchilite/docgenerator.cc
Examining data/source-highlight-3.1.9/lib/srchilite/regexrulefactory.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/delimitedlangelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/statestartlangelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/ctagsformatter.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightrulefactory.h
Examining data/source-highlight-3.1.9/lib/srchilite/regexpreprocessor.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/namedsubexpslangelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/versions.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/textstyleformatterfactory.h
Examining data/source-highlight-3.1.9/lib/srchilite/parserexception.h
Examining data/source-highlight-3.1.9/lib/srchilite/langdefmanager.h
Examining data/source-highlight-3.1.9/lib/srchilite/fileinfo.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/verbosity.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstate.h
Examining data/source-highlight-3.1.9/lib/srchilite/regexhighlightrule.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/textstyleformatter.h
Examining data/source-highlight-3.1.9/lib/srchilite/substfun.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstatebuilder.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/settings.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/regexhighlightrule.h
Examining data/source-highlight-3.1.9/lib/srchilite/fileutil.cc
Examining data/source-highlight-3.1.9/lib/srchilite/ioexception.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/stopwatch.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/stylekey.h
Examining data/source-highlight-3.1.9/lib/srchilite/instances.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightevent.h
Examining data/source-highlight-3.1.9/lib/srchilite/statestartlangelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/ctagscollector.h
Examining data/source-highlight-3.1.9/lib/srchilite/regexrulefactory.h
Examining data/source-highlight-3.1.9/lib/srchilite/doctemplate.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/colors.h
Examining data/source-highlight-3.1.9/lib/srchilite/ioexception.h
Examining data/source-highlight-3.1.9/lib/srchilite/langelemsprinter.hpp
Examining data/source-highlight-3.1.9/lib/srchilite/sourcefilehighlighter.h
Examining data/source-highlight-3.1.9/lib/srchilite/stylefileparser.h
Examining data/source-highlight-3.1.9/lib/srchilite/outlangdefparserfun.h
Examining data/source-highlight-3.1.9/lib/srchilite/langelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/linenumgenerator.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/bufferedoutput.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstatebuilder.hpp
Examining data/source-highlight-3.1.9/lib/srchilite/langelems.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/formatter.h
Examining data/source-highlight-3.1.9/lib/srchilite/langelemsprinter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/highlighttoken.h
Examining data/source-highlight-3.1.9/lib/srchilite/langdefparser.h
Examining data/source-highlight-3.1.9/lib/srchilite/versions.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstate.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/formattermanager.h
Examining data/source-highlight-3.1.9/lib/srchilite/bufferedoutput.h
Examining data/source-highlight-3.1.9/lib/srchilite/readtags.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlighttoken.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.cc
Examining data/source-highlight-3.1.9/lib/srchilite/statelangelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlighter.h
Examining data/source-highlight-3.1.9/lib/srchilite/stopwatch.h
Examining data/source-highlight-3.1.9/lib/srchilite/ctagscollector.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/highlightrule.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/langdefmanager.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/formatterfactory.h
Examining data/source-highlight-3.1.9/lib/srchilite/stylefileparser.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlighter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/formattermanager.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/debuglistener.h
Examining data/source-highlight-3.1.9/lib/srchilite/langdefparserfun.h
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlightutils.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/stringtable.h
Examining data/source-highlight-3.1.9/lib/srchilite/langdefparser.cc
Examining data/source-highlight-3.1.9/lib/srchilite/lineranges.h
Examining data/source-highlight-3.1.9/lib/srchilite/doctemplate.h
Examining data/source-highlight-3.1.9/lib/srchilite/outlangdefscanner.cc
Examining data/source-highlight-3.1.9/lib/srchilite/wordtokenizer.h
Examining data/source-highlight-3.1.9/lib/srchilite/parsestruct.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstatebuilder_dbtab.cc
Examining data/source-highlight-3.1.9/lib/srchilite/lineranges.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/regexranges.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/substfun.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/utils.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/styleparser.cc
Examining data/source-highlight-3.1.9/lib/srchilite/regexpreprocessor.h
Examining data/source-highlight-3.1.9/lib/srchilite/stylecssparser.h
Examining data/source-highlight-3.1.9/lib/srchilite/settings.h
Examining data/source-highlight-3.1.9/lib/srchilite/textstylebuilder.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlighteventlistener.h
Examining data/source-highlight-3.1.9/lib/srchilite/formatterparams.h
Examining data/source-highlight-3.1.9/lib/srchilite/chartranslator.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightbuilderexception.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/highlightrulefactory.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/wordtokenizer.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/tostringcollection.h
Examining data/source-highlight-3.1.9/lib/srchilite/sourcefilehighlighter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/languageinfer.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/stringlistlangelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/langmap.h
Examining data/source-highlight-3.1.9/lib/srchilite/langmap.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/outlangdefscanner.h
Examining data/source-highlight-3.1.9/lib/srchilite/fileinfo.h
Examining data/source-highlight-3.1.9/lib/srchilite/parserexception.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/langelem.h
Examining data/source-highlight-3.1.9/lib/srchilite/parsestyles.h
Examining data/source-highlight-3.1.9/lib/srchilite/linebuffer.h
Examining data/source-highlight-3.1.9/lib/srchilite/highlightstateprinter.h
Examining data/source-highlight-3.1.9/lib/srchilite/preformatter.h
Examining data/source-highlight-3.1.9/lib/srchilite/preformatter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/docgenerator.h
Examining data/source-highlight-3.1.9/lib/srchilite/stylecssparser.cc
Examining data/source-highlight-3.1.9/lib/srchilite/highlightbuilderexception.h
Examining data/source-highlight-3.1.9/lib/srchilite/refposition.h
Examining data/source-highlight-3.1.9/lib/srchilite/langdefscanner.h
Examining data/source-highlight-3.1.9/lib/srchilite/langelemsprinter_dbtab.cc
Examining data/source-highlight-3.1.9/lib/srchilite/stylecssscanner.cc
Examining data/source-highlight-3.1.9/lib/srchilite/matchingparameters.h
Examining data/source-highlight-3.1.9/lib/srchilite/vardefinitions.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/vardefinitions.h
Examining data/source-highlight-3.1.9/lib/srchilite/instances.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/colormap.h
Examining data/source-highlight-3.1.9/lib/srchilite/textstyle.h
Examining data/source-highlight-3.1.9/lib/srchilite/ctagsmanager.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/test_readtags_main.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/textstyleformatter.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/linenumgenerator.h
Examining data/source-highlight-3.1.9/lib/srchilite/chartranslator.cc
Examining data/source-highlight-3.1.9/lib/srchilite/ctagsmanager.h
Examining data/source-highlight-3.1.9/lib/srchilite/stringlistlangelem.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/fileutil.h
Examining data/source-highlight-3.1.9/lib/srchilite/textstylebuilder.cpp
Examining data/source-highlight-3.1.9/lib/srchilite/utils.h
Examining data/source-highlight-3.1.9/lib/srchilite/yywrap.c
Examining data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.h
Examining data/source-highlight-3.1.9/lib/srchilite/srcuntabifier.cpp
Examining data/source-highlight-3.1.9/lib/examples/styleformatter-main.cpp
Examining data/source-highlight-3.1.9/lib/examples/infoformatter.h
Examining data/source-highlight-3.1.9/lib/examples/styleformatterfactory.h
Examining data/source-highlight-3.1.9/lib/examples/infoformatter-main.cpp
Examining data/source-highlight-3.1.9/lib/examples/styleformatter.h
Examining data/source-highlight-3.1.9/lib/examples/source-highlight-console-main.cpp
Examining data/source-highlight-3.1.9/lib/compat/compat_dirent.h
Examining data/source-highlight-3.1.9/lib/compat/getopt_int.h
Examining data/source-highlight-3.1.9/lib/compat/getopt.h
Examining data/source-highlight-3.1.9/lib/compat/compat_dirent.cpp
Examining data/source-highlight-3.1.9/lib/compat/unistd.h
Examining data/source-highlight-3.1.9/lib/compat/getopt1.c
Examining data/source-highlight-3.1.9/lib/compat/getopt.c
Examining data/source-highlight-3.1.9/lib/tests/test_linenum_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_langinfer_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_regexpreprocessor_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_filenotfound_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/logformatter.h
Examining data/source-highlight-3.1.9/lib/tests/test_ctagsformatter_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_exception_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/asserttestexit.h
Examining data/source-highlight-3.1.9/lib/tests/test_langmap_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_textstyle_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_ctagsmanager_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_settings_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_untabifier_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_regexrules_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/logformatter.cpp
Examining data/source-highlight-3.1.9/lib/tests/stdboosterror.h
Examining data/source-highlight-3.1.9/lib/tests/test_regexranges_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_highlighter_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_sourcehighlight_errors_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_sourcehighlight_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_langdefmanager_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_style_errors_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_formatreferences_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_highlightbuilder_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_buffered_output_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_textstyleformatter_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_sourcefilehighlighter_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_formatter_manager_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_events_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_wordtokenizer_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_lineranges_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_textgenerator_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_utils_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_debuglistener_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_outlangparser_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_textstyleformatterfactory_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_outlang_errors_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_ctagscollector_main.cpp
Examining data/source-highlight-3.1.9/lib/tests/test_instances_main.cpp
Examining data/source-highlight-3.1.9/doc/instances_example.cpp
Examining data/source-highlight-3.1.9/tests/test_refs.h
Examining data/source-highlight-3.1.9/tests/test_line_at_the_end.c
Examining data/source-highlight-3.1.9/tests/test_extreme_comment2.cpp
Examining data/source-highlight-3.1.9/tests/test_refs.cpp
Examining data/source-highlight-3.1.9/tests/test_vardecl.cc
Examining data/source-highlight-3.1.9/tests/test_extreme_comment.cpp
Examining data/source-highlight-3.1.9/tests/test_nobgcolor.cpp
Examining data/source-highlight-3.1.9/tests/test_comments.cc
Examining data/source-highlight-3.1.9/tests/test.h
Examining data/source-highlight-3.1.9/tests/test_template.cc
Examining data/source-highlight-3.1.9/tests/test_c.c
Examining data/source-highlight-3.1.9/tests/test_extreme_comment3.cpp
Examining data/source-highlight-3.1.9/tests/test_no_line_at_the_end.c

FINAL RESULTS:

data/source-highlight-3.1.9/gl/sys_stat.in.h:415:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
#   define lchmod chmod
data/source-highlight-3.1.9/gl/sys_stat.in.h:419:34:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int,
data/source-highlight-3.1.9/gl/unistd.in.h:242:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - "
data/source-highlight-3.1.9/gl/unistd.in.h:256:11:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   undef chown
data/source-highlight-3.1.9/gl/unistd.in.h:257:12:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
#   define chown rpl_chown
data/source-highlight-3.1.9/gl/unistd.in.h:259:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)
data/source-highlight-3.1.9/gl/unistd.in.h:261:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid));
data/source-highlight-3.1.9/gl/unistd.in.h:264:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)
data/source-highlight-3.1.9/gl/unistd.in.h:267:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid));
data/source-highlight-3.1.9/gl/unistd.in.h:269:19:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_CXXALIASWARN (chown);
data/source-highlight-3.1.9/gl/unistd.in.h:271:9:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
# undef chown
data/source-highlight-3.1.9/gl/unistd.in.h:273:18:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
_GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
data/source-highlight-3.1.9/gl/unistd.in.h:1206:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
#   define readlink rpl_readlink
data/source-highlight-3.1.9/gl/unistd.in.h:1208:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_FUNCDECL_RPL (readlink, ssize_t,
data/source-highlight-3.1.9/gl/unistd.in.h:1211:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_CXXALIAS_RPL (readlink, ssize_t,
data/source-highlight-3.1.9/gl/unistd.in.h:1215:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_FUNCDECL_SYS (readlink, ssize_t,
data/source-highlight-3.1.9/gl/unistd.in.h:1219:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_CXXALIAS_SYS (readlink, ssize_t,
data/source-highlight-3.1.9/gl/unistd.in.h:1222:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_CXXALIASWARN (readlink);
data/source-highlight-3.1.9/gl/unistd.in.h:1224:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
# undef readlink
data/source-highlight-3.1.9/gl/unistd.in.h:1226:18:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
_GL_WARN_ON_USE (readlink, "readlink is unportable - "
data/source-highlight-3.1.9/gl/unistd.in.h:231:18:  [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.
_GL_WARN_ON_USE (access, "the access function is a security risk - "
data/source-highlight-3.1.9/gl/unistd.in.h:738:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_FUNCDECL_SYS (getlogin, char *, (void));
data/source-highlight-3.1.9/gl/unistd.in.h:740:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIAS_SYS (getlogin, char *, (void));
data/source-highlight-3.1.9/gl/unistd.in.h:741:19:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_CXXALIASWARN (getlogin);
data/source-highlight-3.1.9/gl/unistd.in.h:743:9:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
# undef getlogin
data/source-highlight-3.1.9/gl/unistd.in.h:745:18:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
_GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
data/source-highlight-3.1.9/lib/compat/compat_dirent.cpp:47:13:  [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(dir->dd_dir.d_name, dir->dd_dta.name);
data/source-highlight-3.1.9/lib/srchilite/ctagsmanager.cpp:38: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.
    int res = system(ctagsCmd.c_str());
data/source-highlight-3.1.9/lib/srchilite/langdefparser.cc:865: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.
#  define YYFPRINTF fprintf
data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.cc:796: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.
#  define YYFPRINTF fprintf
data/source-highlight-3.1.9/lib/srchilite/readtags.c:372:6:  [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 (result, str);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:895:2:  [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, Usage, ProgramName);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:928:8:  [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, Usage, ProgramName);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:941:8:  [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, Usage, ProgramName);
data/source-highlight-3.1.9/lib/srchilite/stylecssparser.cc:733: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.
#  define YYFPRINTF fprintf
data/source-highlight-3.1.9/lib/srchilite/styleparser.cc:734: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.
#  define YYFPRINTF fprintf
data/source-highlight-3.1.9/src/check-regexp_cmd.c:238:3:  [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(result, s);
data/source-highlight-3.1.9/src/cmdline.c:779:3:  [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(result, s);
data/source-highlight-3.1.9/src/envmapper.c:85:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(new_token, "--%s", token);
data/source-highlight-3.1.9/gl/getopt.c:101:14:  [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.
extern char *getenv ();
data/source-highlight-3.1.9/gl/getopt.c:237:47:  [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.
  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
data/source-highlight-3.1.9/gl/getopt.c:1157:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char *const *argv, const char *optstring)
data/source-highlight-3.1.9/gl/getopt.c:1192:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/source-highlight-3.1.9/gl/getopt.in.h:57:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/source-highlight-3.1.9/gl/getopt.in.h:58:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt_long
data/source-highlight-3.1.9/gl/getopt.in.h:68:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/source-highlight-3.1.9/gl/getopt.in.h:68:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/source-highlight-3.1.9/gl/getopt.in.h:69:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/source-highlight-3.1.9/gl/getopt.in.h:69:35:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/source-highlight-3.1.9/gl/getopt.in.h:230:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/source-highlight-3.1.9/gl/getopt.in.h:234:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/source-highlight-3.1.9/gl/getopt1.c:40:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/source-highlight-3.1.9/gl/getopt1.c:105:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/source-highlight-3.1.9/gl/stdlib.in.h:599:12:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
#   define realpath rpl_realpath
data/source-highlight-3.1.9/gl/stdlib.in.h:601:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
data/source-highlight-3.1.9/gl/stdlib.in.h:603:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
data/source-highlight-3.1.9/gl/stdlib.in.h:606:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
data/source-highlight-3.1.9/gl/stdlib.in.h:609:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
data/source-highlight-3.1.9/gl/stdlib.in.h:611:19:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_CXXALIASWARN (realpath);
data/source-highlight-3.1.9/gl/stdlib.in.h:613:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
# undef realpath
data/source-highlight-3.1.9/gl/stdlib.in.h:615:18:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
_GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module "
data/source-highlight-3.1.9/lib/compat/getopt.c:95:14:  [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.
extern char *getenv ();
data/source-highlight-3.1.9/lib/compat/getopt.c:230:47:  [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.
  d->__posixly_correct = posixly_correct || !!getenv ("POSIXLY_CORRECT");
data/source-highlight-3.1.9/lib/compat/getopt.c:1102:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char *const *argv, const char *optstring)
data/source-highlight-3.1.9/lib/compat/getopt.c:1124:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/source-highlight-3.1.9/lib/compat/getopt.h:38:9:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt
data/source-highlight-3.1.9/lib/compat/getopt.h:39:9:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# undef getopt_long
data/source-highlight-3.1.9/lib/compat/getopt.h:48:10:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/source-highlight-3.1.9/lib/compat/getopt.h:48:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt __GETOPT_ID (getopt)
data/source-highlight-3.1.9/lib/compat/getopt.h:49:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/source-highlight-3.1.9/lib/compat/getopt.h:49:35:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
# define getopt_long __GETOPT_ID (getopt_long)
data/source-highlight-3.1.9/lib/compat/getopt.h:203:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/source-highlight-3.1.9/lib/compat/getopt.h:207:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv,
data/source-highlight-3.1.9/lib/compat/getopt1.c:35:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int argc, char *__getopt_argv_const *argv, const char *options,
data/source-highlight-3.1.9/lib/compat/getopt1.c:100:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:58:24:  [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 *home = getenv("HOME");
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:64:24:  [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.
    char * homedrive = getenv("HOMEDRIVE");	// Drive containing Windows
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:65:23:  [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.
    char * homepath = getenv("HOMEPATH");	// Path to the user directory into the Windows drive
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:71:12:  [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.
    home = getenv("USERPROFILE");
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:163:28:  [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 *_dataDir = getenv("SOURCE_HIGHLIGHT_DATADIR");
data/source-highlight-3.1.9/lib/tests/test_settings_main.cpp:18:25:  [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 *_home = getenv("HOME");
data/source-highlight-3.1.9/src/check-regexp_cmd.c:342:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hV", long_options, &option_index);
data/source-highlight-3.1.9/src/cmdline.c:1379:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVi:o:s:f:dc:T:t:H:F:n::vqg::", long_options, &option_index);
data/source-highlight-3.1.9/src/envmapper.c:96:20:  [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.
  request_method = getenv(ENV_REQUEST_METHOD);
data/source-highlight-3.1.9/src/envmapper.c:102:20:  [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.
    query_string = getenv(ENV_QUERY_STRING);
data/source-highlight-3.1.9/gl/dirent.in.h:41: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 d_name[1];
data/source-highlight-3.1.9/gl/dirname-lgpl.c:81:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (dir, file, length);
data/source-highlight-3.1.9/gl/gettext.h:216: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/source-highlight-3.1.9/gl/gettext.h:218: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[1024];
data/source-highlight-3.1.9/gl/gettext.h:226:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/source-highlight-3.1.9/gl/gettext.h:228:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/source-highlight-3.1.9/gl/gettext.h:262: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/source-highlight-3.1.9/gl/gettext.h:264: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[1024];
data/source-highlight-3.1.9/gl/gettext.h:272:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/source-highlight-3.1.9/gl/gettext.h:274:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/source-highlight-3.1.9/gl/stdlib.in.h:382:12:  [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).
#   define mkstemp rpl_mkstemp
data/source-highlight-3.1.9/gl/stdlib.in.h:384:19:  [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).
_GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/source-highlight-3.1.9/gl/stdlib.in.h:385:19:  [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).
_GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/));
data/source-highlight-3.1.9/gl/stdlib.in.h:388:19:  [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).
_GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1)));
data/source-highlight-3.1.9/gl/stdlib.in.h:390:19:  [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).
_GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/));
data/source-highlight-3.1.9/gl/stdlib.in.h:392:19:  [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).
_GL_CXXALIASWARN (mkstemp);
data/source-highlight-3.1.9/gl/stdlib.in.h:394:9:  [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).
# undef mkstemp
data/source-highlight-3.1.9/gl/stdlib.in.h:396:18:  [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).
_GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - "
data/source-highlight-3.1.9/gl/strdup.c:48:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (char *) memcpy (new, s, len);
data/source-highlight-3.1.9/gl/sys_stat.in.h:646:44:  [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.
_GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name,
data/source-highlight-3.1.9/gl/sys_stat.in.h:649:44:  [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.
_GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name,
data/source-highlight-3.1.9/gl/sys_stat.in.h:653:44:  [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.
_GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name,
data/source-highlight-3.1.9/gl/sys_stat.in.h:657:44:  [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.
_GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name,
data/source-highlight-3.1.9/lib/compat/compat_dirent.h:25: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		d_name[FILENAME_MAX]; /* File name. */
data/source-highlight-3.1.9/lib/compat/compat_dirent.h:55: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			dd_name[PATH_MAX+3];
data/source-highlight-3.1.9/lib/compat/compat_dirent.h:63: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		d_name[FILENAME_MAX]; /* File name. */
data/source-highlight-3.1.9/lib/compat/compat_dirent.h:92: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			dd_name[1];
data/source-highlight-3.1.9/lib/srchilite/fileutil.cc:170:16:  [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).
    FILE *in = fopen(input_file_name.c_str(), "r");
data/source-highlight-3.1.9/lib/srchilite/langdefparser.cc:1167: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/source-highlight-3.1.9/lib/srchilite/langdefparser.cc:1489: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 yymsgbuf[128];
data/source-highlight-3.1.9/lib/srchilite/langdefscanner.cc:1278:24:  [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).
{ langdef_lval.level = atoi(langdef_text); return LEVEL ; }
data/source-highlight-3.1.9/lib/srchilite/langmap.cpp:46: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).
void LangMap::open() {
data/source-highlight-3.1.9/lib/srchilite/langmap.cpp:73:5:  [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).
    open();
data/source-highlight-3.1.9/lib/srchilite/langmap.cpp:81:5:  [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).
    open();
data/source-highlight-3.1.9/lib/srchilite/langmap.cpp:136:5:  [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).
    open();
data/source-highlight-3.1.9/lib/srchilite/langmap.h:83:10:  [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).
    void open();
data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.cc:1092: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.cc:1327: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 yymsgbuf[128];
data/source-highlight-3.1.9/lib/srchilite/readtags.c:282:35:  [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).
		    entry->address.lineNumber = atol (value);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:340:31:  [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).
		entry->address.lineNumber = atol (p);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:405:33:  [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).
		file->sortMethod = (sortType) atoi (value);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:407:18:  [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).
		file->format = atoi (value);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:457:15:  [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).
	result->fp = fopen (filePath, "r");
data/source-highlight-3.1.9/lib/srchilite/settings.cpp:139:7:  [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).
    o.open(file.c_str());
data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.cpp:126: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).
        defaultStyles.open();
data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.cpp:221:12:  [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).
        is.open(input.c_str());
data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.cpp:245: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).
            os.open(output.c_str(), std::ios::out | std::ios::binary);
data/source-highlight-3.1.9/lib/srchilite/sourcehighlight.cpp:247: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).
            os.open(output.c_str());
data/source-highlight-3.1.9/lib/srchilite/stylecssparser.cc:1029: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/source-highlight-3.1.9/lib/srchilite/stylecssparser.cc:1324: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 yymsgbuf[128];
data/source-highlight-3.1.9/lib/srchilite/styleparser.cc:1030: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 const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/source-highlight-3.1.9/lib/srchilite/styleparser.cc:1349: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 yymsgbuf[128];
data/source-highlight-3.1.9/lib/tests/test_langmap_main.cpp:30: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).
    langmap.open();
data/source-highlight-3.1.9/src/check-regexp_cmd.c:207:13:  [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).
  outfile = fopen(filename, "w");
data/source-highlight-3.1.9/src/cmdline.c:157:7:  [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.
const char *gengetopt_args_info_help[54];
data/source-highlight-3.1.9/src/cmdline.c:748:13:  [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).
  outfile = fopen(filename, "w");
data/source-highlight-3.1.9/src/cmdline.c:1235:15:  [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))[i + field_given] = tmp->arg.string_arg; break;
data/source-highlight-3.1.9/src/cmdline.c:1255:15:  [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))[0] = gengetopt_strdup(default_value->string_arg);
data/source-highlight-3.1.9/src/envmapper.c:118:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(new_argv, argv, *argc * sizeof argv);
data/source-highlight-3.1.9/src/source-highlight.cc:242: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).
            langmap.open();
data/source-highlight-3.1.9/src/source-highlight.cc:251: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).
            outlangmap.open();
data/source-highlight-3.1.9/gl/basename-lgpl.c:63:14:  [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).
  for (len = strlen (name);  1 < len && ISSLASH (name[len - 1]);  len--)
data/source-highlight-3.1.9/gl/getopt.c:268:56:  [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 len = d->__nonoption_flags_max_len = strlen (orig_str);
data/source-highlight-3.1.9/gl/getopt.c:503: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).
            if (namelen == (unsigned int) strlen (p->name))
data/source-highlight-3.1.9/gl/getopt.c:588: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).
          d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:668:36:  [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).
                  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:708:36:  [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).
                  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:713: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).
          d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:906:63:  [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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/source-highlight-3.1.9/gl/getopt.c:954: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).
            d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:998:38:  [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).
                    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:1036:38:  [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).
                    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/getopt.c:1042: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).
            d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/gl/gettext.h:212:24:  [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_t msgctxt_len = strlen (msgctxt) + 1;
data/source-highlight-3.1.9/gl/gettext.h:213: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).
  size_t msgid_len = strlen (msgid) + 1;
data/source-highlight-3.1.9/gl/gettext.h:258:24:  [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_t msgctxt_len = strlen (msgctxt) + 1;
data/source-highlight-3.1.9/gl/gettext.h:259: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).
  size_t msgid_len = strlen (msgid) + 1;
data/source-highlight-3.1.9/gl/mkdir.c:55: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).
  size_t len = strlen (dir);
data/source-highlight-3.1.9/gl/strdup.c:42: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).
  size_t len = strlen (s) + 1;
data/source-highlight-3.1.9/gl/string.in.h:379:11:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   undef strncat
data/source-highlight-3.1.9/gl/string.in.h:380:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
#   define strncat rpl_strncat
data/source-highlight-3.1.9/gl/string.in.h:382:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
data/source-highlight-3.1.9/gl/string.in.h:384:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n));
data/source-highlight-3.1.9/gl/string.in.h:386:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
data/source-highlight-3.1.9/gl/string.in.h:388:19:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_CXXALIASWARN (strncat);
data/source-highlight-3.1.9/gl/string.in.h:390:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
# undef strncat
data/source-highlight-3.1.9/gl/string.in.h:392:18:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
_GL_WARN_ON_USE (strncat, "strncat is unportable - "
data/source-highlight-3.1.9/gl/unistd.in.h:1182:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   undef read
data/source-highlight-3.1.9/gl/unistd.in.h:1183:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read rpl_read
data/source-highlight-3.1.9/gl/unistd.in.h:1185:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count)
data/source-highlight-3.1.9/gl/unistd.in.h:1187:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count));
data/source-highlight-3.1.9/gl/unistd.in.h:1192:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count));
data/source-highlight-3.1.9/gl/unistd.in.h:1194:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
_GL_CXXALIASWARN (read);
data/source-highlight-3.1.9/gl/unistd.in.h:1454:11:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   undef usleep
data/source-highlight-3.1.9/gl/unistd.in.h:1455:12:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#   define usleep rpl_usleep
data/source-highlight-3.1.9/gl/unistd.in.h:1457:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_RPL (usleep, int, (useconds_t n));
data/source-highlight-3.1.9/gl/unistd.in.h:1458:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
data/source-highlight-3.1.9/gl/unistd.in.h:1461:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
data/source-highlight-3.1.9/gl/unistd.in.h:1463:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
data/source-highlight-3.1.9/gl/unistd.in.h:1465:19:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_CXXALIASWARN (usleep);
data/source-highlight-3.1.9/gl/unistd.in.h:1467:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
# undef usleep
data/source-highlight-3.1.9/gl/unistd.in.h:1469:18:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
_GL_WARN_ON_USE (usleep, "usleep is unportable - "
data/source-highlight-3.1.9/lib/compat/compat_dirent.cpp:14:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(p->dd_name, name, PATH_MAX);
data/source-highlight-3.1.9/lib/compat/compat_dirent.cpp:15:15:  [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).
        len = strlen(p->dd_name);
data/source-highlight-3.1.9/lib/compat/getopt.c:261:49:  [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 len = d->__nonoption_flags_max_len = strlen (orig_str);
data/source-highlight-3.1.9/lib/compat/getopt.c:488: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).
		== (unsigned int) strlen (p->name))
data/source-highlight-3.1.9/lib/compat/getopt.c:537: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).
	  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:610: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).
		  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:650: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).
		  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:655: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).
	  d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:858:56:  [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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/source-highlight-3.1.9/lib/compat/getopt.c:903:23:  [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).
	    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:947:24:  [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).
		    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:985:24:  [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).
		    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/compat/getopt.c:989:23:  [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).
	    d->__nextchar += strlen (d->__nextchar);
data/source-highlight-3.1.9/lib/srchilite/langdefparser.cc:1051: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).
#   define yystrlen strlen
data/source-highlight-3.1.9/lib/srchilite/langdefscanner.cc:783:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( langdef_in )) != EOF && c != '\n'; ++n ) \
data/source-highlight-3.1.9/lib/srchilite/langdefscanner.cc:1062:13:  [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).
  file_name[strlen(file_name)-1] = '\0';
data/source-highlight-3.1.9/lib/srchilite/langdefscanner.cc:2041: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).
	return langdef__scan_bytes(yystr,strlen(yystr) );
data/source-highlight-3.1.9/lib/srchilite/outlangdefparser.cc:976: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).
#   define yystrlen strlen
data/source-highlight-3.1.9/lib/srchilite/outlangdefscanner.cc:851:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( outlangdef_in )) != EOF && c != '\n'; ++n ) \
data/source-highlight-3.1.9/lib/srchilite/outlangdefscanner.cc:1178:13:  [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).
  file_name[strlen(file_name)-1] = '\0';
data/source-highlight-3.1.9/lib/srchilite/outlangdefscanner.cc:2103:38:  [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 outlangdef__scan_bytes(yystr,strlen(yystr) );
data/source-highlight-3.1.9/lib/srchilite/readtags.c:170:11:  [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).
	length = strlen (file->line.buffer);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:173:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (file->name.buffer, file->line.buffer, length);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:213:17:  [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_t i = strlen (file->line.buffer);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:368:27:  [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).
	result = (char*) malloc (strlen (str) + 1);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:380:33:  [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).
    const size_t prefixLength = strlen (PseudoTagPrefix);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:433:33:  [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).
    const size_t prefixLength = strlen (PseudoTagPrefix);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:663: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).
    file->search.nameLength = strlen (name);
data/source-highlight-3.1.9/lib/srchilite/readtags.c:922:13:  [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).
			    j += strlen (TagFileName);
data/source-highlight-3.1.9/lib/srchilite/stylecssparser.cc:913: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).
#   define yystrlen strlen
data/source-highlight-3.1.9/lib/srchilite/stylecssscanner.cc:868:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( stylecsssc_in )) != EOF && c != '\n'; ++n ) \
data/source-highlight-3.1.9/lib/srchilite/stylecssscanner.cc:2061:38:  [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 stylecsssc__scan_bytes(yystr,strlen(yystr) );
data/source-highlight-3.1.9/lib/srchilite/styleparser.cc:914: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).
#   define yystrlen strlen
data/source-highlight-3.1.9/lib/srchilite/stylescanner.cc:723:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( stylesc_in )) != EOF && c != '\n'; ++n ) \
data/source-highlight-3.1.9/lib/srchilite/stylescanner.cc:1782: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).
	return stylesc__scan_bytes(yystr,strlen(yystr) );
data/source-highlight-3.1.9/lib/tests/test_regexpreprocessor_main.cpp:169:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!std::equal(split->begin(), split->end(), expected.begin())) {
data/source-highlight-3.1.9/src/check-regexp_cmd.c:86:7:  [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).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/source-highlight-3.1.9/src/check-regexp_cmd.c:89:7:  [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(gengetopt_args_info_versiontext) > 0)
data/source-highlight-3.1.9/src/check-regexp_cmd.c:96:7:  [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(gengetopt_args_info_purpose) > 0)
data/source-highlight-3.1.9/src/check-regexp_cmd.c:99:7:  [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(gengetopt_args_info_usage) > 0)
data/source-highlight-3.1.9/src/check-regexp_cmd.c:104:7:  [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(gengetopt_args_info_description) > 0)
data/source-highlight-3.1.9/src/check-regexp_cmd.c:235: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).
  result = (char*)malloc(strlen(s) + 1);
data/source-highlight-3.1.9/src/cmdline.c:369:7:  [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).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/source-highlight-3.1.9/src/cmdline.c:372:7:  [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(gengetopt_args_info_versiontext) > 0)
data/source-highlight-3.1.9/src/cmdline.c:379:7:  [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(gengetopt_args_info_purpose) > 0)
data/source-highlight-3.1.9/src/cmdline.c:382:7:  [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(gengetopt_args_info_usage) > 0)
data/source-highlight-3.1.9/src/cmdline.c:387:7:  [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(gengetopt_args_info_description) > 0)
data/source-highlight-3.1.9/src/cmdline.c:591: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).
  for (i = 0, len = strlen(val); values[i]; ++i)
data/source-highlight-3.1.9/src/cmdline.c:597:15:  [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(values[i]) == len)
data/source-highlight-3.1.9/src/cmdline.c:776: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).
  result = (char*)malloc(strlen(s) + 1);
data/source-highlight-3.1.9/src/cmdline.c:812:11:  [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).
    len = strlen (arg) + 1;
data/source-highlight-3.1.9/src/cmdline.c:857: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).
  if (! tok || strlen(tok) == 1)
data/source-highlight-3.1.9/src/envmapper.c:68: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).
  len = strlen(hexstr);
data/source-highlight-3.1.9/src/envmapper.c:84:29:  [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).
  new_token = (char*)calloc(strlen(token)+3, 1);
data/source-highlight-3.1.9/src/envmapper.c:107: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).
      query_string[strlen(query_string)-2] = '\0';

ANALYSIS SUMMARY:

Hits = 242
Lines analyzed = 51339 in approximately 1.31 seconds (39138 lines/second)
Physical Source Lines of Code (SLOC) = 32037
Hits@level = [0] 153 [1]  96 [2]  61 [3]  46 [4]  19 [5]  20
Hits@level+ = [0+] 395 [1+] 242 [2+] 146 [3+]  85 [4+]  39 [5+]  20
Hits/KSLOC@level+ = [0+] 12.3295 [1+] 7.55377 [2+] 4.55723 [3+] 2.65318 [4+] 1.21734 [5+] 0.624278
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.