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/indent-2.2.12/intl/ngettext.c Examining data/indent-2.2.12/intl/printf-args.c Examining data/indent-2.2.12/intl/localealias.c Examining data/indent-2.2.12/intl/vasnprintf.h Examining data/indent-2.2.12/intl/tsearch.c Examining data/indent-2.2.12/intl/finddomain.c Examining data/indent-2.2.12/intl/localcharset.c Examining data/indent-2.2.12/intl/gettextP.h Examining data/indent-2.2.12/intl/eval-plural.h Examining data/indent-2.2.12/intl/lock.c Examining data/indent-2.2.12/intl/os2compat.h Examining data/indent-2.2.12/intl/libgnuintl.in.h Examining data/indent-2.2.12/intl/dgettext.c Examining data/indent-2.2.12/intl/log.c Examining data/indent-2.2.12/intl/os2compat.c Examining data/indent-2.2.12/intl/setlocale.c Examining data/indent-2.2.12/intl/printf.c Examining data/indent-2.2.12/intl/version.c Examining data/indent-2.2.12/intl/langprefs.c Examining data/indent-2.2.12/intl/plural-exp.c Examining data/indent-2.2.12/intl/threadlib.c Examining data/indent-2.2.12/intl/vasnprintf.c Examining data/indent-2.2.12/intl/tsearch.h Examining data/indent-2.2.12/intl/relocatable.c Examining data/indent-2.2.12/intl/gettext.c Examining data/indent-2.2.12/intl/textdomain.c Examining data/indent-2.2.12/intl/lock.h Examining data/indent-2.2.12/intl/dcgettext.c Examining data/indent-2.2.12/intl/bindtextdom.c Examining data/indent-2.2.12/intl/explodename.c Examining data/indent-2.2.12/intl/export.h Examining data/indent-2.2.12/intl/loadinfo.h Examining data/indent-2.2.12/intl/l10nflist.c Examining data/indent-2.2.12/intl/xsize.c Examining data/indent-2.2.12/intl/printf-parse.h Examining data/indent-2.2.12/intl/plural-exp.h Examining data/indent-2.2.12/intl/localename.c Examining data/indent-2.2.12/intl/dcigettext.c Examining data/indent-2.2.12/intl/hash-string.c Examining data/indent-2.2.12/intl/localcharset.h Examining data/indent-2.2.12/intl/dngettext.c Examining data/indent-2.2.12/intl/xsize.h Examining data/indent-2.2.12/intl/intl-compat.c Examining data/indent-2.2.12/intl/osdep.c Examining data/indent-2.2.12/intl/printf-args.h Examining data/indent-2.2.12/intl/intl-exports.c Examining data/indent-2.2.12/intl/printf-parse.c Examining data/indent-2.2.12/intl/wprintf-parse.h Examining data/indent-2.2.12/intl/hash-string.h Examining data/indent-2.2.12/intl/plural.c Examining data/indent-2.2.12/intl/relocatable.h Examining data/indent-2.2.12/intl/gmo.h Examining data/indent-2.2.12/intl/vasnwprintf.h Examining data/indent-2.2.12/intl/verify.h Examining data/indent-2.2.12/intl/dcngettext.c Examining data/indent-2.2.12/intl/loadmsgcat.c Examining data/indent-2.2.12/src/lexi.c Examining data/indent-2.2.12/src/code_io.c Examining data/indent-2.2.12/src/args.h Examining data/indent-2.2.12/src/backup.c Examining data/indent-2.2.12/src/sys.h Examining data/indent-2.2.12/src/indent.c Examining data/indent-2.2.12/src/gperf-cc.c Examining data/indent-2.2.12/src/utils.c Examining data/indent-2.2.12/src/args.c Examining data/indent-2.2.12/src/comments.h Examining data/indent-2.2.12/src/wildexp.c Examining data/indent-2.2.12/src/lexi.h Examining data/indent-2.2.12/src/backup.h Examining data/indent-2.2.12/src/libgettext.h Examining data/indent-2.2.12/src/handletoken.c Examining data/indent-2.2.12/src/globs.c Examining data/indent-2.2.12/src/parse.c Examining data/indent-2.2.12/src/handletoken.h Examining data/indent-2.2.12/src/globs.h Examining data/indent-2.2.12/src/gperf.c Examining data/indent-2.2.12/src/parse.h Examining data/indent-2.2.12/src/indent.h Examining data/indent-2.2.12/src/output.h Examining data/indent-2.2.12/src/output.c Examining data/indent-2.2.12/src/code_io.h Examining data/indent-2.2.12/src/comments.c Examining data/indent-2.2.12/src/utils.h Examining data/indent-2.2.12/man/texinfo2man.c Examining data/indent-2.2.12/regression/input/lexi.c Examining data/indent-2.2.12/regression/input/meta-indent.c Examining data/indent-2.2.12/regression/input/cplus.c Examining data/indent-2.2.12/regression/input/wrapped-string.c Examining data/indent-2.2.12/regression/input/scope.c Examining data/indent-2.2.12/regression/input/preesc-comment.c Examining data/indent-2.2.12/regression/input/cdb.c Examining data/indent-2.2.12/regression/input/label.c Examining data/indent-2.2.12/regression/input/proto.c Examining data/indent-2.2.12/regression/input/pre.c Examining data/indent-2.2.12/regression/input/kr-proc-decls.c Examining data/indent-2.2.12/regression/input/newlines.c Examining data/indent-2.2.12/regression/input/spaces-around-initializers.c Examining data/indent-2.2.12/regression/input/backup.c Examining data/indent-2.2.12/regression/input/ncs-on-return.c Examining data/indent-2.2.12/regression/input/sys.h Examining data/indent-2.2.12/regression/input/fp.c Examining data/indent-2.2.12/regression/input/line-count.c Examining data/indent-2.2.12/regression/input/no-forced-nl-in-block-init.c Examining data/indent-2.2.12/regression/input/single-line-conditionals.c Examining data/indent-2.2.12/regression/input/bug-hp.c Examining data/indent-2.2.12/regression/input/toggles.c Examining data/indent-2.2.12/regression/input/pr_comment.c Examining data/indent-2.2.12/regression/input/right-margin-comment.c Examining data/indent-2.2.12/regression/input/one-line-1.c Examining data/indent-2.2.12/regression/input/cp-indent.c Examining data/indent-2.2.12/regression/input/block-comments.c Examining data/indent-2.2.12/regression/input/sizeof-in-while.c Examining data/indent-2.2.12/regression/input/no-newline3.c Examining data/indent-2.2.12/regression/input/empty.c Examining data/indent-2.2.12/regression/input/bad-break.c Examining data/indent-2.2.12/regression/input/struct-decl.c Examining data/indent-2.2.12/regression/input/bad-comment.c Examining data/indent-2.2.12/regression/input/func-def.c Examining data/indent-2.2.12/regression/input/bug-gnu-33364.c Examining data/indent-2.2.12/regression/input/else-comment-2.c Examining data/indent-2.2.12/regression/input/embedded-cuddle1.c Examining data/indent-2.2.12/regression/input/indent.c Examining data/indent-2.2.12/regression/input/continue.c Examining data/indent-2.2.12/regression/input/method.c Examining data/indent-2.2.12/regression/input/const.c Examining data/indent-2.2.12/regression/input/kr.c Examining data/indent-2.2.12/regression/input/args.c Examining data/indent-2.2.12/regression/input/braces.c Examining data/indent-2.2.12/regression/input/outer.c Examining data/indent-2.2.12/regression/input/float-constant-suffix.c Examining data/indent-2.2.12/regression/input/comments2.c Examining data/indent-2.2.12/regression/input/comments4.c Examining data/indent-2.2.12/regression/input/comments1.c Examining data/indent-2.2.12/regression/input/pointer-pal.c Examining data/indent-2.2.12/regression/input/one-line-4.c Examining data/indent-2.2.12/regression/input/enum.c Examining data/indent-2.2.12/regression/input/elif.c Examining data/indent-2.2.12/regression/input/ind-star.c Examining data/indent-2.2.12/regression/input/case.c Examining data/indent-2.2.12/regression/input/minus_predecrement.c Examining data/indent-2.2.12/regression/input/comment-break.c Examining data/indent-2.2.12/regression/input/comments3.c Examining data/indent-2.2.12/regression/input/preserve-newline-after-right-brace.c Examining data/indent-2.2.12/regression/input/bbb-test.c Examining data/indent-2.2.12/regression/input/emacs-compatible.h Examining data/indent-2.2.12/regression/input/struct_param.c Examining data/indent-2.2.12/regression/input/no-newline.c Examining data/indent-2.2.12/regression/input/else-comment.c Examining data/indent-2.2.12/regression/input/lshift.c Examining data/indent-2.2.12/regression/input/box-comm.c Examining data/indent-2.2.12/regression/input/bug-di.c Examining data/indent-2.2.12/regression/input/do-cdw.c Examining data/indent-2.2.12/regression/input/already-starred.c Examining data/indent-2.2.12/regression/input/first-in-block.c Examining data/indent-2.2.12/regression/input/indent_globs.h Examining data/indent-2.2.12/regression/input/backup.h Examining data/indent-2.2.12/regression/input/goto.c Examining data/indent-2.2.12/regression/input/for.c Examining data/indent-2.2.12/regression/input/embedded-cuddle2.c Examining data/indent-2.2.12/regression/input/class-func.cc Examining data/indent-2.2.12/regression/input/sob.c Examining data/indent-2.2.12/regression/input/wide.c Examining data/indent-2.2.12/regression/input/unary.c Examining data/indent-2.2.12/regression/input/one-line-3.c Examining data/indent-2.2.12/regression/input/typedef.h Examining data/indent-2.2.12/regression/input/gettext-strings.c Examining data/indent-2.2.12/regression/input/do.c Examining data/indent-2.2.12/regression/input/else.c Examining data/indent-2.2.12/regression/input/globs.c Examining data/indent-2.2.12/regression/input/long-comm.c Examining data/indent-2.2.12/regression/input/parse.c Examining data/indent-2.2.12/regression/input/case-label.c Examining data/indent-2.2.12/regression/input/cplus-one.c Examining data/indent-2.2.12/regression/input/if-decl-else-decl.c Examining data/indent-2.2.12/regression/input/line-break-comment.c Examining data/indent-2.2.12/regression/input/c99-compound-literal.c Examining data/indent-2.2.12/regression/input/initializers.c Examining data/indent-2.2.12/regression/input/dirent_def.h Examining data/indent-2.2.12/regression/input/tabs.c Examining data/indent-2.2.12/regression/input/boxed.c Examining data/indent-2.2.12/regression/input/align-with-spaces.c Examining data/indent-2.2.12/regression/input/no-newline2.c Examining data/indent-2.2.12/regression/input/bug-npsl.c Examining data/indent-2.2.12/regression/input/bug206785.c Parsing failed to find end of parameter list in (_("aaaaaaaaaaaaaaaaaaaaaaaaaa)); printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"); printf("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n"); printf("aaaaaaaaaaaaaaaaaaaaaaaaaa Examining data/indent-2.2.12/regression/input/hexadecimal_float.c Examining data/indent-2.2.12/regression/input/elipsis-attribute.c Examining data/indent-2.2.12/regression/input/macro.c Examining data/indent-2.2.12/regression/input/indent.h Examining data/indent-2.2.12/regression/input/newlined-parms.c Examining data/indent-2.2.12/regression/input/on-off-2.c Examining data/indent-2.2.12/regression/input/io.c Examining data/indent-2.2.12/regression/input/indent.pro.c Examining data/indent-2.2.12/regression/input/version.h Examining data/indent-2.2.12/regression/input/nested.c Examining data/indent-2.2.12/regression/input/brackets.c Examining data/indent-2.2.12/regression/input/bbreak.c Examining data/indent-2.2.12/regression/input/comments.c Examining data/indent-2.2.12/regression/input/on-off-1.c Examining data/indent-2.2.12/regression/input/one-line-2.c Examining data/indent-2.2.12/regression/input/unknown-type.c Examining data/indent-2.2.12/regression/input/decl_block.c Examining data/indent-2.2.12/regression/input/memcpy.c Examining data/indent-2.2.12/regression/input/typedef-bug.c Examining data/indent-2.2.12/regression/input/dont-tab-align-comments.c Examining data/indent-2.2.12/regression/input/ncs.c Examining data/indent-2.2.12/regression/input/dont-line-up-parentheses.c Examining data/indent-2.2.12/regression/input/else-if.c Examining data/indent-2.2.12/regression/standard/lexi.c Examining data/indent-2.2.12/regression/standard/meta-indent.c Examining data/indent-2.2.12/regression/standard/pre_lps.c Examining data/indent-2.2.12/regression/standard/wrapped-string.c Examining data/indent-2.2.12/regression/standard/scope.c Examining data/indent-2.2.12/regression/standard/preesc-comment.c Examining data/indent-2.2.12/regression/standard/cdb.c Examining data/indent-2.2.12/regression/standard/else-comment-br.c Examining data/indent-2.2.12/regression/standard/label.c Examining data/indent-2.2.12/regression/standard/proto.c Examining data/indent-2.2.12/regression/standard/pre.c Examining data/indent-2.2.12/regression/standard/kr-proc-decls.c Examining data/indent-2.2.12/regression/standard/spaces-around-initializers.c Examining data/indent-2.2.12/regression/standard/backup.c Examining data/indent-2.2.12/regression/standard/ncs-on-return.c Examining data/indent-2.2.12/regression/standard/sys.h Examining data/indent-2.2.12/regression/standard/fp.c Examining data/indent-2.2.12/regression/standard/line-count.c Examining data/indent-2.2.12/regression/standard/no-forced-nl-in-block-init.c Examining data/indent-2.2.12/regression/standard/single-line-conditionals.c Examining data/indent-2.2.12/regression/standard/bug-hp.c Examining data/indent-2.2.12/regression/standard/pr_comment.c Examining data/indent-2.2.12/regression/standard/brackets36.c Examining data/indent-2.2.12/regression/standard/right-margin-comment.c Examining data/indent-2.2.12/regression/standard/one-line-1.c Examining data/indent-2.2.12/regression/standard/cp-indent.c Examining data/indent-2.2.12/regression/standard/block-comments.c Examining data/indent-2.2.12/regression/standard/sizeof-in-while.c Examining data/indent-2.2.12/regression/standard/no-newline3.c Examining data/indent-2.2.12/regression/standard/empty.c Examining data/indent-2.2.12/regression/standard/bad-break.c Examining data/indent-2.2.12/regression/standard/struct-decl.c Examining data/indent-2.2.12/regression/standard/bad-comment.c Examining data/indent-2.2.12/regression/standard/func-def.c Examining data/indent-2.2.12/regression/standard/bug-gnu-33364.c Examining data/indent-2.2.12/regression/standard/embedded-cuddle1.c Examining data/indent-2.2.12/regression/standard/indent.c Examining data/indent-2.2.12/regression/standard/bug-psl.c Examining data/indent-2.2.12/regression/standard/continue.c Examining data/indent-2.2.12/regression/standard/method.c Examining data/indent-2.2.12/regression/standard/brackets35.c Examining data/indent-2.2.12/regression/standard/continue-lp.c Examining data/indent-2.2.12/regression/standard/const.c Examining data/indent-2.2.12/regression/standard/kr.c Examining data/indent-2.2.12/regression/standard/args.c Examining data/indent-2.2.12/regression/standard/float-constant-suffix.c Examining data/indent-2.2.12/regression/standard/else-comment-2-br-ce.c Examining data/indent-2.2.12/regression/standard/comments2.c Examining data/indent-2.2.12/regression/standard/comments4.c Examining data/indent-2.2.12/regression/standard/comments1.c Examining data/indent-2.2.12/regression/standard/pointer-pal.c Examining data/indent-2.2.12/regression/standard/one-line-4.c Examining data/indent-2.2.12/regression/standard/enum.c Examining data/indent-2.2.12/regression/standard/elif.c Examining data/indent-2.2.12/regression/standard/struct-decl-kr.c Examining data/indent-2.2.12/regression/standard/ind-star.c Examining data/indent-2.2.12/regression/standard/cs-on-return.c Examining data/indent-2.2.12/regression/standard/case.c Examining data/indent-2.2.12/regression/standard/minus_predecrement.c Examining data/indent-2.2.12/regression/standard/comment-break.c Examining data/indent-2.2.12/regression/standard/comments3.c Examining data/indent-2.2.12/regression/standard/preserve-newline-after-right-brace.c Examining data/indent-2.2.12/regression/standard/bbb-test.c Examining data/indent-2.2.12/regression/standard/emacs-compatible.h Examining data/indent-2.2.12/regression/standard/struct_param.c Examining data/indent-2.2.12/regression/standard/no-newline.c Examining data/indent-2.2.12/regression/standard/lshift.c Examining data/indent-2.2.12/regression/standard/box-comm.c Examining data/indent-2.2.12/regression/standard/no-space-after-fp-name.c Examining data/indent-2.2.12/regression/standard/bug-di.c Examining data/indent-2.2.12/regression/standard/do-cdw.c Examining data/indent-2.2.12/regression/standard/already-starred.c Examining data/indent-2.2.12/regression/standard/first-in-block.c Examining data/indent-2.2.12/regression/standard/indent_globs.h Examining data/indent-2.2.12/regression/standard/backup.h Examining data/indent-2.2.12/regression/standard/goto.c Examining data/indent-2.2.12/regression/standard/for.c Examining data/indent-2.2.12/regression/standard/embedded-cuddle2.c Examining data/indent-2.2.12/regression/standard/class-func.cc Examining data/indent-2.2.12/regression/standard/sob.c Examining data/indent-2.2.12/regression/standard/wide.c Examining data/indent-2.2.12/regression/standard/two-on-line.c Examining data/indent-2.2.12/regression/standard/unary.c Examining data/indent-2.2.12/regression/standard/one-line-3.c Examining data/indent-2.2.12/regression/standard/else-comment-2-br.c Examining data/indent-2.2.12/regression/standard/typedef.h Examining data/indent-2.2.12/regression/standard/gettext-strings.c Examining data/indent-2.2.12/regression/standard/do.c Examining data/indent-2.2.12/regression/standard/else.c Examining data/indent-2.2.12/regression/standard/globs.c Examining data/indent-2.2.12/regression/standard/long-comm.c Examining data/indent-2.2.12/regression/standard/parse.c Examining data/indent-2.2.12/regression/standard/case-label.c Examining data/indent-2.2.12/regression/standard/cplus-one.c Examining data/indent-2.2.12/regression/standard/if-decl-else-decl.c Examining data/indent-2.2.12/regression/standard/line-break-comment.c Examining data/indent-2.2.12/regression/standard/pre_nlps.c Examining data/indent-2.2.12/regression/standard/c99-compound-literal.c Examining data/indent-2.2.12/regression/standard/brackets34.c Examining data/indent-2.2.12/regression/standard/initializers.c Examining data/indent-2.2.12/regression/standard/dirent_def.h Examining data/indent-2.2.12/regression/standard/goto-2.c Examining data/indent-2.2.12/regression/standard/align-with-spaces.c Examining data/indent-2.2.12/regression/standard/no-newline2.c Examining data/indent-2.2.12/regression/standard/bug-npsl.c Examining data/indent-2.2.12/regression/standard/bug206785.c Parsing failed to find end of parameter list in (_("aaaaaaaaaaaaaaaaaaaaaaaaaa)); printf(" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ n "); printf(" aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ n "); printf(" aaaaaaaaaaaaaaaa Examining data/indent-2.2.12/regression/standard/hexadecimal_float.c Examining data/indent-2.2.12/regression/standard/case-br.c Examining data/indent-2.2.12/regression/standard/else-comment-2-bl.c Examining data/indent-2.2.12/regression/standard/elipsis-attribute.c Examining data/indent-2.2.12/regression/standard/macro.c Examining data/indent-2.2.12/regression/standard/indent.h Examining data/indent-2.2.12/regression/standard/brackets33.c Examining data/indent-2.2.12/regression/standard/newlined-parms.c Examining data/indent-2.2.12/regression/standard/scope-br.c Examining data/indent-2.2.12/regression/standard/on-off-2.c Examining data/indent-2.2.12/regression/standard/unknown-type-npsl.c Examining data/indent-2.2.12/regression/standard/io.c Examining data/indent-2.2.12/regression/standard/indent.pro.c Examining data/indent-2.2.12/regression/standard/brackets37.c Examining data/indent-2.2.12/regression/standard/version.h Examining data/indent-2.2.12/regression/standard/brackets38.c Examining data/indent-2.2.12/regression/standard/nested.c Examining data/indent-2.2.12/regression/standard/brackets.c Examining data/indent-2.2.12/regression/standard/comments1-fca.c Examining data/indent-2.2.12/regression/standard/goto-1.c Examining data/indent-2.2.12/regression/standard/bbreak.c Examining data/indent-2.2.12/regression/standard/comments.c Examining data/indent-2.2.12/regression/standard/on-off-1.c Examining data/indent-2.2.12/regression/standard/one-line-2.c Examining data/indent-2.2.12/regression/standard/unknown-type.c Examining data/indent-2.2.12/regression/standard/else-comment-br-ce.c Examining data/indent-2.2.12/regression/standard/decl_block.c Examining data/indent-2.2.12/regression/standard/memcpy.c Examining data/indent-2.2.12/regression/standard/typedef-bug.c Examining data/indent-2.2.12/regression/standard/else-comment-bl.c Examining data/indent-2.2.12/regression/standard/dont-tab-align-comments.c Examining data/indent-2.2.12/regression/standard/ncs.c Examining data/indent-2.2.12/regression/standard/dont-line-up-parentheses.c Examining data/indent-2.2.12/regression/standard/else-if.c Examining data/indent-2.2.12/regression/outstanding-problems/two-on-line.c FINAL RESULTS: data/indent-2.2.12/intl/dcigettext.c:792:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (new_localename, localename); data/indent-2.2.12/intl/langprefs.c:297:29: [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 (p, buf); data/indent-2.2.12/intl/libgnuintl.in.h:326:15: [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. #if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:327: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. #undef fprintf data/indent-2.2.12/intl/libgnuintl.in.h:328:9: [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 fprintf libintl_fprintf data/indent-2.2.12/intl/libgnuintl.in.h:329:12: [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. extern int fprintf (FILE *, const char *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:331:15: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:332:8: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfprintf data/indent-2.2.12/intl/libgnuintl.in.h:333:9: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfprintf libintl_vfprintf data/indent-2.2.12/intl/libgnuintl.in.h:334:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vfprintf (FILE *, const char *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:337:15: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:338:8: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef printf data/indent-2.2.12/intl/libgnuintl.in.h:351:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf libintl_printf data/indent-2.2.12/intl/libgnuintl.in.h:352:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf (const char *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:354:15: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:355:8: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vprintf data/indent-2.2.12/intl/libgnuintl.in.h:356:9: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vprintf libintl_vprintf data/indent-2.2.12/intl/libgnuintl.in.h:357:12: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vprintf (const char *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:360:15: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:361:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/indent-2.2.12/intl/libgnuintl.in.h:362:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sprintf libintl_sprintf data/indent-2.2.12/intl/libgnuintl.in.h:363:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. extern int sprintf (char *, const char *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:365:15: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:366:8: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef vsprintf data/indent-2.2.12/intl/libgnuintl.in.h:367:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define vsprintf libintl_vsprintf data/indent-2.2.12/intl/libgnuintl.in.h:368:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. extern int vsprintf (char *, const char *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:373:15: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:374:8: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #undef snprintf data/indent-2.2.12/intl/libgnuintl.in.h:375:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf libintl_snprintf data/indent-2.2.12/intl/libgnuintl.in.h:376:12: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. extern int snprintf (char *, size_t, const char *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:378:15: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */ data/indent-2.2.12/intl/libgnuintl.in.h:379:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #undef vsnprintf data/indent-2.2.12/intl/libgnuintl.in.h:380:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define vsnprintf libintl_vsnprintf data/indent-2.2.12/intl/libgnuintl.in.h:381:12: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. extern int vsnprintf (char *, size_t, const char *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:403:8: [4] (format) fwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef fwprintf data/indent-2.2.12/intl/libgnuintl.in.h:404:9: [4] (format) fwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fwprintf libintl_fwprintf data/indent-2.2.12/intl/libgnuintl.in.h:405:12: [4] (format) fwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int fwprintf (FILE *, const wchar_t *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:406:8: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vfwprintf data/indent-2.2.12/intl/libgnuintl.in.h:407:9: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vfwprintf libintl_vfwprintf data/indent-2.2.12/intl/libgnuintl.in.h:408:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vfwprintf (FILE *, const wchar_t *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:410:8: [4] (format) wprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef wprintf data/indent-2.2.12/intl/libgnuintl.in.h:411:9: [4] (format) wprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define wprintf libintl_wprintf data/indent-2.2.12/intl/libgnuintl.in.h:412:12: [4] (format) wprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int wprintf (const wchar_t *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:413:8: [4] (format) vwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #undef vwprintf data/indent-2.2.12/intl/libgnuintl.in.h:414:9: [4] (format) vwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define vwprintf libintl_vwprintf data/indent-2.2.12/intl/libgnuintl.in.h:415:12: [4] (format) vwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int vwprintf (const wchar_t *, va_list); data/indent-2.2.12/intl/libgnuintl.in.h:417:8: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef swprintf data/indent-2.2.12/intl/libgnuintl.in.h:418:9: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define swprintf libintl_swprintf data/indent-2.2.12/intl/libgnuintl.in.h:419:12: [4] (format) swprintf: Potential format string problem (CWE-134). Make format string constant. extern int swprintf (wchar_t *, size_t, const wchar_t *, ...); data/indent-2.2.12/intl/libgnuintl.in.h:420:8: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef vswprintf data/indent-2.2.12/intl/libgnuintl.in.h:421:9: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define vswprintf libintl_vswprintf data/indent-2.2.12/intl/libgnuintl.in.h:422:12: [4] (format) vswprintf: Potential format string problem (CWE-134). Make format string constant. extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); data/indent-2.2.12/intl/localcharset.c:238:23: [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 (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); data/indent-2.2.12/intl/localcharset.c:239:23: [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 (res_ptr + res_size - (l2 + 1), buf2); data/indent-2.2.12/intl/localename.c:1347:11: [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 (name, legacy_table[i1].unixy); data/indent-2.2.12/intl/localename.c:1371:11: [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 (name, langtag_table[i1].unixy); data/indent-2.2.12/intl/localename.c:1391:11: [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 (name + 3, script_table[i1].unixy); data/indent-2.2.12/intl/log.c:88:7: [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 (last_logfilename, logfilename); data/indent-2.2.12/intl/os2compat.c:95:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (libintl_nl_default_dirname, _nlos2_localedir); data/indent-2.2.12/intl/plural.c:750: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/indent-2.2.12/intl/printf.c:98:12: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfprintf (stream, format, args); data/indent-2.2.12/intl/printf.c:158:12: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf (resultbuf, format, args); data/indent-2.2.12/intl/printf.c:197:29: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define system_vsnprintf vsnprintf data/indent-2.2.12/intl/printf.c:203:28: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define system_vsnprintf vsnprintf data/indent-2.2.12/intl/printf.c:317:28: [4] (buffer) vswprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define system_vswprintf vswprintf data/indent-2.2.12/intl/printf.c:325:12: [4] (format) vfwprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. return vfwprintf (stream, format, args); data/indent-2.2.12/intl/relocatable.c:471:15: [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, curr_prefix); data/indent-2.2.12/intl/relocatable.c:487:15: [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 + curr_prefix_len, pathname_tail); data/indent-2.2.12/intl/setlocale.c:712: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 (ll_buf + (underscore - llCC_buf), territory_end); data/indent-2.2.12/intl/vasnprintf.c:162:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/indent-2.2.12/intl/vasnprintf.c:180:21: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/indent-2.2.12/intl/vasnprintf.c:182:11: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/indent-2.2.12/intl/vasnprintf.c:184:21: [4] (format) _snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF _snprintf data/indent-2.2.12/intl/vasnprintf.c:188:20: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # define SNPRINTF snprintf data/indent-2.2.12/intl/vasnprintf.c:190:10: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. # undef snprintf data/indent-2.2.12/intl/vasnprintf.c:194:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/indent-2.2.12/intl/vasnprintf.c:4273:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/indent-2.2.12/intl/vasnprintf.c:4281:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/indent-2.2.12/intl/vasnprintf.c:4466:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/indent-2.2.12/intl/vasnprintf.c:4474:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/indent-2.2.12/intl/vasnprintf.c:4981:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/indent-2.2.12/intl/vasnprintf.c:4984:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/indent-2.2.12/intl/vasnprintf.c:4987:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/indent-2.2.12/intl/vasnprintf.h:35:22: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. # define __printf__ printf data/indent-2.2.12/man/texinfo2man.c:46:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (b, "%s line %-3d", texinfoname, line_no); data/indent-2.2.12/man/texinfo2man.c:256:10: [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 (vars[nr], p); data/indent-2.2.12/man/texinfo2man.c:280: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 (replacement[nr], buf); data/indent-2.2.12/man/texinfo2man.c:284:10: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat (replacement[nr], buf); data/indent-2.2.12/regression/input/args.c:654: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 (str, param_start); data/indent-2.2.12/regression/input/args.c:789:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (fname, "%s/%s", homedir, prof); data/indent-2.2.12/regression/input/backup.c:115:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (backup_name, "%s%s", pathname, simple_backup_suffix); data/indent-2.2.12/regression/input/backup.c:244:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (backup_name, "%s.~%d~", pathname, last_numbered_version); data/indent-2.2.12/regression/input/bug206785.c:4:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(_("aaaaaaaaaaaaaaaaaaaaaaaaaa)); data/indent-2.2.12/regression/input/elipsis-attribute.c:2:28: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__ ((format(printf, 2, 3))); data/indent-2.2.12/regression/input/elipsis-attribute.c:3:44: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int f(char *m, ...) __attribute__ ((format(printf, 1, 2))); data/indent-2.2.12/regression/input/io.c:76:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (errbuf, "indent: %s", offender); data/indent-2.2.12/regression/input/io.c:180:3: [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 (output, s[0] == '/' && s[1] == '*' ? "\t%.*s" : "\t/* %.*s */", data/indent-2.2.12/regression/input/io.c:750:7: [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 (stdout, msg, a, b); data/indent-2.2.12/regression/input/io.c:756:7: [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, msg, a, b); data/indent-2.2.12/regression/input/wrapped-string.c:9:1: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(format, '1', '2', '3', '4', '5', '6', '7', '8', '9'); data/indent-2.2.12/regression/standard/args.c:650: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 (str, param_start); data/indent-2.2.12/regression/standard/args.c:785:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (fname, "%s/%s", homedir, prof); data/indent-2.2.12/regression/standard/backup.c:115:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (backup_name, "%s%s", pathname, simple_backup_suffix); data/indent-2.2.12/regression/standard/backup.c:243:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (backup_name, "%s.~%d~", pathname, last_numbered_version); data/indent-2.2.12/regression/standard/bug206785.c:6:1: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (_("aaaaaaaaaaaaaaaaaaaaaaaaaa)); data/indent-2.2.12/regression/standard/elipsis-attribute.c:2:29: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. __attribute__((format (printf, 2, 3))); data/indent-2.2.12/regression/standard/elipsis-attribute.c:3:45: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. int f (char *m, ...) __attribute__((format (printf, 1, 2))); data/indent-2.2.12/regression/standard/io.c:76:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (errbuf, "indent: %s", offender); data/indent-2.2.12/regression/standard/io.c:181:3: [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 (output, s[0] == '/' data/indent-2.2.12/regression/standard/io.c:753:7: [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 (stdout, msg, a, b); data/indent-2.2.12/regression/standard/io.c:759:7: [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, msg, a, b); data/indent-2.2.12/regression/standard/wrapped-string.c:10:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf (format, '1', '2', '3', '4', '5', '6', '7', '8', '9'); data/indent-2.2.12/src/args.c:1160:17: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(b0, b1); data/indent-2.2.12/src/args.c:1253:17: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). (void) strcat (fname, INDENT_PROFILE); data/indent-2.2.12/src/args.c:1262:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (fname, PROFILE_FORMAT, homedir, prof); data/indent-2.2.12/src/backup.c:198:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (backup_name, "%s%s", pathname, simple_backup_suffix); data/indent-2.2.12/src/backup.c:361:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (backup_name, BACKUP_SUFFIX_FORMAT, pathname, data/indent-2.2.12/src/globs.c:106:5: [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, string, a0, a1); data/indent-2.2.12/src/globs.c:131:5: [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, string, a0); data/indent-2.2.12/src/utils.c:40:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/indent-2.2.12/src/wildexp.c:105:7: [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 (arg->argbuf + arg->argpos, str); data/indent-2.2.12/src/wildexp.c:318:10: [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 (tmpstr, str); data/indent-2.2.12/src/wildexp.c:338:16: [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 (pnt2, c_file.name); data/indent-2.2.12/src/wildexp.c:344:22: [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 (pnt2, c_file.name); data/indent-2.2.12/intl/dcigettext.c:141:7: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. char *getwd (); data/indent-2.2.12/intl/dcigettext.c:142:28: [3] (buffer) getwd: This does not protect against buffer overflows by itself, so use with caution (CWE-120, CWE-20). Use getcwd instead. # define getcwd(buf, max) getwd (buf) data/indent-2.2.12/intl/dcigettext.c:859:33: [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 *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); data/indent-2.2.12/intl/dcigettext.c:1572: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. language = getenv ("LANGUAGE"); data/indent-2.2.12/intl/dcigettext.c:1612: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 *value = getenv ("OUTPUT_CHARSET"); data/indent-2.2.12/intl/langprefs.c:327:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL) data/indent-2.2.12/intl/localcharset.c:137:13: [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. dir = getenv ("CHARSETALIASDIR"); data/indent-2.2.12/intl/localcharset.c:383:16: [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. locale = getenv ("LC_ALL"); data/indent-2.2.12/intl/localcharset.c:386: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. locale = getenv ("LC_CTYPE"); data/indent-2.2.12/intl/localcharset.c:388:22: [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. locale = getenv ("LANG"); data/indent-2.2.12/intl/localcharset.c:444:16: [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. locale = getenv ("LC_ALL"); data/indent-2.2.12/intl/localcharset.c:447: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. locale = getenv ("LC_CTYPE"); data/indent-2.2.12/intl/localcharset.c:449:22: [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. locale = getenv ("LANG"); data/indent-2.2.12/intl/localcharset.c:483: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. locale = getenv ("LC_ALL"); data/indent-2.2.12/intl/localcharset.c:486:16: [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. locale = getenv ("LC_CTYPE"); data/indent-2.2.12/intl/localcharset.c:488:18: [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. locale = getenv ("LANG"); data/indent-2.2.12/intl/localename.c:1451:7: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("GETTEXT_MUI") != NULL) data/indent-2.2.12/intl/localename.c:2712: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. retval = getenv ("LC_ALL"); data/indent-2.2.12/intl/localename.c:2716: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. retval = getenv (categoryname); data/indent-2.2.12/intl/localename.c:2720: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. retval = getenv ("LANG"); data/indent-2.2.12/intl/lock.c:639:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:657:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:776:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:797:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:827:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:851:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:880:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:895:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:957:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:979:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/indent-2.2.12/intl/lock.c:1026:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/indent-2.2.12/intl/lock.c:1027:11: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/indent-2.2.12/intl/lock.c:1046:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&once_control->lock); data/indent-2.2.12/intl/os2compat.c:49:16: [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 *root = getenv ("UNIXROOT"); data/indent-2.2.12/intl/os2compat.c:50: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 *gnulocaledir = getenv ("GNULOCALEDIR"); data/indent-2.2.12/intl/os2compat.h:41:9: [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. #define getenv _nl_getenv data/indent-2.2.12/regression/input/args.c:33:7: [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 *getenv (); data/indent-2.2.12/regression/input/args.c:785:13: [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. homedir = getenv ("HOME"); data/indent-2.2.12/regression/input/backup.c:262: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/indent-2.2.12/regression/input/backup.c:274:13: [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. version = getenv ("VERSION_CONTROL"); data/indent-2.2.12/regression/input/backup.c:295:13: [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 *v = getenv ("SIMPLE_BACKUP_SUFFIX"); data/indent-2.2.12/regression/standard/args.c:33:7: [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 *getenv (); data/indent-2.2.12/regression/standard/args.c:781:13: [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. homedir = getenv ("HOME"); data/indent-2.2.12/regression/standard/backup.c:260: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/indent-2.2.12/regression/standard/backup.c:272:13: [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. version = getenv ("VERSION_CONTROL"); data/indent-2.2.12/regression/standard/backup.c:293:13: [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 *v = getenv ("SIMPLE_BACKUP_SUFFIX"); data/indent-2.2.12/src/args.c:1220: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 * envname = getenv(PROFILE_ENV_NAME); data/indent-2.2.12/src/args.c:1257: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. homedir = getenv ("HOME"); data/indent-2.2.12/src/backup.c:394:43: [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 * version = getenv("VERSION_CONTROL"); data/indent-2.2.12/src/backup.c:430:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *v = getenv ("VERSION_WIDTH"); data/indent-2.2.12/src/backup.c:449:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *v = getenv ("SIMPLE_BACKUP_SUFFIX"); data/indent-2.2.12/intl/bindtextdom.c:137:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/indent-2.2.12/intl/bindtextdom.c:175: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 (result, codeset, len); data/indent-2.2.12/intl/bindtextdom.c:209: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 (new_binding->domainname, domainname, len); data/indent-2.2.12/intl/bindtextdom.c:234:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, dirname, len); data/indent-2.2.12/intl/bindtextdom.c:263:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, codeset, len); data/indent-2.2.12/intl/dcigettext.c:266: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. char appended[ZERO]; /* used if domain != NULL */ data/indent-2.2.12/intl/dcigettext.c:419: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 data[ZERO]; data/indent-2.2.12/intl/dcigettext.c:789:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_domainname, domainname, domainname_len + 1); data/indent-2.2.12/intl/dcigettext.c:1124:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (charset, charsetstr, len); data/indent-2.2.12/intl/dcigettext.c:1163:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp, outcharset, len); data/indent-2.2.12/intl/dcigettext.c:1164:6: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmp + len, "//TRANSLIT", 10 + 1); data/indent-2.2.12/intl/dcigettext.c:1620: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 (value_copy, value, len); data/indent-2.2.12/intl/dcigettext.c:1662:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (void *) ((char *) memcpy (dest, src, n) + n); data/indent-2.2.12/intl/finddomain.c:137: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 (locale, alias_value, len); data/indent-2.2.12/intl/gettextP.h:215: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 domainname[ZERO]; data/indent-2.2.12/intl/l10nflist.c:213: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 (cp, dirlist, dirlist_len); data/indent-2.2.12/intl/langprefs.c:174: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. char data[8 + 1]; data/indent-2.2.12/intl/langprefs.c:252:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/indent-2.2.12/intl/loadmsgcat.c:466: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). # define open(name, flags) open_not_cancel_2 (name, flags) data/indent-2.2.12/intl/loadmsgcat.c:828:8: [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). fd = open (domain_file->filename, O_RDONLY | O_BINARY); data/indent-2.2.12/intl/loadmsgcat.c:1180:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (mem, static_segments, segsize); data/indent-2.2.12/intl/loadmsgcat.c:1189:6: [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 (mem, sysdep_segment_values[sysdepref], n); data/indent-2.2.12/intl/localcharset.c:149:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name, dir, dir_len); data/indent-2.2.12/intl/localcharset.c:152:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (file_name + dir_len + add_slash, base, base_len + 1); data/indent-2.2.12/intl/localcharset.c:170: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). fd = open (file_name, data/indent-2.2.12/intl/localcharset.c:195:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[50+1]; data/indent-2.2.12/intl/localcharset.c:196:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[50+1]; data/indent-2.2.12/intl/localcharset.c:381:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/indent-2.2.12/intl/localcharset.c:407: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. memcpy (buf, dot, modifier - dot); data/indent-2.2.12/intl/localcharset.c:425:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/indent-2.2.12/intl/localcharset.c:462:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/indent-2.2.12/intl/localcharset.c:471:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", GetACP ()); data/indent-2.2.12/intl/localcharset.c:477:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[2 + 10 + 1]; data/indent-2.2.12/intl/localcharset.c:506:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, dot, modifier - dot); data/indent-2.2.12/intl/localcharset.c:522:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "CP%u", cp[0]); data/indent-2.2.12/intl/localealias.c:228: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 (full_fname, fname, fname_len); data/indent-2.2.12/intl/localealias.c:229: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile); data/indent-2.2.12/intl/localealias.c:235:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "rc"); data/indent-2.2.12/intl/localealias.c:237:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen (relocate (full_fname), "r"); data/indent-2.2.12/intl/localealias.c:258: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. char buf[400]; data/indent-2.2.12/intl/localealias.c:351:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/indent-2.2.12/intl/localealias.c:356:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (const char *) memcpy (&string_space[string_space_act], data/indent-2.2.12/intl/localename.c:1152:26: [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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/indent-2.2.12/intl/localename.c:1152:51: [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. typedef struct { const char legacy[21+1]; const char unixy[5+1]; } data/indent-2.2.12/intl/localename.c:1290:26: [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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/indent-2.2.12/intl/localename.c:1290:51: [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. typedef struct { const char langtag[7+1]; const char unixy[12+1]; } data/indent-2.2.12/intl/localename.c:1320:26: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/indent-2.2.12/intl/localename.c:1320:50: [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. typedef struct { const char script[4+1]; const char unixy[9+1]; } data/indent-2.2.12/intl/localename.c:1453:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char namebuf[256]; data/indent-2.2.12/intl/localename.c:2537:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char contents[100]; /* has variable size */ data/indent-2.2.12/intl/localename.c:2568: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_node->contents, string, size); data/indent-2.2.12/intl/localename.c:2791: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 namebuf[256]; data/indent-2.2.12/intl/log.c:89:22: [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). last_logfile = fopen (logfilename, "a"); data/indent-2.2.12/intl/os2compat.c:40:1: [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 libintl_nl_default_dirname[MAXPATHLEN+1]; data/indent-2.2.12/intl/os2compat.c:59:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir, root, sl); data/indent-2.2.12/intl/os2compat.c:60:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/indent-2.2.12/intl/os2compat.c:73:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath, root, sl); data/indent-2.2.12/intl/os2compat.c:74:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/indent-2.2.12/intl/os2compat.c:87:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir, root, sl); data/indent-2.2.12/intl/os2compat.c:88:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/indent-2.2.12/intl/plural.c:1050: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. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/indent-2.2.12/intl/plural.c:1067: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. char yyformat[sizeof yyunexpected data/indent-2.2.12/intl/plural.c:1235: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/indent-2.2.12/intl/printf-parse.c:122:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, a->arg, a->count * sizeof (argument)); \ data/indent-2.2.12/intl/printf-parse.c:599:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); data/indent-2.2.12/intl/printf.c:224:15: [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 (resultbuf, result, pruned_length); data/indent-2.2.12/intl/printf.c:401:15: [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 (resultbuf, result, pruned_length * sizeof (wchar_t)); data/indent-2.2.12/intl/relocatable.c:134:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); data/indent-2.2.12/intl/relocatable.c:137:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); data/indent-2.2.12/intl/relocatable.c:219:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (q, curr_pathname, p - curr_pathname); data/indent-2.2.12/intl/relocatable.c:288: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 (curr_prefix, curr_installdir, curr_prefix_len); data/indent-2.2.12/intl/relocatable.c:322:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char location[MAX_PATH]; data/indent-2.2.12/intl/relocatable.c:352:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen ("/proc/self/maps", "r"); data/indent-2.2.12/intl/relocatable.c:486:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result, curr_prefix, curr_prefix_len); data/indent-2.2.12/intl/setlocale.c:640: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 llCC_buf[64]; data/indent-2.2.12/intl/setlocale.c:641: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 ll_buf[64]; data/indent-2.2.12/intl/setlocale.c:642: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 CC_buf[64]; data/indent-2.2.12/intl/setlocale.c:711:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ll_buf, llCC_buf, underscore - llCC_buf); data/indent-2.2.12/intl/setlocale.c:714:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (CC_buf, territory_start, territory_end - territory_start); data/indent-2.2.12/intl/setlocale.c:747:29: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64+64]; data/indent-2.2.12/intl/setlocale.c:751:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, part1, part1_len); data/indent-2.2.12/intl/setlocale.c:753:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf + part1_len + 1, part2, part2_len); data/indent-2.2.12/intl/setlocale.c:794:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char lc_messages_name[64] = "C"; data/indent-2.2.12/intl/textdomain.c:99:2: [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_domain, domainname, len); data/indent-2.2.12/intl/vasnprintf.c:143:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define DCHAR_CPY memcpy data/indent-2.2.12/intl/vasnprintf.c:284: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 pointbuf[5]; data/indent-2.2.12/intl/vasnprintf.c:285:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pointbuf, "%#.0f", 1.0); data/indent-2.2.12/intl/vasnprintf.c:509: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 (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/indent-2.2.12/intl/vasnprintf.c:645:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); data/indent-2.2.12/intl/vasnprintf.c:2674:27: [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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/indent-2.2.12/intl/vasnprintf.c:2719:27: [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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/indent-2.2.12/intl/vasnprintf.c:2769:25: [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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/indent-2.2.12/intl/vasnprintf.c:2782:25: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (tmpptr, cbuf, count); data/indent-2.2.12/intl/vasnprintf.c:2851:27: [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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/indent-2.2.12/intl/vasnprintf.c:2864:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/indent-2.2.12/intl/vasnprintf.c:2880:27: [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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/indent-2.2.12/intl/vasnprintf.c:2902:27: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cbuf, count); data/indent-2.2.12/intl/vasnprintf.c:3187:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3193:35: [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 expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:3195:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3338:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3344:35: [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 expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:3346:35: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3411: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. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/indent-2.2.12/intl/vasnprintf.c:3800:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3806:37: [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 expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:3808:37: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3981:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf ((char *) p, "%+.2d", exponent); data/indent-2.2.12/intl/vasnprintf.c:3987:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:3989:45: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (expbuf, "%+.2d", exponent); data/indent-2.2.12/intl/vasnprintf.c:4279:39: [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 expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:4472:47: [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 expbuf[6 + 1]; data/indent-2.2.12/intl/vasnprintf.c:4597: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. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/indent-2.2.12/intl/vasnprintf.c:4801:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); data/indent-2.2.12/intl/vasnprintf.c:4822:29: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); data/indent-2.2.12/intl/vasnprintf.c:5518:21: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, tmp, count * sizeof (DCHAR_T)); data/indent-2.2.12/man/texinfo2man.c:44:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char b[256]; data/indent-2.2.12/man/texinfo2man.c:190:1: [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 * vars[256] = {NULL}; data/indent-2.2.12/man/texinfo2man.c:191:1: [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 * replacement[256] = {NULL}; data/indent-2.2.12/man/texinfo2man.c:194:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char value_updated[64] = ""; data/indent-2.2.12/man/texinfo2man.c:195:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char value_edition[64] = ""; data/indent-2.2.12/man/texinfo2man.c:196:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char value_version[64] = ""; data/indent-2.2.12/man/texinfo2man.c:201:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/indent-2.2.12/man/texinfo2man.c:216: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). in2 = fopen (buf + 9, "r"); data/indent-2.2.12/man/texinfo2man.c:292:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/indent-2.2.12/man/texinfo2man.c:297:9: [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). in = fopen (argv[2], "r"); data/indent-2.2.12/man/texinfo2man.c:301:9: [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). in = fopen (argv[1], "r"); data/indent-2.2.12/regression/input/args.c:679:16: [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). *p->p_obj = atoi (param_start); data/indent-2.2.12/regression/input/args.c:710: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 b0[BUFSIZ]; data/indent-2.2.12/regression/input/args.c:711: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 b1[BUFSIZ]; data/indent-2.2.12/regression/input/args.c:771:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen (INDENT_PROFILE, "r")) != NULL) data/indent-2.2.12/regression/input/args.c:780: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 (&fname[2], INDENT_PROFILE, len - 3); data/indent-2.2.12/regression/input/args.c:791: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). if ((f = fopen (fname, "r")) != NULL) data/indent-2.2.12/regression/input/indent.c:530:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.Du %dp+\200p \"%.*s\"\n", dec_ind * 7, data/indent-2.2.12/regression/input/indent.c:663:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.Du %dp+\200p \"%.*s\"\n", dec_ind * 7, data/indent-2.2.12/regression/input/indent.c:1125:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.De %dp+\200p\n", dec_ind * 7); data/indent-2.2.12/regression/input/indent.c:1376: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, parser_state_tos, sizeof (struct parser_state)); data/indent-2.2.12/regression/input/indent.c:1383: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->p_stack, parser_state_tos->p_stack, data/indent-2.2.12/regression/input/indent.c:1388: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->il, parser_state_tos->il, data/indent-2.2.12/regression/input/indent.c:1394: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->cstk, parser_state_tos->cstk, data/indent-2.2.12/regression/input/indent.c:1399: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->paren_indents, parser_state_tos->paren_indents, data/indent-2.2.12/regression/input/indent.c:1427:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos, second, data/indent-2.2.12/regression/input/indent.c:1437:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->p_stack, data/indent-2.2.12/regression/input/indent.c:1443:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->il, data/indent-2.2.12/regression/input/indent.c:1448:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->cstk, data/indent-2.2.12/regression/input/indent.c:1453:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->paren_indents, data/indent-2.2.12/regression/input/indent.c:1668: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). output = fopen (out_name, "w"); data/indent-2.2.12/regression/input/indent.c:1710: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). output = fopen (out_name, "w"); data/indent-2.2.12/regression/input/indent.h:296: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 font[4]; data/indent-2.2.12/regression/input/indent_globs.h:52: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. char *memcpy (); data/indent-2.2.12/regression/input/indent_globs.h:341: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 font[4]; data/indent-2.2.12/regression/input/initializers.c:3: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 c[8] = { data/indent-2.2.12/regression/input/initializers.c:7: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 c[8] = { /* comment */ data/indent-2.2.12/regression/input/initializers.c:11: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 c[8] = { /* mult-line data/indent-2.2.12/regression/input/io.c:439:8: [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). fd = open (filename, O_RDONLY, 0777); data/indent-2.2.12/regression/input/io.c:458: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 (fileptr.name, filename, namelen); data/indent-2.2.12/regression/input/lexi.c:52:1: [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 chartype[128] = data/indent-2.2.12/regression/input/memcpy.c:6:1: [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 (destaddr, srcaddr, len) data/indent-2.2.12/regression/input/proto.c:14: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/indent-2.2.12/regression/standard/args.c:675:16: [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). *p->p_obj = atoi (param_start); data/indent-2.2.12/regression/standard/args.c:706: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 b0[BUFSIZ]; data/indent-2.2.12/regression/standard/args.c:707: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 b1[BUFSIZ]; data/indent-2.2.12/regression/standard/args.c:767:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen (INDENT_PROFILE, "r")) != NULL) data/indent-2.2.12/regression/standard/args.c:776: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 (&fname[2], INDENT_PROFILE, len - 3); data/indent-2.2.12/regression/standard/args.c:787: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). if ((f = fopen (fname, "r")) != NULL) data/indent-2.2.12/regression/standard/indent.c:525:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.Du %dp+\200p \"%.*s\"\n", dec_ind * 7, data/indent-2.2.12/regression/standard/indent.c:657:8: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.Du %dp+\200p \"%.*s\"\n", dec_ind * 7, data/indent-2.2.12/regression/standard/indent.c:1116:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (e_code, "\n.De %dp+\200p\n", dec_ind * 7); data/indent-2.2.12/regression/standard/indent.c:1363: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, parser_state_tos, sizeof (struct parser_state)); data/indent-2.2.12/regression/standard/indent.c:1370: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->p_stack, parser_state_tos->p_stack, data/indent-2.2.12/regression/standard/indent.c:1375: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->il, parser_state_tos->il, data/indent-2.2.12/regression/standard/indent.c:1380: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->cstk, parser_state_tos->cstk, data/indent-2.2.12/regression/standard/indent.c:1385: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->paren_indents, parser_state_tos->paren_indents, data/indent-2.2.12/regression/standard/indent.c:1412:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos, second, data/indent-2.2.12/regression/standard/indent.c:1422:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->p_stack, data/indent-2.2.12/regression/standard/indent.c:1428:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->il, data/indent-2.2.12/regression/standard/indent.c:1433:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->cstk, data/indent-2.2.12/regression/standard/indent.c:1438:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (parser_state_tos->paren_indents, data/indent-2.2.12/regression/standard/indent.c:1660: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). output = fopen (out_name, "w"); data/indent-2.2.12/regression/standard/indent.c:1702: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). output = fopen (out_name, "w"); data/indent-2.2.12/regression/standard/indent.h:296: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 font[4]; data/indent-2.2.12/regression/standard/indent_globs.h:52: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. char *memcpy (); data/indent-2.2.12/regression/standard/indent_globs.h:341: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 font[4]; data/indent-2.2.12/regression/standard/initializers.c:4: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 c[8] = { data/indent-2.2.12/regression/standard/initializers.c:8: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 c[8] = { /* comment */ data/indent-2.2.12/regression/standard/initializers.c:12: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 c[8] = { /* mult-line data/indent-2.2.12/regression/standard/io.c:441:8: [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). fd = open (filename, O_RDONLY, 0777); data/indent-2.2.12/regression/standard/io.c:460: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 (fileptr.name, filename, namelen); data/indent-2.2.12/regression/standard/lexi.c:52:1: [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 chartype[128] = { /* this is used to facilitate the decision of data/indent-2.2.12/regression/standard/memcpy.c:6:1: [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 (destaddr, srcaddr, len) data/indent-2.2.12/regression/standard/proto.c:14: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/indent-2.2.12/src/args.c:108: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 *settings_strings[6] = { data/indent-2.2.12/src/args.c:746:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *option_prefixes[4] = { data/indent-2.2.12/src/args.c:922:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, param_start, param_len); data/indent-2.2.12/src/args.c:954:40: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *(int *)p->p_obj = atoi(param_start); data/indent-2.2.12/src/args.c:1119:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b0[BUFSIZ]; data/indent-2.2.12/src/args.c:1120:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char b1[BUFSIZ]; data/indent-2.2.12/src/args.c:1224:11: [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). f = fopen(envname, "r"); data/indent-2.2.12/src/args.c:1242:11: [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). f = fopen(INDENT_PROFILE, "r"); data/indent-2.2.12/src/args.c:1252:10: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(fname, "./"); data/indent-2.2.12/src/args.c:1264:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((f = fopen (fname, "r")) != NULL) data/indent-2.2.12/src/backup.c:434:25: [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). version_width = atoi (v); data/indent-2.2.12/src/backup.c:499: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). bf = fopen (backup_filename, "w"); data/indent-2.2.12/src/code_io.c:213:28: [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). int fd = open(filename, O_RDONLY, 0777); data/indent-2.2.12/src/code_io.c:315:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fileptr.name, filename, namelen); data/indent-2.2.12/src/comments.c:863:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (e_com, line_preamble, line_preamble_length); data/indent-2.2.12/src/handletoken.c:489:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpchar[2], *tmp; data/indent-2.2.12/src/handletoken.c:1266:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpchar[2]; data/indent-2.2.12/src/handletoken.c:2008:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new, parser_state_tos, sizeof(parser_state_ty)); data/indent-2.2.12/src/handletoken.c:2015:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new->p_stack, parser_state_tos->p_stack, data/indent-2.2.12/src/handletoken.c:2020:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new->il, parser_state_tos->il, data/indent-2.2.12/src/handletoken.c:2024:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new->cstk, parser_state_tos->cstk, data/indent-2.2.12/src/handletoken.c:2029:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new->paren_indents,parser_state_tos->paren_indents, data/indent-2.2.12/src/handletoken.c:2062:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (parser_state_tos, second, data/indent-2.2.12/src/handletoken.c:2074:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (parser_state_tos->p_stack, data/indent-2.2.12/src/handletoken.c:2080:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (parser_state_tos->il, data/indent-2.2.12/src/handletoken.c:2086:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (parser_state_tos->cstk, data/indent-2.2.12/src/handletoken.c:2092:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy (parser_state_tos->paren_indents, data/indent-2.2.12/src/indent.c:1091:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, "size_t", 7); data/indent-2.2.12/src/indent.c:1094:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, "wchar_t", 8); data/indent-2.2.12/src/indent.c:1097:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, "ptrdiff_t", 10); data/indent-2.2.12/src/lexi.c:237:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpchar[2]; data/indent-2.2.12/src/libgettext.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 msg_ctxt_id[msgctxt_len + msgid_len]; data/indent-2.2.12/src/libgettext.h:220: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/indent-2.2.12/src/libgettext.h:229: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/indent-2.2.12/src/libgettext.h:231: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/indent-2.2.12/src/libgettext.h:266: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/indent-2.2.12/src/libgettext.h:268: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/indent-2.2.12/src/libgettext.h:277: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/indent-2.2.12/src/libgettext.h:279: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/indent-2.2.12/src/output.c:1335:18: [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). output = fopen(filename, mode); /* open the file for read + write data/indent-2.2.12/src/sys.h:63:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memcpy(d, s, n) bcopy ((s), (d), (n)) data/indent-2.2.12/src/sys.h:63:31: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memcpy(d, s, n) bcopy ((s), (d), (n)) data/indent-2.2.12/src/sys.h:68:32: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define memmove(d, s, n) bcopy ((s), (d), (n)) data/indent-2.2.12/src/wildexp.c:124:28: [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 * fs = fopen (fname, "rb"); data/indent-2.2.12/src/wildexp.c:277:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (cp, cp + cnt, arg->argpos - (cp - arg->argbuf)); data/indent-2.2.12/src/wildexp.c:297:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpstr[MAX_PATH + 1]; data/indent-2.2.12/intl/bindtextdom.c:134: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 len = strlen (dirname) + 1; data/indent-2.2.12/intl/bindtextdom.c:172:18: [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 (codeset) + 1; data/indent-2.2.12/intl/bindtextdom.c:202: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). size_t len = strlen (domainname) + 1; data/indent-2.2.12/intl/bindtextdom.c:230:18: [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 (dirname) + 1; data/indent-2.2.12/intl/bindtextdom.c:259: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). size_t len = strlen (codeset) + 1; data/indent-2.2.12/intl/dcigettext.c:626:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t dirname_len = strlen (dirname) + 1; data/indent-2.2.12/intl/dcigettext.c:670: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). domainname_len = strlen (domainname); data/indent-2.2.12/intl/dcigettext.c:671:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdomainname = (char *) alloca (strlen (categoryname) data/indent-2.2.12/intl/dcigettext.c:680: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). single_locale = (char *) alloca (strlen (categoryvalue) + 1); data/indent-2.2.12/intl/dcigettext.c:772: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). msgid_len = strlen (msgid1) + 1; data/indent-2.2.12/intl/dcigettext.c:776: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). size += strlen (localename) + 1; data/indent-2.2.12/intl/dcigettext.c:912: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). nls_uint32 len = strlen (msgid); data/indent-2.2.12/intl/dcigettext.c:1117: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). charsetstr += strlen ("charset="); data/indent-2.2.12/intl/dcigettext.c:1161:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (outcharset); data/indent-2.2.12/intl/dcigettext.c:1616: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). size_t len = strlen (value) + 1; data/indent-2.2.12/intl/eval-plural.h:86:13: [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. case equal: data/indent-2.2.12/intl/finddomain.c:92: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). strlen (dirname) + 1, 0, locale, NULL, NULL, data/indent-2.2.12/intl/finddomain.c:132: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). size_t len = strlen (alias_value) + 1; data/indent-2.2.12/intl/finddomain.c:155: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). strlen (dirname) + 1, mask, language, territory, data/indent-2.2.12/intl/l10nflist.c:96:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/indent-2.2.12/intl/l10nflist.c:121:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t part_len = strlen (argz); data/indent-2.2.12/intl/l10nflist.c:195: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). + strlen (language) data/indent-2.2.12/intl/l10nflist.c:197:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (territory) + 1 : 0) data/indent-2.2.12/intl/l10nflist.c:199:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (codeset) + 1 : 0) data/indent-2.2.12/intl/l10nflist.c:201:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (normalized_codeset) + 1 : 0) data/indent-2.2.12/intl/l10nflist.c:203:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ? strlen (modifier) + 1 : 0) data/indent-2.2.12/intl/l10nflist.c:204: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). + 1 + strlen (filename) + 1); data/indent-2.2.12/intl/l10nflist.c:324:45: [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). = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, data/indent-2.2.12/intl/langprefs.c:127: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). q = q2 + strlen (q2); data/indent-2.2.12/intl/langprefs.c:266: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). size += strlen (buf) + 1; data/indent-2.2.12/intl/langprefs.c:298:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p += strlen (buf); data/indent-2.2.12/intl/loadmsgcat.c:468:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read(fd, buf, n) read_not_cancel (fd, buf, n) data/indent-2.2.12/intl/loadmsgcat.c:874:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). long int nb = (long int) read (fd, read_ptr, to_read); data/indent-2.2.12/intl/loadmsgcat.c:1053:18: [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). need += strlen (sysdep_segment_values[sysdepref]); data/indent-2.2.12/intl/loadmsgcat.c:1188:10: [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). n = strlen (sysdep_segment_values[sysdepref]); data/indent-2.2.12/intl/localcharset.c:103:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/indent-2.2.12/intl/localcharset.c:104:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc getc_unlocked data/indent-2.2.12/intl/localcharset.c:143: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). size_t dir_len = strlen (dir); data/indent-2.2.12/intl/localcharset.c:144: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). size_t base_len = strlen (base); data/indent-2.2.12/intl/localcharset.c:200:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/indent-2.2.12/intl/localcharset.c:209:33: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (fp); data/indent-2.2.12/intl/localcharset.c:216:27: [1] (buffer) fscanf: It's unclear if the %s limit in the format string is small enough (CWE-120). Check that the limit is sufficiently small, or use a different input function. if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) data/indent-2.2.12/intl/localcharset.c:218: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). l1 = strlen (buf1); data/indent-2.2.12/intl/localcharset.c:219: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). l2 = strlen (buf2); data/indent-2.2.12/intl/localcharset.c:536:19: [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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/indent-2.2.12/intl/localcharset.c:536:52: [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). aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) data/indent-2.2.12/intl/localcharset.c:540: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). codeset = aliases + strlen (aliases) + 1; data/indent-2.2.12/intl/localealias.c:322: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). alias_len = strlen (alias) + 1; data/indent-2.2.12/intl/localealias.c:323: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). value_len = strlen (value) + 1; data/indent-2.2.12/intl/localename.c:1353: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 (name) == 7 && name[2] == '-') data/indent-2.2.12/intl/localename.c:2561:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen (string) + 1; data/indent-2.2.12/intl/log.c:85: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). last_logfilename = (char *) malloc (strlen (logfilename) + 1); data/indent-2.2.12/intl/log.c:96:52: [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). print_escaped (logfile, domainname, domainname + strlen (domainname)); data/indent-2.2.12/intl/log.c:106:44: [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). print_escaped (logfile, msgid1, msgid1 + strlen (msgid1)); data/indent-2.2.12/intl/log.c:110:48: [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). print_escaped (logfile, msgid2, msgid2 + strlen (msgid2)); data/indent-2.2.12/intl/os2compat.c:57: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). size_t sl = strlen (root); data/indent-2.2.12/intl/os2compat.c:58: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). _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); data/indent-2.2.12/intl/os2compat.c:60:47: [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). memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); data/indent-2.2.12/intl/os2compat.c:71: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). size_t sl = strlen (root); data/indent-2.2.12/intl/os2compat.c:72:58: [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). _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); data/indent-2.2.12/intl/os2compat.c:74:67: [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). memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); data/indent-2.2.12/intl/os2compat.c:85: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). size_t sl = strlen (root); data/indent-2.2.12/intl/os2compat.c:86:52: [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). _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); data/indent-2.2.12/intl/os2compat.c:88:53: [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). memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); data/indent-2.2.12/intl/os2compat.c:94: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 (_nlos2_localedir) <= MAXPATHLEN) data/indent-2.2.12/intl/plural-exp.h:51:3: [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. equal, /* Comparison for equality. */ data/indent-2.2.12/intl/plural.c:931: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/indent-2.2.12/intl/plural.c:1853: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. lval->op = equal; data/indent-2.2.12/intl/relocatable.c:127:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). orig_prefix_len = strlen (orig_prefix_arg); data/indent-2.2.12/intl/relocatable.c:128:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). curr_prefix_len = strlen (curr_prefix_arg); data/indent-2.2.12/intl/relocatable.c:195:53: [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 (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) data/indent-2.2.12/intl/relocatable.c:199: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). rel_installdir = orig_installdir + strlen (orig_installprefix); data/indent-2.2.12/intl/relocatable.c:204:37: [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 char *p = curr_pathname + strlen (curr_pathname); data/indent-2.2.12/intl/relocatable.c:227:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const char *rp = rel_installdir + strlen (rel_installdir); data/indent-2.2.12/intl/relocatable.c:228:40: [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 char *cp = curr_installdir + strlen (curr_installdir); data/indent-2.2.12/intl/relocatable.c:366:26: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n' && c != '/') data/indent-2.2.12/intl/relocatable.c:385:22: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (c = getc (fp), c != EOF && c != '\n') data/indent-2.2.12/intl/relocatable.c:465:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *result = (char *) xmalloc (strlen (curr_prefix) + 1); data/indent-2.2.12/intl/relocatable.c:480: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). (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); data/indent-2.2.12/intl/setlocale.c:652: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 (locale) < sizeof (llCC_buf)) data/indent-2.2.12/intl/setlocale.c:709: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). territory_end = territory_start + strlen (territory_start); data/indent-2.2.12/intl/setlocale.c:744:48: [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 part1_len = strlen (part1); data/indent-2.2.12/intl/setlocale.c:746:48: [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 part2_len = strlen (part2) + 1; data/indent-2.2.12/intl/setlocale.c:805:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1); data/indent-2.2.12/intl/textdomain.c:96: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). size_t len = strlen (domainname) + 1; data/indent-2.2.12/intl/vasnprintf.c:229:24: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define local_wcslen wcslen data/indent-2.2.12/intl/vasnprintf.c:1731: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). tmp_length = strlen (arg); data/indent-2.2.12/intl/vasnprintf.c:2571:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). arg_end = arg + strlen (arg); data/indent-2.2.12/intl/vasnprintf.c:3667: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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:3727:51: [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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:3763:45: [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 (digits2) == precision + 1) data/indent-2.2.12/intl/vasnprintf.c:3863:51: [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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:3899:45: [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 (digits2) == precision) data/indent-2.2.12/intl/vasnprintf.c:4129: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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:4186:51: [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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:4221:45: [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 (digits2) == precision + 1) data/indent-2.2.12/intl/vasnprintf.c:4334:51: [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). ndigits = strlen (digits); data/indent-2.2.12/intl/vasnprintf.c:4369:45: [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 (digits2) == precision) data/indent-2.2.12/man/texinfo2man.c:232:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value_updated, buf + 13, sizeof(value_updated) - 1); data/indent-2.2.12/man/texinfo2man.c:237:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value_edition, buf + 13, sizeof(value_edition) - 1); data/indent-2.2.12/man/texinfo2man.c:242:14: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(value_version, buf + 13, sizeof(value_version) - 1); data/indent-2.2.12/man/texinfo2man.c:250: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). size_t len = strlen (p); data/indent-2.2.12/man/texinfo2man.c:265: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). size_t len = strlen (replacement[nr]); data/indent-2.2.12/man/texinfo2man.c:319: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). size_t len = strlen (vars[i]); data/indent-2.2.12/man/texinfo2man.c:329: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). p += strlen (vars[i]) + 1; data/indent-2.2.12/regression/input/args.c:653: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). str = (char *) xmalloc (strlen (param_start) + 1); data/indent-2.2.12/regression/input/args.c:717:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = next; (i = getc (f)) != EOF && (*p = i) > ' '; ++p); data/indent-2.2.12/regression/input/args.c:773: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). int len = strlen (INDENT_PROFILE) + 3; data/indent-2.2.12/regression/input/args.c:788: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). fname = xmalloc (strlen (homedir) + 10 + sizeof prof); data/indent-2.2.12/regression/input/backup.c:66: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). #define NLENGTH(direct) (strlen((direct)->d_name)) data/indent-2.2.12/regression/input/backup.c:113: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). backup_name = xmalloc (strlen (pathname) data/indent-2.2.12/regression/input/backup.c:114: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 (simple_backup_suffix) + 2); data/indent-2.2.12/regression/input/backup.c:164: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). file_name_length = strlen (filename); data/indent-2.2.12/regression/input/backup.c:190: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). int pathlen = strlen (pathname); data/indent-2.2.12/regression/input/backup.c:204:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dirname, pathname, (dirlen)); data/indent-2.2.12/regression/input/backup.c:240: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). backup_name = xmalloc (strlen (pathname) + 16); data/indent-2.2.12/regression/input/backup.c:323: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). register char *p = file->name + strlen (file->name) - 1; data/indent-2.2.12/regression/input/comments3.c:9:4: [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(parv[1]) != 1 && !(acptr = FindClient(parv[1])))) data/indent-2.2.12/regression/input/comments3.c:10:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). || (strlen(parv[1]) == 1 && data/indent-2.2.12/regression/input/do-cdw.c:6:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/input/do-cdw.c:10:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/input/do.c:8:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/input/do.c:12:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/input/do.c:17:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/input/indent.c:532: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). e_code += strlen (e_code); data/indent-2.2.12/regression/input/indent.c:666:18: [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). e_code += strlen (e_code); data/indent-2.2.12/regression/input/indent.c:1127: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). e_code += strlen (e_code); data/indent-2.2.12/regression/input/indent.c:1337:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (save_com.end, s_lab + com_start, data/indent-2.2.12/regression/input/io.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). int size = strlen (offender); data/indent-2.2.12/regression/input/io.c:437: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). int namelen = strlen (filename); data/indent-2.2.12/regression/input/io.c:451:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (fd, fileptr.data, fileptr.size) < 0) data/indent-2.2.12/regression/input/io.c:493:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc (stdin); data/indent-2.2.12/regression/input/lexi.c:707:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (is_reserved (key, strlen (key)) != 0) data/indent-2.2.12/regression/standard/args.c:649: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). str = (char *) xmalloc (strlen (param_start) + 1); data/indent-2.2.12/regression/standard/args.c:713:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for (p = next; (i = getc (f)) != EOF && (*p = i) > ' '; ++p); data/indent-2.2.12/regression/standard/args.c:769: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). int len = strlen (INDENT_PROFILE) + 3; data/indent-2.2.12/regression/standard/args.c:784: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). fname = xmalloc (strlen (homedir) + 10 + sizeof prof); data/indent-2.2.12/regression/standard/backup.c:66: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). #define NLENGTH(direct) (strlen((direct)->d_name)) data/indent-2.2.12/regression/standard/backup.c:113: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). backup_name = xmalloc (strlen (pathname) data/indent-2.2.12/regression/standard/backup.c:114: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 (simple_backup_suffix) + 2); data/indent-2.2.12/regression/standard/backup.c:164: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). file_name_length = strlen (filename); data/indent-2.2.12/regression/standard/backup.c:190: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). int pathlen = strlen (pathname); data/indent-2.2.12/regression/standard/backup.c:204:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dirname, pathname, (dirlen)); data/indent-2.2.12/regression/standard/backup.c:239: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). backup_name = xmalloc (strlen (pathname) + 16); data/indent-2.2.12/regression/standard/backup.c:321: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). register char *p = file->name + strlen (file->name) - 1; data/indent-2.2.12/regression/standard/comments3.c:9:3: [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(parv[1]) != 1 && !(acptr = FindClient(parv[1])))) data/indent-2.2.12/regression/standard/comments3.c:10: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). || (strlen(parv[1]) == 1 && data/indent-2.2.12/regression/standard/do-cdw.c:5:9: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/standard/do-cdw.c:9:9: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/standard/do.c:8:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/standard/do.c:12:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/standard/do.c:17:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). b = getchar (); data/indent-2.2.12/regression/standard/indent.c:527: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). e_code += strlen (e_code); data/indent-2.2.12/regression/standard/indent.c:660:18: [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). e_code += strlen (e_code); data/indent-2.2.12/regression/standard/indent.c:1118: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). e_code += strlen (e_code); data/indent-2.2.12/regression/standard/indent.c:1323:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (save_com.end, s_lab + com_start, data/indent-2.2.12/regression/standard/io.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). int size = strlen (offender); data/indent-2.2.12/regression/standard/io.c:439: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). int namelen = strlen (filename); data/indent-2.2.12/regression/standard/io.c:453:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read (fd, fileptr.data, fileptr.size) < 0) data/indent-2.2.12/regression/standard/io.c:495:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc (stdin); data/indent-2.2.12/regression/standard/lexi.c:698:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (is_reserved (key, strlen (key)) != 0) data/indent-2.2.12/src/args.c:866: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). else if (strlen(p->p_name) == 1 && *(p->p_name) == 'h') data/indent-2.2.12/src/args.c:920: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). param_len = strlen(param_start); data/indent-2.2.12/src/args.c:988:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:993:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:1008:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int i = getc (f); data/indent-2.2.12/src/args.c:1016:17: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:1027:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:1034:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:1049:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int i = getc (f); data/indent-2.2.12/src/args.c:1080:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc (f); data/indent-2.2.12/src/args.c:1105:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = getc(f); data/indent-2.2.12/src/args.c:1246: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). int len = strlen (INDENT_PROFILE) + 3; data/indent-2.2.12/src/args.c:1261: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). fname = xmalloc(strlen (homedir) + strlen(PROFILE_FORMAT) + sizeof (prof)); data/indent-2.2.12/src/args.c:1261:48: [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). fname = xmalloc(strlen (homedir) + strlen(PROFILE_FORMAT) + sizeof (prof)); data/indent-2.2.12/src/backup.c:123: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). #define NAMLEN(dirent) strlen((dirent)->d_name) data/indent-2.2.12/src/backup.c:197: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). backup_name = xmalloc(strlen (pathname) + strlen (simple_backup_suffix) + 2); data/indent-2.2.12/src/backup.c:197:47: [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). backup_name = xmalloc(strlen (pathname) + strlen (simple_backup_suffix) + 2); data/indent-2.2.12/src/backup.c:255: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). unsigned int file_name_length = strlen(filename); data/indent-2.2.12/src/backup.c:292: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). int pathlen = strlen (pathname); data/indent-2.2.12/src/backup.c:309:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dirname, pathname, (dirlen)); data/indent-2.2.12/src/backup.c:357: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). backup_name = xmalloc(strlen (pathname) + 16); data/indent-2.2.12/src/code_io.c:212: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). unsigned int namelen = strlen(filename); data/indent-2.2.12/src/code_io.c:269:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size = read (fd, fileptr.data + fileptr.size - size_to_read, data/indent-2.2.12/src/code_io.c:363:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc (stdin); data/indent-2.2.12/src/comments.c:149: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). line_preamble_length = strlen(line_preamble); data/indent-2.2.12/src/handletoken.c:1951:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (save_com.end, s_lab + com_start, data/indent-2.2.12/src/lexi.c:1254:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( (settings.c_plus_plus && is_reserved_cc (key, strlen (key)) != 0) || data/indent-2.2.12/src/lexi.c:1255:54: [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). (!settings.c_plus_plus && is_reserved (key, strlen (key)) != 0)) data/indent-2.2.12/src/libgettext.h:214: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/indent-2.2.12/src/libgettext.h:215: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/indent-2.2.12/src/libgettext.h:262: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/indent-2.2.12/src/libgettext.h:263: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/indent-2.2.12/src/wildexp.c:99: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). cnt = strlen (str) + 1; data/indent-2.2.12/src/wildexp.c:182: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). cp += strlen (cp); data/indent-2.2.12/src/wildexp.c:272: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). cnt = strlen (cp) + 1; data/indent-2.2.12/src/wildexp.c:417: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). cp += strlen (cp) + 1; ANALYSIS SUMMARY: Hits = 609 Lines analyzed = 55552 in approximately 1.42 seconds (39075 lines/second) Physical Source Lines of Code (SLOC) = 39452 Hits@level = [0] 204 [1] 197 [2] 237 [3] 51 [4] 124 [5] 0 Hits@level+ = [0+] 813 [1+] 609 [2+] 412 [3+] 175 [4+] 124 [5+] 0 Hits/KSLOC@level+ = [0+] 20.6073 [1+] 15.4365 [2+] 10.4431 [3+] 4.43577 [4+] 3.14306 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.