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/pspp-1.4.1/src/data/casewriter.h Examining data/pspp-1.4.1/src/data/case-map.h Examining data/pspp-1.4.1/src/data/missing-values.h Examining data/pspp-1.4.1/src/data/gnumeric-reader.h Examining data/pspp-1.4.1/src/data/csv-file-writer.c Examining data/pspp-1.4.1/src/data/datasheet.h Examining data/pspp-1.4.1/src/data/file-name.h Examining data/pspp-1.4.1/src/data/attributes.c Examining data/pspp-1.4.1/src/data/casereader-project.c Examining data/pspp-1.4.1/src/data/calendar.c Examining data/pspp-1.4.1/src/data/por-file-reader.c Examining data/pspp-1.4.1/src/data/transformations.c Examining data/pspp-1.4.1/src/data/transformations.h Examining data/pspp-1.4.1/src/data/format-guesser.h Examining data/pspp-1.4.1/src/data/case-matcher.c Examining data/pspp-1.4.1/src/data/format.h Examining data/pspp-1.4.1/src/data/por-file-writer.c Examining data/pspp-1.4.1/src/data/gnumeric-reader.c Examining data/pspp-1.4.1/src/data/missing-values.c Examining data/pspp-1.4.1/src/data/identifier.h Examining data/pspp-1.4.1/src/data/case-map.c Examining data/pspp-1.4.1/src/data/data-out.c Examining data/pspp-1.4.1/src/data/casereader-translator.c Examining data/pspp-1.4.1/src/data/casegrouper.c Examining data/pspp-1.4.1/src/data/data-in.c Examining data/pspp-1.4.1/src/data/value-labels.h Examining data/pspp-1.4.1/src/data/attributes.h Examining data/pspp-1.4.1/src/data/mrset.c Examining data/pspp-1.4.1/src/data/casereader-shim.h Examining data/pspp-1.4.1/src/data/spreadsheet-reader.c Examining data/pspp-1.4.1/src/data/psql-reader.h Examining data/pspp-1.4.1/src/data/identifier.c Examining data/pspp-1.4.1/src/data/caseproto.h Examining data/pspp-1.4.1/src/data/data-out.h Examining data/pspp-1.4.1/src/data/format-guesser.c Examining data/pspp-1.4.1/src/data/mrset.h Examining data/pspp-1.4.1/src/data/ods-reader.h Examining data/pspp-1.4.1/src/data/val-type.h Examining data/pspp-1.4.1/src/data/caseinit.h Examining data/pspp-1.4.1/src/data/mdd-writer.h Examining data/pspp-1.4.1/src/data/dataset-writer.h Examining data/pspp-1.4.1/src/data/dictionary.h Examining data/pspp-1.4.1/src/data/casereader-select.c Examining data/pspp-1.4.1/src/data/por-file-writer.h Examining data/pspp-1.4.1/src/data/casereader-shim.c Examining data/pspp-1.4.1/src/data/casewindow.c Examining data/pspp-1.4.1/src/data/dictionary.c Examining data/pspp-1.4.1/src/data/settings.h Examining data/pspp-1.4.1/src/data/dataset.h Examining data/pspp-1.4.1/src/data/case-tmpfile.h Examining data/pspp-1.4.1/src/data/vector.h Examining data/pspp-1.4.1/src/data/variable.h Examining data/pspp-1.4.1/src/data/session.c Examining data/pspp-1.4.1/src/data/casewriter.c Examining data/pspp-1.4.1/src/data/variable.c Examining data/pspp-1.4.1/src/data/mdd-writer.c Examining data/pspp-1.4.1/src/data/data-in.h Examining data/pspp-1.4.1/src/data/caseinit.c Examining data/pspp-1.4.1/src/data/caseproto.c Examining data/pspp-1.4.1/src/data/short-names.c Examining data/pspp-1.4.1/src/data/case-matcher.h Examining data/pspp-1.4.1/src/data/datasheet.c Examining data/pspp-1.4.1/src/data/spreadsheet-reader.h Examining data/pspp-1.4.1/src/data/casereader.h Examining data/pspp-1.4.1/src/data/casewriter-provider.h Examining data/pspp-1.4.1/src/data/casegrouper.h Examining data/pspp-1.4.1/src/data/any-writer.c Examining data/pspp-1.4.1/src/data/subcase.c Examining data/pspp-1.4.1/src/data/casereader-filter.c Examining data/pspp-1.4.1/src/data/sys-file-reader.c Examining data/pspp-1.4.1/src/data/case-tmpfile.c Examining data/pspp-1.4.1/src/data/ods-reader.c Examining data/pspp-1.4.1/src/data/case.h Examining data/pspp-1.4.1/src/data/lazy-casereader.c Examining data/pspp-1.4.1/src/data/format.c Examining data/pspp-1.4.1/src/data/vardict.h Examining data/pspp-1.4.1/src/data/vector.c Examining data/pspp-1.4.1/src/data/short-names.h Examining data/pspp-1.4.1/src/data/casewindow.h Examining data/pspp-1.4.1/src/data/settings.c Examining data/pspp-1.4.1/src/data/sys-file-writer.h Examining data/pspp-1.4.1/src/data/file-handle-def.h Examining data/pspp-1.4.1/src/data/any-reader.h Examining data/pspp-1.4.1/src/data/sys-file-encoding.c Examining data/pspp-1.4.1/src/data/sys-file-writer.c Examining data/pspp-1.4.1/src/data/value.h Examining data/pspp-1.4.1/src/data/identifier2.c Examining data/pspp-1.4.1/src/data/encrypted-file.h Examining data/pspp-1.4.1/src/data/lazy-casereader.h Examining data/pspp-1.4.1/src/data/value-labels.c Examining data/pspp-1.4.1/src/data/any-writer.h Examining data/pspp-1.4.1/src/data/calendar.h Examining data/pspp-1.4.1/src/data/case.c Examining data/pspp-1.4.1/src/data/file-name.c Examining data/pspp-1.4.1/src/data/session.h Examining data/pspp-1.4.1/src/data/sys-file-private.h Examining data/pspp-1.4.1/src/data/make-file.h Examining data/pspp-1.4.1/src/data/pc+-file-reader.c Examining data/pspp-1.4.1/src/data/file-handle-def.c Examining data/pspp-1.4.1/src/data/casereader-provider.h Examining data/pspp-1.4.1/src/data/sys-file-private.c Examining data/pspp-1.4.1/src/data/dict-class.h Examining data/pspp-1.4.1/src/data/encrypted-file.c Examining data/pspp-1.4.1/src/data/casewriter-translator.c Examining data/pspp-1.4.1/src/data/psql-reader.c Examining data/pspp-1.4.1/src/data/dataset-writer.c Examining data/pspp-1.4.1/src/data/dict-class.c Examining data/pspp-1.4.1/src/data/value.c Examining data/pspp-1.4.1/src/data/dataset.c Examining data/pspp-1.4.1/src/data/csv-file-writer.h Examining data/pspp-1.4.1/src/data/casereader.c Examining data/pspp-1.4.1/src/data/any-reader.c Examining data/pspp-1.4.1/src/data/subcase.h Examining data/pspp-1.4.1/src/data/make-file.c Examining data/pspp-1.4.1/src/output/chart-item-provider.h Examining data/pspp-1.4.1/src/output/group-item.c Examining data/pspp-1.4.1/src/output/cairo.h Examining data/pspp-1.4.1/src/output/odt.c Examining data/pspp-1.4.1/src/output/pivot-table.h Examining data/pspp-1.4.1/src/output/cairo-chart.c Examining data/pspp-1.4.1/src/output/msglog.h Examining data/pspp-1.4.1/src/output/chart-item.c Examining data/pspp-1.4.1/src/output/render.h Examining data/pspp-1.4.1/src/output/driver-provider.h Examining data/pspp-1.4.1/src/output/csv.c Examining data/pspp-1.4.1/src/output/group-item.h Examining data/pspp-1.4.1/src/output/table.h Examining data/pspp-1.4.1/src/output/table-provider.h Examining data/pspp-1.4.1/src/output/table.c Examining data/pspp-1.4.1/src/output/driver.h Examining data/pspp-1.4.1/src/output/render.c Examining data/pspp-1.4.1/src/output/options.c Examining data/pspp-1.4.1/src/output/measure.h Examining data/pspp-1.4.1/src/output/spv/spv-light-decoder.c Examining data/pspp-1.4.1/src/output/spv/spv-light-decoder.h Examining data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.h Examining data/pspp-1.4.1/src/output/spv/spv-writer.h Examining data/pspp-1.4.1/src/output/spv/spv.c Examining data/pspp-1.4.1/src/output/spv/spv-dump.c Examining data/pspp-1.4.1/src/output/spv/spvxml-helpers.c Examining data/pspp-1.4.1/src/output/spv/spvxml-helpers.h Examining data/pspp-1.4.1/src/output/spv/spv-css-parser.h Examining data/pspp-1.4.1/src/output/spv/spvbin-helpers.h Examining data/pspp-1.4.1/src/output/spv/spv-select.h Examining data/pspp-1.4.1/src/output/spv/spv.h Examining data/pspp-1.4.1/src/output/spv/spv-output.h Examining data/pspp-1.4.1/src/output/spv/spv-css-parser.c Examining data/pspp-1.4.1/src/output/spv/spv-legacy-data.c Examining data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c Examining data/pspp-1.4.1/src/output/spv/spvbin-helpers.c Examining data/pspp-1.4.1/src/output/spv/spv-legacy-data.h Examining data/pspp-1.4.1/src/output/spv/spv-output.c Examining data/pspp-1.4.1/src/output/spv/spv-writer.c Examining data/pspp-1.4.1/src/output/spv/spv-select.c Examining data/pspp-1.4.1/src/output/charts/roc-chart.c Examining data/pspp-1.4.1/src/output/charts/scatterplot-cairo.c Examining data/pspp-1.4.1/src/output/charts/plot-hist.h Examining data/pspp-1.4.1/src/output/charts/boxplot-cairo.c Examining data/pspp-1.4.1/src/output/charts/spreadlevel-cairo.c Examining data/pspp-1.4.1/src/output/charts/barchart.c Examining data/pspp-1.4.1/src/output/charts/np-plot-cairo.c Examining data/pspp-1.4.1/src/output/charts/boxplot.h Examining data/pspp-1.4.1/src/output/charts/piechart.h Examining data/pspp-1.4.1/src/output/charts/np-plot.h Examining data/pspp-1.4.1/src/output/charts/np-plot.c Examining data/pspp-1.4.1/src/output/charts/plot-hist.c Examining data/pspp-1.4.1/src/output/charts/barchart-cairo.c Examining data/pspp-1.4.1/src/output/charts/barchart.h Examining data/pspp-1.4.1/src/output/charts/scatterplot.c Examining data/pspp-1.4.1/src/output/charts/piechart-cairo.c Examining data/pspp-1.4.1/src/output/charts/roc-chart-cairo.c Examining data/pspp-1.4.1/src/output/charts/plot-hist-cairo.c Examining data/pspp-1.4.1/src/output/charts/roc-chart.h Examining data/pspp-1.4.1/src/output/charts/spreadlevel-plot.c Examining data/pspp-1.4.1/src/output/charts/scree.c Examining data/pspp-1.4.1/src/output/charts/spreadlevel-plot.h Examining data/pspp-1.4.1/src/output/charts/scatterplot.h Examining data/pspp-1.4.1/src/output/charts/scree-cairo.c Examining data/pspp-1.4.1/src/output/charts/boxplot.c Examining data/pspp-1.4.1/src/output/charts/piechart.c Examining data/pspp-1.4.1/src/output/charts/scree.h Examining data/pspp-1.4.1/src/output/output-item-provider.h Examining data/pspp-1.4.1/src/output/page-setup-item.c Examining data/pspp-1.4.1/src/output/page-setup-item.h Examining data/pspp-1.4.1/src/output/text-item.c Examining data/pspp-1.4.1/src/output/output-item.c Examining data/pspp-1.4.1/src/output/ascii.c Examining data/pspp-1.4.1/src/output/output-item.h Examining data/pspp-1.4.1/src/output/journal.h Examining data/pspp-1.4.1/src/output/msglog.c Examining data/pspp-1.4.1/src/output/cairo-chart.h Examining data/pspp-1.4.1/src/output/message-item.h Examining data/pspp-1.4.1/src/output/table-item.h Examining data/pspp-1.4.1/src/output/journal.c Examining data/pspp-1.4.1/src/output/pivot-table.c Examining data/pspp-1.4.1/src/output/cairo.c Examining data/pspp-1.4.1/src/output/measure.c Examining data/pspp-1.4.1/src/output/spv-driver.c Examining data/pspp-1.4.1/src/output/message-item.c Examining data/pspp-1.4.1/src/output/driver.c Examining data/pspp-1.4.1/src/output/html.c Examining data/pspp-1.4.1/src/output/text-item.h Examining data/pspp-1.4.1/src/output/table-item.c Examining data/pspp-1.4.1/src/output/chart-item.h Examining data/pspp-1.4.1/src/output/ascii.h Examining data/pspp-1.4.1/src/output/options.h Examining data/pspp-1.4.1/src/output/pivot-output.c Examining data/pspp-1.4.1/src/language/dictionary/weight.c Examining data/pspp-1.4.1/src/language/dictionary/sys-file-info.c Examining data/pspp-1.4.1/src/language/dictionary/attributes.c Examining data/pspp-1.4.1/src/language/dictionary/apply-dictionary.c Examining data/pspp-1.4.1/src/language/dictionary/formats.c Examining data/pspp-1.4.1/src/language/dictionary/rename-variables.c Examining data/pspp-1.4.1/src/language/dictionary/missing-values.c Examining data/pspp-1.4.1/src/language/dictionary/numeric.c Examining data/pspp-1.4.1/src/language/dictionary/variable-display.c Examining data/pspp-1.4.1/src/language/dictionary/sort-variables.c Examining data/pspp-1.4.1/src/language/dictionary/delete-variables.c Examining data/pspp-1.4.1/src/language/dictionary/vector.c Examining data/pspp-1.4.1/src/language/dictionary/split-file.c Examining data/pspp-1.4.1/src/language/dictionary/mrsets.c Examining data/pspp-1.4.1/src/language/dictionary/variable-label.c Examining data/pspp-1.4.1/src/language/dictionary/modify-variables.c Examining data/pspp-1.4.1/src/language/dictionary/value-labels.c Examining data/pspp-1.4.1/src/language/dictionary/split-file.h Examining data/pspp-1.4.1/src/language/xforms/compute.c Examining data/pspp-1.4.1/src/language/xforms/count.c Examining data/pspp-1.4.1/src/language/xforms/select-if.c Examining data/pspp-1.4.1/src/language/xforms/fail.c Examining data/pspp-1.4.1/src/language/xforms/recode.c Examining data/pspp-1.4.1/src/language/xforms/sample.c Examining data/pspp-1.4.1/src/language/command.c Examining data/pspp-1.4.1/src/language/lexer/scan.h Examining data/pspp-1.4.1/src/language/lexer/value-parser.h Examining data/pspp-1.4.1/src/language/lexer/token.h Examining data/pspp-1.4.1/src/language/lexer/subcommand-list.c Examining data/pspp-1.4.1/src/language/lexer/command-name.c Examining data/pspp-1.4.1/src/language/lexer/command-name.h Examining data/pspp-1.4.1/src/language/lexer/token.c Examining data/pspp-1.4.1/src/language/lexer/include-path.c Examining data/pspp-1.4.1/src/language/lexer/value-parser.c Examining data/pspp-1.4.1/src/language/lexer/scan.c Examining data/pspp-1.4.1/src/language/lexer/variable-parser.h Examining data/pspp-1.4.1/src/language/lexer/lexer.h Examining data/pspp-1.4.1/src/language/lexer/q2c.c Examining data/pspp-1.4.1/src/language/lexer/include-path.h Examining data/pspp-1.4.1/src/language/lexer/segment.h Examining data/pspp-1.4.1/src/language/lexer/segment.c Examining data/pspp-1.4.1/src/language/lexer/format-parser.c Examining data/pspp-1.4.1/src/language/lexer/format-parser.h Examining data/pspp-1.4.1/src/language/lexer/subcommand-list.h Examining data/pspp-1.4.1/src/language/lexer/variable-parser.c Examining data/pspp-1.4.1/src/language/lexer/lexer.c Examining data/pspp-1.4.1/src/language/control/repeat.c Examining data/pspp-1.4.1/src/language/control/loop.c Examining data/pspp-1.4.1/src/language/control/temporary.c Examining data/pspp-1.4.1/src/language/control/control-stack.h Examining data/pspp-1.4.1/src/language/control/do-if.c Examining data/pspp-1.4.1/src/language/control/control-stack.c Examining data/pspp-1.4.1/src/language/data-io/matrix-reader.c Examining data/pspp-1.4.1/src/language/data-io/list.c Examining data/pspp-1.4.1/src/language/data-io/data-reader.c Examining data/pspp-1.4.1/src/language/data-io/data-writer.c Examining data/pspp-1.4.1/src/language/data-io/get.c Examining data/pspp-1.4.1/src/language/data-io/inpt-pgm.c Examining data/pspp-1.4.1/src/language/data-io/inpt-pgm.h Examining data/pspp-1.4.1/src/language/data-io/trim.c Examining data/pspp-1.4.1/src/language/data-io/data-list.c Examining data/pspp-1.4.1/src/language/data-io/data-parser.c Examining data/pspp-1.4.1/src/language/data-io/print-space.c Examining data/pspp-1.4.1/src/language/data-io/print.c Examining data/pspp-1.4.1/src/language/data-io/save.c Examining data/pspp-1.4.1/src/language/data-io/data-writer.h Examining data/pspp-1.4.1/src/language/data-io/get-data.c Examining data/pspp-1.4.1/src/language/data-io/save-translate.c Examining data/pspp-1.4.1/src/language/data-io/trim.h Examining data/pspp-1.4.1/src/language/data-io/matrix-data.c Examining data/pspp-1.4.1/src/language/data-io/file-handle.c Examining data/pspp-1.4.1/src/language/data-io/placement-parser.c Examining data/pspp-1.4.1/src/language/data-io/data-reader.h Examining data/pspp-1.4.1/src/language/data-io/matrix-reader.h Examining data/pspp-1.4.1/src/language/data-io/combine-files.c Examining data/pspp-1.4.1/src/language/data-io/placement-parser.h Examining data/pspp-1.4.1/src/language/data-io/data-parser.h Examining data/pspp-1.4.1/src/language/data-io/file-handle.h Examining data/pspp-1.4.1/src/language/data-io/dataset.c Examining data/pspp-1.4.1/src/language/tests/moments-test.c Examining data/pspp-1.4.1/src/language/tests/pool-test.c Examining data/pspp-1.4.1/src/language/tests/format-guesser-test.c Examining data/pspp-1.4.1/src/language/tests/paper-size.c Examining data/pspp-1.4.1/src/language/tests/float-format.c Examining data/pspp-1.4.1/src/language/utilities/cd.c Examining data/pspp-1.4.1/src/language/utilities/permissions.c Examining data/pspp-1.4.1/src/language/utilities/host.c Examining data/pspp-1.4.1/src/language/utilities/cache.c Examining data/pspp-1.4.1/src/language/utilities/title.c Examining data/pspp-1.4.1/src/language/utilities/echo.c Examining data/pspp-1.4.1/src/language/utilities/date.c Examining data/pspp-1.4.1/src/language/utilities/output.c Examining data/pspp-1.4.1/src/language/utilities/include.c Examining data/pspp-1.4.1/src/language/stats/autorecode.c Examining data/pspp-1.4.1/src/language/stats/graph.c Examining data/pspp-1.4.1/src/language/stats/t-test.h Examining data/pspp-1.4.1/src/language/stats/npar.h Examining data/pspp-1.4.1/src/language/stats/kruskal-wallis.c Examining data/pspp-1.4.1/src/language/stats/mann-whitney.h Examining data/pspp-1.4.1/src/language/stats/t-test-paired.c Examining data/pspp-1.4.1/src/language/stats/npar-summary.c Examining data/pspp-1.4.1/src/language/stats/means.h Examining data/pspp-1.4.1/src/language/stats/means-calc.c Examining data/pspp-1.4.1/src/language/stats/glm.c Examining data/pspp-1.4.1/src/language/stats/ks-one-sample.c Examining data/pspp-1.4.1/src/language/stats/mcnemar.c Examining data/pspp-1.4.1/src/language/stats/aggregate.h Examining data/pspp-1.4.1/src/language/stats/means-parser.c Examining data/pspp-1.4.1/src/language/stats/examine.c Examining data/pspp-1.4.1/src/language/stats/binomial.c Examining data/pspp-1.4.1/src/language/stats/flip.c Examining data/pspp-1.4.1/src/language/stats/freq.c Examining data/pspp-1.4.1/src/language/stats/descriptives.c Examining data/pspp-1.4.1/src/language/stats/chart-category.h Examining data/pspp-1.4.1/src/language/stats/binomial.h Examining data/pspp-1.4.1/src/language/stats/sort-criteria.c Examining data/pspp-1.4.1/src/language/stats/sort-criteria.h Examining data/pspp-1.4.1/src/language/stats/cochran.c Examining data/pspp-1.4.1/src/language/stats/runs.c Examining data/pspp-1.4.1/src/language/stats/sign.c Examining data/pspp-1.4.1/src/language/stats/chisquare.h Examining data/pspp-1.4.1/src/language/stats/t-test-one-sample.c Examining data/pspp-1.4.1/src/language/stats/cochran.h Examining data/pspp-1.4.1/src/language/stats/aggregate.c Examining data/pspp-1.4.1/src/language/stats/median.c Examining data/pspp-1.4.1/src/language/stats/jonckheere-terpstra.c Examining data/pspp-1.4.1/src/language/stats/chisquare.c Examining data/pspp-1.4.1/src/language/stats/friedman.h Examining data/pspp-1.4.1/src/language/stats/reliability.c Examining data/pspp-1.4.1/src/language/stats/npar.c Examining data/pspp-1.4.1/src/language/stats/frequencies.c Examining data/pspp-1.4.1/src/language/stats/factor.c Examining data/pspp-1.4.1/src/language/stats/wilcoxon.h Examining data/pspp-1.4.1/src/language/stats/t-test-parser.c Examining data/pspp-1.4.1/src/language/stats/kruskal-wallis.h Examining data/pspp-1.4.1/src/language/stats/friedman.c Examining data/pspp-1.4.1/src/language/stats/jonckheere-terpstra.h Examining data/pspp-1.4.1/src/language/stats/means.c Examining data/pspp-1.4.1/src/language/stats/regression.c Examining data/pspp-1.4.1/src/language/stats/roc.h Examining data/pspp-1.4.1/src/language/stats/mcnemar.h Examining data/pspp-1.4.1/src/language/stats/rank.c Examining data/pspp-1.4.1/src/language/stats/oneway.c Examining data/pspp-1.4.1/src/language/stats/freq.h Examining data/pspp-1.4.1/src/language/stats/logistic.c Examining data/pspp-1.4.1/src/language/stats/ks-one-sample.h Examining data/pspp-1.4.1/src/language/stats/mann-whitney.c Examining data/pspp-1.4.1/src/language/stats/sign.h Examining data/pspp-1.4.1/src/language/stats/correlations.c Examining data/pspp-1.4.1/src/language/stats/median.h Examining data/pspp-1.4.1/src/language/stats/wilcoxon.c Examining data/pspp-1.4.1/src/language/stats/quick-cluster.c Examining data/pspp-1.4.1/src/language/stats/sort-cases.c Examining data/pspp-1.4.1/src/language/stats/t-test-indep.c Examining data/pspp-1.4.1/src/language/stats/npar-summary.h Examining data/pspp-1.4.1/src/language/stats/runs.h Examining data/pspp-1.4.1/src/language/stats/roc.c Examining data/pspp-1.4.1/src/language/command.h Examining data/pspp-1.4.1/src/language/expressions/public.h Examining data/pspp-1.4.1/src/language/expressions/helpers.c Examining data/pspp-1.4.1/src/language/expressions/evaluate.c Examining data/pspp-1.4.1/src/language/expressions/parse.c Examining data/pspp-1.4.1/src/language/expressions/helpers.h Examining data/pspp-1.4.1/src/language/expressions/private.h Examining data/pspp-1.4.1/src/language/expressions/optimize.c Examining data/pspp-1.4.1/src/ui/source-init-opts.h Examining data/pspp-1.4.1/src/ui/source-init-opts.c Examining data/pspp-1.4.1/src/ui/syntax-gen.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-indep-samps.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-var-info.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-descriptives.h Examining data/pspp-1.4.1/src/ui/gui/windows-menu.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-factor.h Examining data/pspp-1.4.1/src/ui/gui/psppire-syntax-window.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-roc.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode-different.h Examining data/pspp-1.4.1/src/ui/gui/var-display.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-paired.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-kmeans.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-comments.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-binomial.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-means.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-aggregate.c Examining data/pspp-1.4.1/src/ui/gui/psppire-text-file.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-histogram.h Examining data/pspp-1.4.1/src/ui/gui/psppire-var-view.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-flip.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-weight.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-var-info.h Examining data/pspp-1.4.1/src/ui/gui/psppire-buttonbox.h Examining data/pspp-1.4.1/src/ui/gui/find-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-logistic.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-tt1s.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-crosstabs.c Examining data/pspp-1.4.1/src/ui/gui/psppire-conf.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-univariate.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-k-independent.c Examining data/pspp-1.4.1/src/ui/gui/psppire-var-sheet-header.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-select.c Examining data/pspp-1.4.1/src/ui/gui/missing-val-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-variable-sheet.h Examining data/pspp-1.4.1/src/ui/gui/psppire-window-register.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-1sks.c Examining data/pspp-1.4.1/src/ui/gui/psppire-encoding-selector.h Examining data/pspp-1.4.1/src/ui/gui/psppire-import-assistant.c Examining data/pspp-1.4.1/src/ui/gui/psppire-means-layer.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-k-related.c Examining data/pspp-1.4.1/src/ui/gui/widgets.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-select.h Examining data/pspp-1.4.1/src/ui/gui/var-display.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-aggregate.h Examining data/pspp-1.4.1/src/ui/gui/psppire-means-layer.h Examining data/pspp-1.4.1/src/ui/gui/entry-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-window-register.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dict.h Examining data/pspp-1.4.1/src/ui/gui/widget-io.h Examining data/pspp-1.4.1/src/ui/gui/builder-wrapper.h Examining data/pspp-1.4.1/src/ui/gui/help-menu.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-weight.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-barchart.c Examining data/pspp-1.4.1/src/ui/gui/psppire-format.c Examining data/pspp-1.4.1/src/ui/gui/psppire-spreadsheet-model.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-split.c Examining data/pspp-1.4.1/src/ui/gui/widgets.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-compute.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-oneway.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-frequencies.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-examine.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-paired.c Examining data/pspp-1.4.1/src/ui/gui/helper.c Examining data/pspp-1.4.1/src/ui/gui/var-type-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-flip.c Examining data/pspp-1.4.1/src/ui/gui/dialog-common.h Examining data/pspp-1.4.1/src/ui/gui/windows-menu.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-autorecode.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-examine.h Examining data/pspp-1.4.1/src/ui/gui/psppire.c Examining data/pspp-1.4.1/src/ui/gui/dummy.c Examining data/pspp-1.4.1/src/ui/gui/options-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-reliability.h Examining data/pspp-1.4.1/src/ui/gui/main.c Examining data/pspp-1.4.1/src/ui/gui/psppire-value-entry.c Examining data/pspp-1.4.1/src/ui/gui/psppire-output-view.h Examining data/pspp-1.4.1/src/ui/gui/helper.h Examining data/pspp-1.4.1/src/ui/gui/psppire-scanf.c Examining data/pspp-1.4.1/src/ui/gui/psppire-delimited-text.h Examining data/pspp-1.4.1/src/ui/gui/psppire-spreadsheet-model.c Examining data/pspp-1.4.1/src/ui/gui/psppire-scanf.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-roc.c Examining data/pspp-1.4.1/src/ui/gui/psppire-val-chooser.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-binomial.c Examining data/pspp-1.4.1/src/ui/gui/psppire-data-sheet.c Examining data/pspp-1.4.1/src/ui/gui/value-variant.h Examining data/pspp-1.4.1/src/ui/gui/psppire-acr.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-runs.h Examining data/pspp-1.4.1/src/ui/gui/val-labs-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-chisquare.c Examining data/pspp-1.4.1/src/ui/gui/psppire-data-store.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-tt1s.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-rank.h Examining data/pspp-1.4.1/src/ui/gui/psppire-data-sheet.h Examining data/pspp-1.4.1/src/ui/gui/psppire-buttonbox.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-oneway.c Examining data/pspp-1.4.1/src/ui/gui/psppire-format.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-crosstabs.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-1sks.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode-different.c Examining data/pspp-1.4.1/src/ui/gui/executor.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dictview.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode.c Examining data/pspp-1.4.1/src/ui/gui/psppire-acr.c Examining data/pspp-1.4.1/src/ui/gui/dict-display.h Examining data/pspp-1.4.1/src/ui/gui/help-menu.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-autorecode.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-k-related.h Examining data/pspp-1.4.1/src/ui/gui/psppire-data-window.c Examining data/pspp-1.4.1/src/ui/gui/psppire-select-dest.c Examining data/pspp-1.4.1/src/ui/gui/psppire-keypad.c Examining data/pspp-1.4.1/src/ui/gui/dict-display.c Examining data/pspp-1.4.1/src/ui/gui/psppire-value-entry.h Examining data/pspp-1.4.1/src/ui/gui/goto-case-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-indep-samps.h Examining data/pspp-1.4.1/src/ui/gui/psppire.h Examining data/pspp-1.4.1/src/ui/gui/psppire-val-chooser.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-count.c Examining data/pspp-1.4.1/src/ui/gui/psppire-window.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-means.h Examining data/pspp-1.4.1/src/ui/gui/psppire-data-editor.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-scatterplot.c Examining data/pspp-1.4.1/src/ui/gui/psppire-output-window.c Examining data/pspp-1.4.1/src/ui/gui/psppire-window-base.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-univariate.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode.h Examining data/pspp-1.4.1/src/ui/gui/t-test-options.c Examining data/pspp-1.4.1/src/ui/gui/psppire-select-dest.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-sort.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-factor.c Examining data/pspp-1.4.1/src/ui/gui/goto-case-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-regression.h Examining data/pspp-1.4.1/src/ui/gui/value-variant.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-sort.c Examining data/pspp-1.4.1/src/ui/gui/psppire-var-ptr.c Examining data/pspp-1.4.1/src/ui/gui/psppire-var-sheet-header.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-frequencies.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode-same.c Examining data/pspp-1.4.1/src/ui/gui/psppire-delimited-text.c Examining data/pspp-1.4.1/src/ui/gui/psppire-lex-reader.h Examining data/pspp-1.4.1/src/ui/gui/psppire-text-file.c Examining data/pspp-1.4.1/src/ui/gui/missing-val-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-selector.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-correlation.h Examining data/pspp-1.4.1/src/ui/gui/psppire-var-ptr.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-comments.c Examining data/pspp-1.4.1/src/ui/gui/include/gtk/gtk.in.h Examining data/pspp-1.4.1/src/ui/gui/widget-io.c Examining data/pspp-1.4.1/src/ui/gui/psppire-variable-sheet.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-chisquare.h Examining data/pspp-1.4.1/src/ui/gui/psppire-selector.c Examining data/pspp-1.4.1/src/ui/gui/psppire-lex-reader.c Examining data/pspp-1.4.1/src/ui/gui/psppire-window.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-kmeans.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-runs.c Examining data/pspp-1.4.1/src/ui/gui/psppire-output-view.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-correlation.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-count.h Examining data/pspp-1.4.1/src/ui/gui/psppire-import-assistant.h Examining data/pspp-1.4.1/src/ui/gui/find-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-syntax-window.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action.c Examining data/pspp-1.4.1/src/ui/gui/psppire-checkbox-treeview.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-split.h Examining data/pspp-1.4.1/src/ui/gui/executor.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-compute.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dictview.c Examining data/pspp-1.4.1/src/ui/gui/psppire-window-base.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-reliability.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-rank.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-recode-same.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-scatterplot.h Examining data/pspp-1.4.1/src/ui/gui/psppire-keypad.h Examining data/pspp-1.4.1/src/ui/gui/builder-wrapper.c Examining data/pspp-1.4.1/src/ui/gui/t-test-options.h Examining data/pspp-1.4.1/src/ui/gui/psppire-conf.h Examining data/pspp-1.4.1/src/ui/gui/options-dialog.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-barchart.h Examining data/pspp-1.4.1/src/ui/gui/psppire-encoding-selector.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dict.c Examining data/pspp-1.4.1/src/ui/gui/psppire-var-view.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-regression.c Examining data/pspp-1.4.1/src/ui/gui/dialog-common.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-k-independent.h Examining data/pspp-1.4.1/src/ui/gui/psppire-data-window.h Examining data/pspp-1.4.1/src/ui/gui/spreadsheet-test.c Examining data/pspp-1.4.1/src/ui/gui/val-labs-dialog.c Examining data/pspp-1.4.1/src/ui/gui/var-type-dialog.h Examining data/pspp-1.4.1/src/ui/gui/entry-dialog.h Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.c Examining data/pspp-1.4.1/src/ui/gui/psppire-output-window.h Examining data/pspp-1.4.1/src/ui/gui/psppire-checkbox-treeview.h Examining data/pspp-1.4.1/src/ui/gui/psppire-data-editor.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-logistic.c Examining data/pspp-1.4.1/src/ui/gui/psppire-data-store.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-histogram.c Examining data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-descriptives.c Examining data/pspp-1.4.1/src/ui/syntax-gen.c Examining data/pspp-1.4.1/src/ui/terminal/main.c Examining data/pspp-1.4.1/src/ui/terminal/terminal-opts.c Examining data/pspp-1.4.1/src/ui/terminal/terminal-reader.c Examining data/pspp-1.4.1/src/ui/terminal/terminal-reader.h Examining data/pspp-1.4.1/src/ui/terminal/terminal-opts.h Examining data/pspp-1.4.1/src/math/categoricals.c Examining data/pspp-1.4.1/src/math/sort.h Examining data/pspp-1.4.1/src/math/random.c Examining data/pspp-1.4.1/src/math/order-stats.h Examining data/pspp-1.4.1/src/math/moments.c Examining data/pspp-1.4.1/src/math/interaction.h Examining data/pspp-1.4.1/src/math/histogram.h Examining data/pspp-1.4.1/src/math/wilcoxon-sig.h Examining data/pspp-1.4.1/src/math/interaction.c Examining data/pspp-1.4.1/src/math/np.c Examining data/pspp-1.4.1/src/math/merge.c Examining data/pspp-1.4.1/src/math/shapiro-wilk.h Examining data/pspp-1.4.1/src/math/linreg.c Examining data/pspp-1.4.1/src/math/statistic.h Examining data/pspp-1.4.1/src/math/linreg.h Examining data/pspp-1.4.1/src/math/moments.h Examining data/pspp-1.4.1/src/math/order-stats.c Examining data/pspp-1.4.1/src/math/box-whisker.c Examining data/pspp-1.4.1/src/math/correlation.h Examining data/pspp-1.4.1/src/math/sort.c Examining data/pspp-1.4.1/src/math/percentiles.h Examining data/pspp-1.4.1/src/math/histogram.c Examining data/pspp-1.4.1/src/math/extrema.c Examining data/pspp-1.4.1/src/math/merge.h Examining data/pspp-1.4.1/src/math/trimmed-mean.h Examining data/pspp-1.4.1/src/math/shapiro-wilk.c Examining data/pspp-1.4.1/src/math/covariance.c Examining data/pspp-1.4.1/src/math/levene.h Examining data/pspp-1.4.1/src/math/trimmed-mean.c Examining data/pspp-1.4.1/src/math/covariance.h Examining data/pspp-1.4.1/src/math/np.h Examining data/pspp-1.4.1/src/math/correlation.c Examining data/pspp-1.4.1/src/math/chart-geometry.h Examining data/pspp-1.4.1/src/math/extrema.h Examining data/pspp-1.4.1/src/math/tukey-hinges.c Examining data/pspp-1.4.1/src/math/tukey-hinges.h Examining data/pspp-1.4.1/src/math/percentiles.c Examining data/pspp-1.4.1/src/math/wilcoxon-sig.c Examining data/pspp-1.4.1/src/math/random.h Examining data/pspp-1.4.1/src/math/chart-geometry.c Examining data/pspp-1.4.1/src/math/levene.c Examining data/pspp-1.4.1/src/math/categoricals.h Examining data/pspp-1.4.1/src/math/box-whisker.h Examining data/pspp-1.4.1/src/libpspp/copyleft.c Examining data/pspp-1.4.1/src/libpspp/start-date.h Examining data/pspp-1.4.1/src/libpspp/hmapx.h Examining data/pspp-1.4.1/src/libpspp/range-tower.h Examining data/pspp-1.4.1/src/libpspp/llx.h Examining data/pspp-1.4.1/src/libpspp/u8-istream.c Examining data/pspp-1.4.1/src/libpspp/temp-file.h Examining data/pspp-1.4.1/src/libpspp/str.c Examining data/pspp-1.4.1/src/libpspp/freaderror.c Examining data/pspp-1.4.1/src/libpspp/stringi-map.c Examining data/pspp-1.4.1/src/libpspp/hash-functions.h Examining data/pspp-1.4.1/src/libpspp/sparse-xarray.h Examining data/pspp-1.4.1/src/libpspp/abt.c Examining data/pspp-1.4.1/src/libpspp/zip-private.h Examining data/pspp-1.4.1/src/libpspp/string-array.c Examining data/pspp-1.4.1/src/libpspp/array.h Examining data/pspp-1.4.1/src/libpspp/ext-array.c Examining data/pspp-1.4.1/src/libpspp/sparse-array.c Examining data/pspp-1.4.1/src/libpspp/version.h Examining data/pspp-1.4.1/src/libpspp/hmapx.c Examining data/pspp-1.4.1/src/libpspp/zip-writer.c Examining data/pspp-1.4.1/src/libpspp/freaderror.h Examining data/pspp-1.4.1/src/libpspp/tower.c Examining data/pspp-1.4.1/src/libpspp/range-set.c Examining data/pspp-1.4.1/src/libpspp/hmap.c Examining data/pspp-1.4.1/src/libpspp/model-checker.c Examining data/pspp-1.4.1/src/libpspp/stringi-set.c Examining data/pspp-1.4.1/src/libpspp/message.c Examining data/pspp-1.4.1/src/libpspp/line-reader.h Examining data/pspp-1.4.1/src/libpspp/zip-writer.h Examining data/pspp-1.4.1/src/libpspp/deque.h Examining data/pspp-1.4.1/src/libpspp/i18n.c Examining data/pspp-1.4.1/src/libpspp/model-checker.h Examining data/pspp-1.4.1/src/libpspp/message.h Examining data/pspp-1.4.1/src/libpspp/misc.c Examining data/pspp-1.4.1/src/libpspp/sparse-array.h Examining data/pspp-1.4.1/src/libpspp/u8-line.c Examining data/pspp-1.4.1/src/libpspp/array.c Examining data/pspp-1.4.1/src/libpspp/tower.h Examining data/pspp-1.4.1/src/libpspp/range-map.h Examining data/pspp-1.4.1/src/libpspp/range-set.h Examining data/pspp-1.4.1/src/libpspp/heap.h Examining data/pspp-1.4.1/src/libpspp/stringi-map.h Examining data/pspp-1.4.1/src/libpspp/argv-parser.h Examining data/pspp-1.4.1/src/libpspp/bit-vector.h Examining data/pspp-1.4.1/src/libpspp/llx.c Examining data/pspp-1.4.1/src/libpspp/range-tower.c Examining data/pspp-1.4.1/src/libpspp/intern.h Examining data/pspp-1.4.1/src/libpspp/string-set.h Examining data/pspp-1.4.1/src/libpspp/encoding-guesser.h Examining data/pspp-1.4.1/src/libpspp/cmac-aes256.h Examining data/pspp-1.4.1/src/libpspp/abt.h Examining data/pspp-1.4.1/src/libpspp/bit-vector.c Examining data/pspp-1.4.1/src/libpspp/misc.h Examining data/pspp-1.4.1/src/libpspp/heap.c Examining data/pspp-1.4.1/src/libpspp/pool.c Examining data/pspp-1.4.1/src/libpspp/bt.c Examining data/pspp-1.4.1/src/libpspp/string-map.c Examining data/pspp-1.4.1/src/libpspp/i18n.h Examining data/pspp-1.4.1/src/libpspp/hash-functions.c Examining data/pspp-1.4.1/src/libpspp/zip-reader.h Examining data/pspp-1.4.1/src/libpspp/encoding-guesser.c Examining data/pspp-1.4.1/src/libpspp/line-reader.c Examining data/pspp-1.4.1/src/libpspp/prompt.c Examining data/pspp-1.4.1/src/libpspp/intern.c Examining data/pspp-1.4.1/src/libpspp/sparse-xarray.c Examining data/pspp-1.4.1/src/libpspp/taint.h Examining data/pspp-1.4.1/src/libpspp/integer-format.h Examining data/pspp-1.4.1/src/libpspp/argv-parser.c Examining data/pspp-1.4.1/src/libpspp/assertion.h Examining data/pspp-1.4.1/src/libpspp/string-set.c Examining data/pspp-1.4.1/src/libpspp/compiler.h Examining data/pspp-1.4.1/src/libpspp/taint.c Examining data/pspp-1.4.1/src/libpspp/bt.h Examining data/pspp-1.4.1/src/libpspp/u8-istream.h Examining data/pspp-1.4.1/src/libpspp/copyleft.h Examining data/pspp-1.4.1/src/libpspp/hmap.h Examining data/pspp-1.4.1/src/libpspp/str.h Examining data/pspp-1.4.1/src/libpspp/float-format.c Examining data/pspp-1.4.1/src/libpspp/integer-format.c Examining data/pspp-1.4.1/src/libpspp/prompt.h Examining data/pspp-1.4.1/src/libpspp/temp-file.c Examining data/pspp-1.4.1/src/libpspp/pool.h Examining data/pspp-1.4.1/src/libpspp/cmac-aes256.c Examining data/pspp-1.4.1/src/libpspp/ext-array.h Examining data/pspp-1.4.1/src/libpspp/ll.c Examining data/pspp-1.4.1/src/libpspp/deque.c Examining data/pspp-1.4.1/src/libpspp/cast.h Examining data/pspp-1.4.1/src/libpspp/string-map.h Examining data/pspp-1.4.1/src/libpspp/float-format.h Examining data/pspp-1.4.1/src/libpspp/stringi-set.h Examining data/pspp-1.4.1/src/libpspp/zip-reader.c Examining data/pspp-1.4.1/src/libpspp/start-date.c Examining data/pspp-1.4.1/src/libpspp/ll.h Examining data/pspp-1.4.1/src/libpspp/u8-line.h Examining data/pspp-1.4.1/src/libpspp/range-map.c Examining data/pspp-1.4.1/src/libpspp/string-array.h Examining data/pspp-1.4.1/tests/data/inexactify.c Examining data/pspp-1.4.1/tests/data/sack.c Examining data/pspp-1.4.1/tests/data/datasheet-test.c Examining data/pspp-1.4.1/tests/output/render-test.c Examining data/pspp-1.4.1/tests/language/lexer/command-name-test.c Examining data/pspp-1.4.1/tests/language/lexer/scan-test.c Examining data/pspp-1.4.1/tests/language/lexer/segment-test.c Examining data/pspp-1.4.1/tests/ui/syntax-gen-test.c Examining data/pspp-1.4.1/tests/math/chart-get-ticks-format-test.c Examining data/pspp-1.4.1/tests/math/chart-get-scale-test.c Examining data/pspp-1.4.1/tests/libpspp/encoding-guesser-test.c Examining data/pspp-1.4.1/tests/libpspp/bt-test.c Examining data/pspp-1.4.1/tests/libpspp/tower-test.c Examining data/pspp-1.4.1/tests/libpspp/llx-test.c Examining data/pspp-1.4.1/tests/libpspp/i18n-test.c Examining data/pspp-1.4.1/tests/libpspp/string-map-test.c Examining data/pspp-1.4.1/tests/libpspp/stringi-map-test.c Examining data/pspp-1.4.1/tests/libpspp/hmap-test.c Examining data/pspp-1.4.1/tests/libpspp/cmac-aes256-test.c Examining data/pspp-1.4.1/tests/libpspp/zip-test.c Examining data/pspp-1.4.1/tests/libpspp/ll-test.c Examining data/pspp-1.4.1/tests/libpspp/str-test.c Examining data/pspp-1.4.1/tests/libpspp/range-set-test.c Examining data/pspp-1.4.1/tests/libpspp/heap-test.c Examining data/pspp-1.4.1/tests/libpspp/range-tower-test.c Examining data/pspp-1.4.1/tests/libpspp/u8-istream-test.c Examining data/pspp-1.4.1/tests/libpspp/line-reader-test.c Examining data/pspp-1.4.1/tests/libpspp/abt-test.c Examining data/pspp-1.4.1/tests/libpspp/string-set-test.c Examining data/pspp-1.4.1/tests/libpspp/hmapx-test.c Examining data/pspp-1.4.1/tests/libpspp/stringi-set-test.c Examining data/pspp-1.4.1/tests/libpspp/sparse-array-test.c Examining data/pspp-1.4.1/tests/libpspp/range-map-test.c Examining data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c Examining data/pspp-1.4.1/lib/linreg/sweep.h Examining data/pspp-1.4.1/lib/linreg/sweep.c Examining data/pspp-1.4.1/lib/tukey/qtukey.c Examining data/pspp-1.4.1/lib/tukey/ptukey.c Examining data/pspp-1.4.1/lib/tukey/tukey.h Examining data/pspp-1.4.1/utilities/pspp-convert.c Examining data/pspp-1.4.1/utilities/pspp-dump-sav.c Examining data/pspp-1.4.1/utilities/pspp-output.c Examining data/pspp-1.4.1/gl/stat-time.h Examining data/pspp-1.4.1/gl/uniwidth/u8-width.c Examining data/pspp-1.4.1/gl/uniwidth/cjk.h Examining data/pspp-1.4.1/gl/uniwidth/u8-strwidth.c Examining data/pspp-1.4.1/gl/uniwidth/width.c Examining data/pspp-1.4.1/gl/fcntl.c Examining data/pspp-1.4.1/gl/uninorm/decomposition-table2.h Examining data/pspp-1.4.1/gl/uninorm/decomposition-table1.h Examining data/pspp-1.4.1/gl/uninorm/nfkd.c Examining data/pspp-1.4.1/gl/uninorm/decomposition.c Examining data/pspp-1.4.1/gl/uninorm/decomposition-table.h Examining data/pspp-1.4.1/gl/uninorm/decomposing-form.c Examining data/pspp-1.4.1/gl/uninorm/compat-decomposition.c Examining data/pspp-1.4.1/gl/uninorm/u-normalize-internal.h Examining data/pspp-1.4.1/gl/uninorm/decompose-internal.h Examining data/pspp-1.4.1/gl/uninorm/normalize-internal.h Examining data/pspp-1.4.1/gl/uninorm/decompose-internal.c Examining data/pspp-1.4.1/gl/uninorm/nfd.c Examining data/pspp-1.4.1/gl/uninorm/decomposition-table.c Examining data/pspp-1.4.1/gl/uninorm/u8-normalize.c Examining data/pspp-1.4.1/gl/uninorm/canonical-decomposition.c Examining data/pspp-1.4.1/gl/intprops.h Examining data/pspp-1.4.1/gl/windows-spin.h Examining data/pspp-1.4.1/gl/gl_anyhash2.h Examining data/pspp-1.4.1/gl/windows-mutex.c Examining data/pspp-1.4.1/gl/c-snprintf.c Examining data/pspp-1.4.1/gl/termios.in.h Examining data/pspp-1.4.1/gl/mbiter.h Examining data/pspp-1.4.1/gl/xvasprintf.c Examining data/pspp-1.4.1/gl/isnanf-nolibm.h Examining data/pspp-1.4.1/gl/printf-frexpl.h Examining data/pspp-1.4.1/gl/lstat.c Examining data/pspp-1.4.1/gl/flexmember.h Examining data/pspp-1.4.1/gl/readlink.c Examining data/pspp-1.4.1/gl/trunc.c Examining data/pspp-1.4.1/gl/progname.h Examining data/pspp-1.4.1/gl/fd-hook.c Examining data/pspp-1.4.1/gl/vfprintf.c Examining data/pspp-1.4.1/gl/c-ctype.h Examining data/pspp-1.4.1/gl/unistr/u-cmp2.h Examining data/pspp-1.4.1/gl/unistr/u8-cpy.c Examining data/pspp-1.4.1/gl/unistr/u8-strlen.c Examining data/pspp-1.4.1/gl/unistr/u8-mbtouc.c Examining data/pspp-1.4.1/gl/unistr/u8-mbtouc-unsafe-aux.c Examining data/pspp-1.4.1/gl/unistr/u8-uctomb.c Examining data/pspp-1.4.1/gl/unistr/u8-strncat.c Examining data/pspp-1.4.1/gl/unistr/u8-check.c Examining data/pspp-1.4.1/gl/unistr/u-cpy.h Examining data/pspp-1.4.1/gl/unistr/u8-mblen.c Examining data/pspp-1.4.1/gl/unistr/u8-strmbtouc.c Examining data/pspp-1.4.1/gl/unistr/u8-mbtouc-unsafe.c Examining data/pspp-1.4.1/gl/unistr/u8-mbtoucr.c Examining data/pspp-1.4.1/gl/unistr/u8-mbtouc-aux.c Examining data/pspp-1.4.1/gl/unistr/u8-cmp2.c Examining data/pspp-1.4.1/gl/unistr/u8-cmp.c Examining data/pspp-1.4.1/gl/unistr/u8-uctomb-aux.c Examining data/pspp-1.4.1/gl/allocator.h Examining data/pspp-1.4.1/gl/regexec.c Examining data/pspp-1.4.1/gl/crc.c Examining data/pspp-1.4.1/gl/glthread/threadlib.c Examining data/pspp-1.4.1/gl/glthread/lock.c Examining data/pspp-1.4.1/gl/glthread/lock.h Examining data/pspp-1.4.1/gl/getrandom.c Examining data/pspp-1.4.1/gl/iswblank.c Examining data/pspp-1.4.1/gl/xbinary-io.c Examining data/pspp-1.4.1/gl/itold.c Examining data/pspp-1.4.1/gl/count-one-bits.h Examining data/pspp-1.4.1/gl/printf-frexp.c Examining data/pspp-1.4.1/gl/gl_list.c Examining data/pspp-1.4.1/gl/mbrtowc-impl.h Examining data/pspp-1.4.1/gl/timespec.c Examining data/pspp-1.4.1/gl/write.c Examining data/pspp-1.4.1/gl/strerror-override.h Examining data/pspp-1.4.1/gl/xvasprintf.h Examining data/pspp-1.4.1/gl/xasprintf.c Examining data/pspp-1.4.1/gl/isinf.c Examining data/pspp-1.4.1/gl/time.in.h Examining data/pspp-1.4.1/gl/c-xvasprintf.h Examining data/pspp-1.4.1/gl/rijndael-api-fst.h Examining data/pspp-1.4.1/gl/c-strcase.h Examining data/pspp-1.4.1/gl/inttypes.in.h Examining data/pspp-1.4.1/gl/sys_uio.in.h Examining data/pspp-1.4.1/gl/arg-nonnull.h Examining data/pspp-1.4.1/gl/printf-frexpl.c Examining data/pspp-1.4.1/gl/count-leading-zeros.c Examining data/pspp-1.4.1/gl/rijndael-alg-fst.h Examining data/pspp-1.4.1/gl/iswdigit.c Examining data/pspp-1.4.1/gl/fstat.c Examining data/pspp-1.4.1/gl/raise.c Examining data/pspp-1.4.1/gl/wctype-h.c Examining data/pspp-1.4.1/gl/rename.c Examining data/pspp-1.4.1/gl/isnan.c Examining data/pspp-1.4.1/gl/windows-rwlock.h Examining data/pspp-1.4.1/gl/isnand-nolibm.h Examining data/pspp-1.4.1/gl/regcomp.c Examining data/pspp-1.4.1/gl/memcasecmp.c Examining data/pspp-1.4.1/gl/stdbool.in.h Examining data/pspp-1.4.1/gl/canonicalize-lgpl.c Examining data/pspp-1.4.1/gl/tempname.h Examining data/pspp-1.4.1/gl/c++defs.h Examining data/pspp-1.4.1/gl/sigprocmask.c Examining data/pspp-1.4.1/gl/getdtablesize.c Examining data/pspp-1.4.1/gl/wchar.in.h Examining data/pspp-1.4.1/gl/time-internal.h Examining data/pspp-1.4.1/gl/ftoastr.c Examining data/pspp-1.4.1/gl/count-one-bits.c Examining data/pspp-1.4.1/gl/unigbrk.in.h Examining data/pspp-1.4.1/gl/vasnprintf.h Examining data/pspp-1.4.1/gl/mbtowc-lock.c Examining data/pspp-1.4.1/gl/md4.c Examining data/pspp-1.4.1/gl/memrchr.c Examining data/pspp-1.4.1/gl/ftello.c Examining data/pspp-1.4.1/gl/open.c Examining data/pspp-1.4.1/gl/xalloc-die.c Examining data/pspp-1.4.1/gl/localename-table.c Examining data/pspp-1.4.1/gl/getopt-cdefs.in.h Examining data/pspp-1.4.1/gl/isnand.c Examining data/pspp-1.4.1/gl/windows-once.h Examining data/pspp-1.4.1/gl/exitfail.h Examining data/pspp-1.4.1/gl/safe-write.c Examining data/pspp-1.4.1/gl/localename.c Examining data/pspp-1.4.1/gl/stdint.in.h Examining data/pspp-1.4.1/gl/getprogname.h Examining data/pspp-1.4.1/gl/vsprintf.c Examining data/pspp-1.4.1/gl/isnanf.c Examining data/pspp-1.4.1/gl/cloexec.h Examining data/pspp-1.4.1/gl/xstrndup.h Examining data/pspp-1.4.1/gl/sys-limits.h Examining data/pspp-1.4.1/gl/timespec-add.c Examining data/pspp-1.4.1/gl/iswxdigit.c Examining data/pspp-1.4.1/gl/msvc-inval.c Examining data/pspp-1.4.1/gl/ftell.c Examining data/pspp-1.4.1/gl/clean-temp.h Examining data/pspp-1.4.1/gl/rawmemchr.c Examining data/pspp-1.4.1/gl/filename.h Examining data/pspp-1.4.1/gl/sys_types.in.h Examining data/pspp-1.4.1/gl/regex_internal.c Examining data/pspp-1.4.1/gl/streq.h Examining data/pspp-1.4.1/gl/basename-lgpl.h Examining data/pspp-1.4.1/gl/c-strcasestr.c Examining data/pspp-1.4.1/gl/getpass.h Examining data/pspp-1.4.1/gl/verify.h Examining data/pspp-1.4.1/gl/memchr.c Examining data/pspp-1.4.1/gl/isnanl-nolibm.h Examining data/pspp-1.4.1/gl/c-strcasestr.h Examining data/pspp-1.4.1/gl/byteswap.in.h Examining data/pspp-1.4.1/gl/asyncsafe-spin.h Examining data/pspp-1.4.1/gl/stdalign.in.h Examining data/pspp-1.4.1/gl/cloexec.c Examining data/pspp-1.4.1/gl/mkdtemp.c Examining data/pspp-1.4.1/gl/btowc.c Examining data/pspp-1.4.1/gl/msvc-inval.h Examining data/pspp-1.4.1/gl/hard-locale.h Examining data/pspp-1.4.1/gl/getopt.c Examining data/pspp-1.4.1/gl/c-strncasecmp.c Examining data/pspp-1.4.1/gl/float.c Examining data/pspp-1.4.1/gl/strtok_r.c Examining data/pspp-1.4.1/gl/unigbrk/gbrkprop.h Examining data/pspp-1.4.1/gl/unigbrk/uc-gbrk-prop.c Examining data/pspp-1.4.1/gl/unigbrk/uc-is-grapheme-break.c Examining data/pspp-1.4.1/gl/unictype.in.h Examining data/pspp-1.4.1/gl/unilbrk.in.h Examining data/pspp-1.4.1/gl/windows-once.c Examining data/pspp-1.4.1/gl/fseterr.h Examining data/pspp-1.4.1/gl/realloc.c Examining data/pspp-1.4.1/gl/mbchar.c Examining data/pspp-1.4.1/gl/float.in.h Examining data/pspp-1.4.1/gl/xmalloca.c Examining data/pspp-1.4.1/gl/mktime.c Examining data/pspp-1.4.1/gl/regex.c Examining data/pspp-1.4.1/gl/malloca.c Examining data/pspp-1.4.1/gl/xmemdup0.h Examining data/pspp-1.4.1/gl/sys_socket.in.h Examining data/pspp-1.4.1/gl/mbtowc.c Examining data/pspp-1.4.1/gl/sprintf.c Examining data/pspp-1.4.1/gl/binary-io.h Examining data/pspp-1.4.1/gl/mbsinit.c Examining data/pspp-1.4.1/gl/xstrndup.c Examining data/pspp-1.4.1/gl/progname.c Examining data/pspp-1.4.1/gl/close.c Examining data/pspp-1.4.1/gl/full-write.c Examining data/pspp-1.4.1/gl/mkdir.c Examining data/pspp-1.4.1/gl/sigaction.c Examining data/pspp-1.4.1/gl/basename.c Examining data/pspp-1.4.1/gl/offtostr.c Examining data/pspp-1.4.1/gl/tmpdir.h Examining data/pspp-1.4.1/gl/relocatable.c Examining data/pspp-1.4.1/gl/inttostr.h Examining data/pspp-1.4.1/gl/asnprintf.c Examining data/pspp-1.4.1/gl/same-inode.h Examining data/pspp-1.4.1/gl/windows-recmutex.c Examining data/pspp-1.4.1/gl/getopt-ext.h Examining data/pspp-1.4.1/gl/memcasecmp.h Examining data/pspp-1.4.1/gl/vprintf.c Examining data/pspp-1.4.1/gl/setenv.c Examining data/pspp-1.4.1/gl/printf-parse.c Examining data/pspp-1.4.1/gl/localename.h Examining data/pspp-1.4.1/gl/fopen.c Examining data/pspp-1.4.1/gl/gl_xlist.h Examining data/pspp-1.4.1/gl/fpucw.h Examining data/pspp-1.4.1/gl/full-write.h Examining data/pspp-1.4.1/gl/localcharset.c Examining data/pspp-1.4.1/gl/strings.in.h Examining data/pspp-1.4.1/gl/lc-charset-dispatch.h Examining data/pspp-1.4.1/gl/floor.c Examining data/pspp-1.4.1/gl/attribute.h Examining data/pspp-1.4.1/gl/stdio-impl.h Examining data/pspp-1.4.1/gl/unitypes.in.h Examining data/pspp-1.4.1/gl/mbtowc-lock.h Examining data/pspp-1.4.1/gl/strsep.c Examining data/pspp-1.4.1/gl/safe-read.h Examining data/pspp-1.4.1/gl/getopt1.c Examining data/pspp-1.4.1/gl/c-ctype.c Examining data/pspp-1.4.1/gl/signbitd.c Examining data/pspp-1.4.1/gl/xsize.c Examining data/pspp-1.4.1/gl/getpass.c Examining data/pspp-1.4.1/gl/gl_xlist.c Examining data/pspp-1.4.1/gl/timespec.h Examining data/pspp-1.4.1/gl/localename-table.h Examining data/pspp-1.4.1/gl/gl_anyhash1.h Examining data/pspp-1.4.1/gl/windows-spin.c Examining data/pspp-1.4.1/gl/wctype.in.h Examining data/pspp-1.4.1/gl/tzset.c Examining data/pspp-1.4.1/gl/lseek.c Examining data/pspp-1.4.1/gl/md4.h Examining data/pspp-1.4.1/gl/pathmax.h Examining data/pspp-1.4.1/gl/mktime-internal.h Examining data/pspp-1.4.1/gl/uniwidth.in.h Examining data/pspp-1.4.1/gl/umaxtostr.c Examining data/pspp-1.4.1/gl/float+.h Examining data/pspp-1.4.1/gl/careadlinkat.c Examining data/pspp-1.4.1/gl/gl_anylinked_list2.h Examining data/pspp-1.4.1/gl/stat.c Examining data/pspp-1.4.1/gl/stdio.in.h Examining data/pspp-1.4.1/gl/xreadlink.h Examining data/pspp-1.4.1/gl/unistd.in.h Examining data/pspp-1.4.1/gl/unsetenv.c Examining data/pspp-1.4.1/gl/ftoastr.h Examining data/pspp-1.4.1/gl/strerror-override.c Examining data/pspp-1.4.1/gl/printf.c Examining data/pspp-1.4.1/gl/frexpl.c Examining data/pspp-1.4.1/gl/getline.c Examining data/pspp-1.4.1/gl/vasprintf.c Examining data/pspp-1.4.1/gl/tempname.c Examining data/pspp-1.4.1/gl/safe-write.h Examining data/pspp-1.4.1/gl/sys_time.in.h Examining data/pspp-1.4.1/gl/stat-w32.c Examining data/pspp-1.4.1/gl/unilbrk/lbrktables.h Examining data/pspp-1.4.1/gl/unilbrk/lbrkprop2.h Examining data/pspp-1.4.1/gl/unilbrk/u8-possible-linebreaks.c Examining data/pspp-1.4.1/gl/unilbrk/lbrktables.c Examining data/pspp-1.4.1/gl/unilbrk/lbrkprop1.h Examining data/pspp-1.4.1/gl/unused-parameter.h Examining data/pspp-1.4.1/gl/getopt-pfx-core.h Examining data/pspp-1.4.1/gl/strtod.c Examining data/pspp-1.4.1/gl/strndup.c Examining data/pspp-1.4.1/gl/signbitf.c Examining data/pspp-1.4.1/gl/localcharset.h Examining data/pspp-1.4.1/gl/limits.in.h Examining data/pspp-1.4.1/gl/signbitl.c Examining data/pspp-1.4.1/gl/xbinary-io.h Examining data/pspp-1.4.1/gl/basename-lgpl.c Examining data/pspp-1.4.1/gl/gl_linkedhash_list.c Examining data/pspp-1.4.1/gl/setlocale_null.c Examining data/pspp-1.4.1/gl/gl_list.h Examining data/pspp-1.4.1/gl/relocwrapper.c Examining data/pspp-1.4.1/gl/mbtowc-impl.h Examining data/pspp-1.4.1/gl/count-leading-zeros.h Examining data/pspp-1.4.1/gl/lc-charset-dispatch.c Examining data/pspp-1.4.1/gl/c-asprintf.c Examining data/pspp-1.4.1/gl/xmemdup0.c Examining data/pspp-1.4.1/gl/fwriteerror.c Examining data/pspp-1.4.1/gl/cdefs.h Examining data/pspp-1.4.1/gl/msvc-nothrow.h Examining data/pspp-1.4.1/gl/wcrtomb.c Examining data/pspp-1.4.1/gl/windows-mutex.h Examining data/pspp-1.4.1/gl/uniwbrk/wbrktable.h Examining data/pspp-1.4.1/gl/uniwbrk/wbrktable.c Examining data/pspp-1.4.1/gl/uniwbrk/wbrkprop.h Examining data/pspp-1.4.1/gl/uniwbrk/wordbreak-property.c Examining data/pspp-1.4.1/gl/uniwbrk/u-wordbreaks.h Examining data/pspp-1.4.1/gl/uniwbrk/u8-wordbreaks.c Examining data/pspp-1.4.1/gl/anytostr.c Examining data/pspp-1.4.1/gl/sig-handler.h Examining data/pspp-1.4.1/gl/localeconv.c Examining data/pspp-1.4.1/gl/stdlib.in.h Examining data/pspp-1.4.1/gl/memmem.c Examining data/pspp-1.4.1/gl/gl_linkedhash_list.h Examining data/pspp-1.4.1/gl/sockets.c Examining data/pspp-1.4.1/gl/full-read.h Examining data/pspp-1.4.1/gl/printf-frexp.h Examining data/pspp-1.4.1/gl/xreadlink.c Examining data/pspp-1.4.1/gl/dup2.c Examining data/pspp-1.4.1/gl/xsize.h Examining data/pspp-1.4.1/gl/fprintf.c Examining data/pspp-1.4.1/gl/c-strtod.h Examining data/pspp-1.4.1/gl/tmpdir.c Examining data/pspp-1.4.1/gl/rmdir.c Examining data/pspp-1.4.1/gl/dirname.c Examining data/pspp-1.4.1/gl/windows-rwlock.c Examining data/pspp-1.4.1/gl/uninorm.in.h Examining data/pspp-1.4.1/gl/crc.h Examining data/pspp-1.4.1/gl/gl_linked_list.h Examining data/pspp-1.4.1/gl/c-vasnprintf.c Examining data/pspp-1.4.1/gl/snprintf.c Examining data/pspp-1.4.1/gl/c-vasnprintf.h Examining data/pspp-1.4.1/gl/sockets.h Examining data/pspp-1.4.1/gl/imaxtostr.c Examining data/pspp-1.4.1/gl/exitfail.c Examining data/pspp-1.4.1/gl/fseterr.c Examining data/pspp-1.4.1/gl/alloca.c Examining data/pspp-1.4.1/gl/uinttostr.c Examining data/pspp-1.4.1/gl/select.c Examining data/pspp-1.4.1/gl/mkstemp.c Examining data/pspp-1.4.1/gl/mbchar.h Examining data/pspp-1.4.1/gl/mbrtowc-impl-utf8.h Examining data/pspp-1.4.1/gl/explicit_bzero.c Examining data/pspp-1.4.1/gl/version-etc.c Examining data/pspp-1.4.1/gl/relocatable.h Examining data/pspp-1.4.1/gl/strnlen.c Examining data/pspp-1.4.1/gl/locale.in.h Examining data/pspp-1.4.1/gl/allocator.c Examining data/pspp-1.4.1/gl/mbiter.c Examining data/pspp-1.4.1/gl/error.h Examining data/pspp-1.4.1/gl/progreloc.c Examining data/pspp-1.4.1/gl/c-strcasecmp.c Examining data/pspp-1.4.1/gl/hard-locale.c Examining data/pspp-1.4.1/gl/gl_anylinked_list1.h Examining data/pspp-1.4.1/gl/stat-time.c Examining data/pspp-1.4.1/gl/libc-config.h Examining data/pspp-1.4.1/gl/getopt-pfx-ext.h Examining data/pspp-1.4.1/gl/fwriteerror.h Examining data/pspp-1.4.1/gl/windows-initguard.h Examining data/pspp-1.4.1/gl/minmax.h Examining data/pspp-1.4.1/gl/memchr2.h Examining data/pspp-1.4.1/gl/rijndael-alg-fst.c Examining data/pspp-1.4.1/gl/malloc.c Examining data/pspp-1.4.1/gl/dirname.h Examining data/pspp-1.4.1/gl/gl_anyhash_primes.h Examining data/pspp-1.4.1/gl/nl_langinfo.c Examining data/pspp-1.4.1/gl/stripslash.c Examining data/pspp-1.4.1/gl/fatal-signal.c Examining data/pspp-1.4.1/gl/time_r.c Examining data/pspp-1.4.1/gl/xalloc.h Examining data/pspp-1.4.1/gl/printf-args.c Examining data/pspp-1.4.1/gl/gettext.h Examining data/pspp-1.4.1/gl/gettime.c Examining data/pspp-1.4.1/gl/msvc-nothrow.c Examining data/pspp-1.4.1/gl/read-file.h Examining data/pspp-1.4.1/gl/gl_linked_list.c Examining data/pspp-1.4.1/gl/uniwbrk.in.h Examining data/pspp-1.4.1/gl/c-snprintf.h Examining data/pspp-1.4.1/gl/thread-optim.h Examining data/pspp-1.4.1/gl/getopt-core.h Examining data/pspp-1.4.1/gl/dtotimespec.c Examining data/pspp-1.4.1/gl/printf-parse.h Examining data/pspp-1.4.1/gl/secure_getenv.c Examining data/pspp-1.4.1/gl/timespec-sub.c Examining data/pspp-1.4.1/gl/c-vasprintf.h Examining data/pspp-1.4.1/gl/c-strtod.c Examining data/pspp-1.4.1/gl/alloca.in.h Examining data/pspp-1.4.1/gl/wcwidth.c Examining data/pspp-1.4.1/gl/getdelim.c Examining data/pspp-1.4.1/gl/dtoastr.c Examining data/pspp-1.4.1/gl/memchr2.c Examining data/pspp-1.4.1/gl/sig-handler.c Examining data/pspp-1.4.1/gl/stddef.in.h Examining data/pspp-1.4.1/gl/isnanl.c Examining data/pspp-1.4.1/gl/full-read.c Examining data/pspp-1.4.1/gl/unicase.in.h Examining data/pspp-1.4.1/gl/nstrftime.c Examining data/pspp-1.4.1/gl/errno.in.h Examining data/pspp-1.4.1/gl/c-vasprintf.c Examining data/pspp-1.4.1/gl/asprintf.c Examining data/pspp-1.4.1/gl/strerror.c Examining data/pspp-1.4.1/gl/dirname-lgpl.c Examining data/pspp-1.4.1/gl/binary-io.c Examining data/pspp-1.4.1/gl/mbrtowc.c Examining data/pspp-1.4.1/gl/signal.in.h Examining data/pspp-1.4.1/gl/_Noreturn.h Examining data/pspp-1.4.1/gl/regex_internal.h Examining data/pspp-1.4.1/gl/getopt.in.h Examining data/pspp-1.4.1/gl/fseeko.c Examining data/pspp-1.4.1/gl/w32sock.h Examining data/pspp-1.4.1/gl/unicase/u-ct-totitle.h Examining data/pspp-1.4.1/gl/unicase/tocasefold.h Examining data/pspp-1.4.1/gl/unicase/cased.c Examining data/pspp-1.4.1/gl/unicase/u8-tolower.c Examining data/pspp-1.4.1/gl/unicase/tolower.h Examining data/pspp-1.4.1/gl/unicase/ignorable.h Examining data/pspp-1.4.1/gl/unicase/ignorable.c Examining data/pspp-1.4.1/gl/unicase/cased.h Examining data/pspp-1.4.1/gl/unicase/unicasemap.h Examining data/pspp-1.4.1/gl/unicase/special-casing-table.h Examining data/pspp-1.4.1/gl/unicase/totitle.h Examining data/pspp-1.4.1/gl/unicase/u8-toupper.c Examining data/pspp-1.4.1/gl/unicase/u-casefold.h Examining data/pspp-1.4.1/gl/unicase/caseprop.h Examining data/pspp-1.4.1/gl/unicase/casefold.h Examining data/pspp-1.4.1/gl/unicase/toupper.h Examining data/pspp-1.4.1/gl/unicase/tolower.c Examining data/pspp-1.4.1/gl/unicase/special-casing.c Examining data/pspp-1.4.1/gl/unicase/simple-mapping.h Examining data/pspp-1.4.1/gl/unicase/u-ct-casefold.h Examining data/pspp-1.4.1/gl/unicase/empty-suffix-context.c Examining data/pspp-1.4.1/gl/unicase/u8-casemap.c Examining data/pspp-1.4.1/gl/unicase/empty-prefix-context.c Examining data/pspp-1.4.1/gl/unicase/special-casing.in.h Examining data/pspp-1.4.1/gl/unicase/u8-ct-casefold.c Examining data/pspp-1.4.1/gl/unicase/context.h Examining data/pspp-1.4.1/gl/unicase/totitle.c Examining data/pspp-1.4.1/gl/unicase/u-totitle.h Examining data/pspp-1.4.1/gl/unicase/tocasefold.c Examining data/pspp-1.4.1/gl/unicase/u8-casefold.c Examining data/pspp-1.4.1/gl/unicase/toupper.c Examining data/pspp-1.4.1/gl/unicase/u8-casecmp.c Examining data/pspp-1.4.1/gl/unicase/u-casemap.h Examining data/pspp-1.4.1/gl/unicase/u8-ct-totitle.c Examining data/pspp-1.4.1/gl/unicase/u8-totitle.c Examining data/pspp-1.4.1/gl/unicase/u-casecmp.h Examining data/pspp-1.4.1/gl/xmalloca.h Examining data/pspp-1.4.1/gl/fcntl.in.h Examining data/pspp-1.4.1/gl/sys_socket.c Examining data/pspp-1.4.1/gl/areadlink.h Examining data/pspp-1.4.1/gl/rijndael-api-fst.c Examining data/pspp-1.4.1/gl/safe-read.c Examining data/pspp-1.4.1/gl/xalloc-oversized.h Examining data/pspp-1.4.1/gl/warn-on-use.h Examining data/pspp-1.4.1/gl/gettimeofday.c Examining data/pspp-1.4.1/gl/sys_stat.in.h Examining data/pspp-1.4.1/gl/strcasestr.c Examining data/pspp-1.4.1/gl/error.c Examining data/pspp-1.4.1/gl/strncasecmp.c Examining data/pspp-1.4.1/gl/read-file.c Examining data/pspp-1.4.1/gl/strcasecmp.c Examining data/pspp-1.4.1/gl/unistd.c Examining data/pspp-1.4.1/gl/mempcpy.c Examining data/pspp-1.4.1/gl/str-two-way.h Examining data/pspp-1.4.1/gl/version-etc-fsf.c Examining data/pspp-1.4.1/gl/fd-hook.h Examining data/pspp-1.4.1/gl/stdarg.in.h Examining data/pspp-1.4.1/gl/areadlink.c Examining data/pspp-1.4.1/gl/math.c Examining data/pspp-1.4.1/gl/vsnprintf.c Examining data/pspp-1.4.1/gl/strdup.c Examining data/pspp-1.4.1/gl/unlocked-io.h Examining data/pspp-1.4.1/gl/round.c Examining data/pspp-1.4.1/gl/inttostr.c Examining data/pspp-1.4.1/gl/xmalloc.c Examining data/pspp-1.4.1/gl/math.in.h Examining data/pspp-1.4.1/gl/c-xasprintf.c Examining data/pspp-1.4.1/gl/setlocale-lock.c Examining data/pspp-1.4.1/gl/fatal-signal.h Examining data/pspp-1.4.1/gl/langinfo.in.h Examining data/pspp-1.4.1/gl/sys_select.in.h Examining data/pspp-1.4.1/gl/asyncsafe-spin.c Examining data/pspp-1.4.1/gl/setlocale_null.h Examining data/pspp-1.4.1/gl/vasnprintf.c Examining data/pspp-1.4.1/gl/frexp.c Examining data/pspp-1.4.1/gl/clean-temp.c Examining data/pspp-1.4.1/gl/array-mergesort.h Examining data/pspp-1.4.1/gl/fseek.c Examining data/pspp-1.4.1/gl/windows-recmutex.h Examining data/pspp-1.4.1/gl/stat-w32.h Examining data/pspp-1.4.1/gl/version-etc.h Examining data/pspp-1.4.1/gl/unistr.in.h Examining data/pspp-1.4.1/gl/time_rz.c Examining data/pspp-1.4.1/gl/getopt_int.h Examining data/pspp-1.4.1/gl/pipe2.c Examining data/pspp-1.4.1/gl/printf-args.h Examining data/pspp-1.4.1/gl/read.c Examining data/pspp-1.4.1/gl/unictype/pr_soft_dotted.c Examining data/pspp-1.4.1/gl/unictype/categ_of.c Examining data/pspp-1.4.1/gl/unictype/pr_soft_dotted.h Examining data/pspp-1.4.1/gl/unictype/ctype_print.h Examining data/pspp-1.4.1/gl/unictype/categ_none.c Examining data/pspp-1.4.1/gl/unictype/combiningclass.c Examining data/pspp-1.4.1/gl/unictype/bitmap.h Examining data/pspp-1.4.1/gl/unictype/ctype_print.c Examining data/pspp-1.4.1/gl/unictype/combiningclass.h Examining data/pspp-1.4.1/gl/unictype/categ_of.h Examining data/pspp-1.4.1/gl/timegm.c Examining data/pspp-1.4.1/gl/size_max.h Examining data/pspp-1.4.1/gl/stpcpy.c Examining data/pspp-1.4.1/gl/regex.h Examining data/pspp-1.4.1/gl/malloca.h Examining data/pspp-1.4.1/gl/strftime.h Examining data/pspp-1.4.1/gl/string.in.h Examining data/pspp-1.4.1/gl/getprogname.c Examining data/pspp-1.4.1/gl/careadlinkat.h Examining data/pspp-1.4.1/gl/c-xvasprintf.c Examining data/pspp-1.4.1/gl/sys_random.in.h Examining data/pspp-1.4.1/gl/isfinite.c Examining data/pspp-1.4.1/gl/strncat.c Examining data/pspp-1.4.1/perl-module/ppport.h FINAL RESULTS: data/pspp-1.4.1/gl/areadlink.c:43:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (filename, buffer, buffer_size); data/pspp-1.4.1/gl/canonicalize-lgpl.c:73:21: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define __readlink readlink data/pspp-1.4.1/gl/readlink.c:32:1: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. readlink (const char *name, char *buf _GL_UNUSED, data/pspp-1.4.1/gl/readlink.c:47:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/pspp-1.4.1/gl/readlink.c:71:10: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. return readlink (name, buf, bufsize); data/pspp-1.4.1/gl/stdio.in.h:822:8: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. #undef gets data/pspp-1.4.1/gl/stdio.in.h:824:18: [5] (buffer) gets: Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); data/pspp-1.4.1/gl/unistd.in.h:298:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - " data/pspp-1.4.1/gl/unistd.in.h:312:11: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/pspp-1.4.1/gl/unistd.in.h:313:12: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # define chown rpl_chown data/pspp-1.4.1/gl/unistd.in.h:315:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_RPL (chown, int, (const char *file, uid_t uid, gid_t gid) data/pspp-1.4.1/gl/unistd.in.h:317:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_RPL (chown, int, (const char *file, uid_t uid, gid_t gid)); data/pspp-1.4.1/gl/unistd.in.h:320:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_FUNCDECL_SYS (chown, int, (const char *file, uid_t uid, gid_t gid) data/pspp-1.4.1/gl/unistd.in.h:323:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIAS_SYS (chown, int, (const char *file, uid_t uid, gid_t gid)); data/pspp-1.4.1/gl/unistd.in.h:325:19: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_CXXALIASWARN (chown); data/pspp-1.4.1/gl/unistd.in.h:327:9: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. # undef chown data/pspp-1.4.1/gl/unistd.in.h:329:18: [5] (race) chown: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchown( ) instead. _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and " data/pspp-1.4.1/gl/unistd.in.h:1394:12: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # define readlink rpl_readlink data/pspp-1.4.1/gl/unistd.in.h:1396:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_RPL (readlink, ssize_t, data/pspp-1.4.1/gl/unistd.in.h:1400:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_RPL (readlink, ssize_t, data/pspp-1.4.1/gl/unistd.in.h:1405:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_FUNCDECL_SYS (readlink, ssize_t, data/pspp-1.4.1/gl/unistd.in.h:1410:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIAS_SYS (readlink, ssize_t, data/pspp-1.4.1/gl/unistd.in.h:1414:19: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_CXXALIASWARN (readlink); data/pspp-1.4.1/gl/unistd.in.h:1416:9: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. # undef readlink data/pspp-1.4.1/gl/unistd.in.h:1418:18: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. _GL_WARN_ON_USE (readlink, "readlink is unportable - " data/pspp-1.4.1/src/language/utilities/permissions.c:123:13: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. if (-1 == chmod(locale_file_name, mode)) data/pspp-1.4.1/gl/error.c:274: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, message, args); data/pspp-1.4.1/gl/error.c:389: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 (stderr, file_name != NULL ? "%s:%u: " : " ", data/pspp-1.4.1/gl/fprintf.c:36:1: [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 (FILE *fp, const char *format, ...) data/pspp-1.4.1/gl/ftoastr.c:83: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. # undef snprintf data/pspp-1.4.1/gl/ftoastr.c:84: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. # define snprintf c_snprintf data/pspp-1.4.1/gl/ftoastr.c:86: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. # undef snprintf data/pspp-1.4.1/gl/ftoastr.c:87: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. # define snprintf ftoastr_snprintf data/pspp-1.4.1/gl/ftoastr.c:99:11: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. n = sprintf (width_0_buffer, format, 0, prec, promoted_x); data/pspp-1.4.1/gl/ftoastr.c:106:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. n = sprintf (buf, format, width, prec, promoted_x); data/pspp-1.4.1/gl/ftoastr.c:145: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. int n = snprintf (buf, bufsize, format, width, prec, promoted_x); data/pspp-1.4.1/gl/getopt.c:40:10: [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 __fxprintf_nocancel data/pspp-1.4.1/gl/getpass.c:84:1: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. getpass (const char *prompt) data/pspp-1.4.1/gl/getpass.c:191:1: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. getpass (const char *prompt) data/pspp-1.4.1/gl/localcharset.c:905: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 (resultbuf, buf); data/pspp-1.4.1/gl/localcharset.c:929:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "CP%s", pdot + 1); data/pspp-1.4.1/gl/localcharset.c:947: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 (resultbuf, buf); data/pspp-1.4.1/gl/localcharset.c:1007: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 (resultbuf, buf); data/pspp-1.4.1/gl/localename.c:1406: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/pspp-1.4.1/gl/localename.c:1430: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/pspp-1.4.1/gl/localename.c:1450: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/pspp-1.4.1/gl/localename.c:2629: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_locale, locale_name); data/pspp-1.4.1/gl/nl_langinfo.c:103: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 (result, buf); data/pspp-1.4.1/gl/nl_langinfo.c:107:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (result, codeset); data/pspp-1.4.1/gl/nl_langinfo.c:244: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 (result, buf); data/pspp-1.4.1/gl/nl_langinfo.c:253: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 (result, buf); data/pspp-1.4.1/gl/nl_langinfo.c:272: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 (result[item - DAY_1], buf); data/pspp-1.4.1/gl/nl_langinfo.c:290: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 (result[item - ABDAY_1], buf); data/pspp-1.4.1/gl/nl_langinfo.c:315: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 (result[item - MON_1], buf); data/pspp-1.4.1/gl/nl_langinfo.c:340: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 (result[item - ALTMON_1], buf); data/pspp-1.4.1/gl/nl_langinfo.c:365: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 (result[item - ABMON_1], buf); data/pspp-1.4.1/gl/printf.c:30: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 (const char *format, ...) data/pspp-1.4.1/gl/printf.c:36: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. retval = vfprintf (stdout, format, args); data/pspp-1.4.1/gl/progreloc.c:110:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/pspp-1.4.1/gl/progreloc.c:174:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access (filename, X_OK) < 0) data/pspp-1.4.1/gl/progreloc.c:394:19: [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 (concat_name, argv0); data/pspp-1.4.1/gl/progreloc.c:399:21: [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 (concat_name + p_len + 1, argv0); data/pspp-1.4.1/gl/relocatable.c:524: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/pspp-1.4.1/gl/relocatable.c:540: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/pspp-1.4.1/gl/relocatable.c:570: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 + 2, pathname); data/pspp-1.4.1/gl/relocwrapper.c:71: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/pspp-1.4.1/gl/relocwrapper.c:175: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 (p, old_value); data/pspp-1.4.1/gl/relocwrapper.c:204:3: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv (argv[0], argv); data/pspp-1.4.1/gl/setlocale_null.c:327: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 (resultbuf, buf); data/pspp-1.4.1/gl/setlocale_null.c:406: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 (resultbuf[i], buf); data/pspp-1.4.1/gl/snprintf.c:37:1: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (char *str, size_t size, const char *format, ...) data/pspp-1.4.1/gl/sprintf.c:40:1: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (char *str, const char *format, ...) data/pspp-1.4.1/gl/stdio.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. # define fprintf rpl_fprintf data/pspp-1.4.1/gl/stdio.in.h:333:19: [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. _GL_FUNCDECL_RPL (fprintf, int, data/pspp-1.4.1/gl/stdio.in.h:338:19: [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. _GL_FUNCDECL_RPL (fprintf, int, data/pspp-1.4.1/gl/stdio.in.h:343:19: [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. _GL_CXXALIAS_RPL (fprintf, int, data/pspp-1.4.1/gl/stdio.in.h:346:19: [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. _GL_CXXALIAS_SYS (fprintf, int, data/pspp-1.4.1/gl/stdio.in.h:350:19: [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. _GL_CXXALIASWARN (fprintf); data/pspp-1.4.1/gl/stdio.in.h:355:10: [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/pspp-1.4.1/gl/stdio.in.h:358:18: [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. _GL_WARN_ON_USE (fprintf, "fprintf is not always POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:482:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef fscanf data/pspp-1.4.1/gl/stdio.in.h:483:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define fscanf rpl_fscanf data/pspp-1.4.1/gl/stdio.in.h:485:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (fscanf, int, data/pspp-1.4.1/gl/stdio.in.h:489:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (fscanf, int, data/pspp-1.4.1/gl/stdio.in.h:492:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (fscanf, int, data/pspp-1.4.1/gl/stdio.in.h:496:19: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (fscanf); data/pspp-1.4.1/gl/stdio.in.h:918:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/pspp-1.4.1/gl/stdio.in.h:919:12: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # define popen rpl_popen data/pspp-1.4.1/gl/stdio.in.h:921:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode) data/pspp-1.4.1/gl/stdio.in.h:923:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode)); data/pspp-1.4.1/gl/stdio.in.h:926:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode) data/pspp-1.4.1/gl/stdio.in.h:929:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode)); data/pspp-1.4.1/gl/stdio.in.h:931:19: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_CXXALIASWARN (popen); data/pspp-1.4.1/gl/stdio.in.h:933:9: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. # undef popen data/pspp-1.4.1/gl/stdio.in.h:935:18: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - " data/pspp-1.4.1/gl/stdio.in.h:946:13: [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/pspp-1.4.1/gl/stdio.in.h:963:21: [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. _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...)); data/pspp-1.4.1/gl/stdio.in.h:966:13: [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 rpl_printf data/pspp-1.4.1/gl/stdio.in.h:968:19: [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. _GL_FUNCDECL_RPL (printf, int, data/pspp-1.4.1/gl/stdio.in.h:972:19: [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. _GL_CXXALIAS_RPL (printf, int, (const char *restrict format, ...)); data/pspp-1.4.1/gl/stdio.in.h:976:19: [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. _GL_CXXALIAS_SYS (printf, int, (const char *restrict format, ...)); data/pspp-1.4.1/gl/stdio.in.h:979:19: [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. _GL_CXXALIASWARN (printf); data/pspp-1.4.1/gl/stdio.in.h:984:10: [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/pspp-1.4.1/gl/stdio.in.h:987:18: [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. _GL_WARN_ON_USE (printf, "printf is not always POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:1119:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/pspp-1.4.1/gl/stdio.in.h:1121:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf __scanf__ data/pspp-1.4.1/gl/stdio.in.h:1129:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *restrict format, ...)); data/pspp-1.4.1/gl/stdio.in.h:1132:12: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef scanf data/pspp-1.4.1/gl/stdio.in.h:1133:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define scanf rpl_scanf data/pspp-1.4.1/gl/stdio.in.h:1135:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (scanf, int, (const char *restrict format, ...) data/pspp-1.4.1/gl/stdio.in.h:1138:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (scanf, int, (const char *restrict format, ...)); data/pspp-1.4.1/gl/stdio.in.h:1141:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (scanf, int, (const char *restrict format, ...)); data/pspp-1.4.1/gl/stdio.in.h:1144:19: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (scanf); data/pspp-1.4.1/gl/stdio.in.h:1151: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. # define snprintf rpl_snprintf data/pspp-1.4.1/gl/stdio.in.h:1153:19: [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. _GL_FUNCDECL_RPL (snprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1158:19: [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. _GL_CXXALIAS_RPL (snprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1163:19: [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. _GL_FUNCDECL_SYS (snprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1169:19: [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. _GL_CXXALIAS_SYS (snprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1173:19: [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. _GL_CXXALIASWARN (snprintf); data/pspp-1.4.1/gl/stdio.in.h:1175: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. # undef snprintf data/pspp-1.4.1/gl/stdio.in.h:1177:18: [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. _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " data/pspp-1.4.1/gl/stdio.in.h:1194:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define sprintf rpl_sprintf data/pspp-1.4.1/gl/stdio.in.h:1196:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (sprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1200:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (sprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1203:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS (sprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1207:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (sprintf); data/pspp-1.4.1/gl/stdio.in.h:1210:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef sprintf data/pspp-1.4.1/gl/stdio.in.h:1212:18: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:1325: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. # define vfprintf rpl_vfprintf data/pspp-1.4.1/gl/stdio.in.h:1329:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1335:19: [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. _GL_FUNCDECL_RPL (vfprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1341:19: [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. _GL_CXXALIAS_RPL (vfprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1348:24: [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. _GL_CXXALIAS_SYS_CAST (vfprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1353:19: [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. _GL_CXXALIASWARN (vfprintf); data/pspp-1.4.1/gl/stdio.in.h:1358:10: [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/pspp-1.4.1/gl/stdio.in.h:1361:18: [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. _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:1369:11: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vfscanf data/pspp-1.4.1/gl/stdio.in.h:1370:12: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vfscanf rpl_vfscanf data/pspp-1.4.1/gl/stdio.in.h:1372:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vfscanf, int, data/pspp-1.4.1/gl/stdio.in.h:1377:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vfscanf, int, data/pspp-1.4.1/gl/stdio.in.h:1381:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vfscanf, int, data/pspp-1.4.1/gl/stdio.in.h:1385:19: [4] (buffer) vfscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vfscanf); data/pspp-1.4.1/gl/stdio.in.h:1392: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. # define vprintf rpl_vprintf data/pspp-1.4.1/gl/stdio.in.h:1396:19: [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. _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) data/pspp-1.4.1/gl/stdio.in.h:1400:19: [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. _GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args) data/pspp-1.4.1/gl/stdio.in.h:1404:19: [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. _GL_CXXALIAS_RPL (vprintf, int, (const char *restrict format, va_list args)); data/pspp-1.4.1/gl/stdio.in.h:1409:24: [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. _GL_CXXALIAS_SYS_CAST (vprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1413:19: [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. _GL_CXXALIASWARN (vprintf); data/pspp-1.4.1/gl/stdio.in.h:1418:10: [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/pspp-1.4.1/gl/stdio.in.h:1421:18: [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. _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:1429:11: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # undef vscanf data/pspp-1.4.1/gl/stdio.in.h:1430:12: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. # define vscanf rpl_vscanf data/pspp-1.4.1/gl/stdio.in.h:1432:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_FUNCDECL_RPL (vscanf, int, (const char *restrict format, va_list args) data/pspp-1.4.1/gl/stdio.in.h:1435:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_RPL (vscanf, int, (const char *restrict format, va_list args)); data/pspp-1.4.1/gl/stdio.in.h:1437:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIAS_SYS (vscanf, int, (const char *restrict format, va_list args)); data/pspp-1.4.1/gl/stdio.in.h:1439:19: [4] (buffer) vscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. _GL_CXXALIASWARN (vscanf); data/pspp-1.4.1/gl/stdio.in.h:1445: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. # define vsnprintf rpl_vsnprintf data/pspp-1.4.1/gl/stdio.in.h:1447:19: [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. _GL_FUNCDECL_RPL (vsnprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1452:19: [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. _GL_CXXALIAS_RPL (vsnprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1457:19: [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. _GL_FUNCDECL_SYS (vsnprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1463:19: [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. _GL_CXXALIAS_SYS (vsnprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1467:19: [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. _GL_CXXALIASWARN (vsnprintf); data/pspp-1.4.1/gl/stdio.in.h:1469: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. # undef vsnprintf data/pspp-1.4.1/gl/stdio.in.h:1471:18: [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. _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - " data/pspp-1.4.1/gl/stdio.in.h:1479:12: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define vsprintf rpl_vsprintf data/pspp-1.4.1/gl/stdio.in.h:1481:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_FUNCDECL_RPL (vsprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1486:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_RPL (vsprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1493:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIAS_SYS_CAST (vsprintf, int, data/pspp-1.4.1/gl/stdio.in.h:1498:19: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_CXXALIASWARN (vsprintf); data/pspp-1.4.1/gl/stdio.in.h:1501:9: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # undef vsprintf data/pspp-1.4.1/gl/stdio.in.h:1503:18: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _GL_WARN_ON_USE (vsprintf, "vsprintf is not always POSIX compliant - " data/pspp-1.4.1/gl/strerror.c:33:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/pspp-1.4.1/gl/strerror.c:59:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (buf, fmt, n); data/pspp-1.4.1/gl/tmpdir.c:163:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (tmpl + dlen, &"/%.*sXXXXXX"[!add_slash], (int) plen, pfx); data/pspp-1.4.1/gl/unistd.in.h:270:11: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/pspp-1.4.1/gl/unistd.in.h:271:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # define access rpl_access data/pspp-1.4.1/gl/unistd.in.h:273:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_FUNCDECL_RPL (access, int, (const char *file, int mode) data/pspp-1.4.1/gl/unistd.in.h:275:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIAS_RPL (access, int, (const char *file, int mode)); data/pspp-1.4.1/gl/unistd.in.h:277:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIAS_SYS (access, int, (const char *file, int mode)); data/pspp-1.4.1/gl/unistd.in.h:279:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_CXXALIASWARN (access); data/pspp-1.4.1/gl/unistd.in.h:281:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. # undef access data/pspp-1.4.1/gl/unistd.in.h:284:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. _GL_WARN_ON_USE (access, "access does not always support X_OK - " data/pspp-1.4.1/gl/unistd.in.h:870:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_FUNCDECL_SYS (getlogin, char *, (void)); data/pspp-1.4.1/gl/unistd.in.h:872:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIAS_SYS (getlogin, char *, (void)); data/pspp-1.4.1/gl/unistd.in.h:873:19: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_CXXALIASWARN (getlogin); data/pspp-1.4.1/gl/unistd.in.h:875:9: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. # undef getlogin data/pspp-1.4.1/gl/unistd.in.h:877:18: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. _GL_WARN_ON_USE (getlogin, "getlogin is unportable - " data/pspp-1.4.1/gl/unistd.in.h:1018:11: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/pspp-1.4.1/gl/unistd.in.h:1019:12: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # define getpass rpl_getpass data/pspp-1.4.1/gl/unistd.in.h:1021:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) data/pspp-1.4.1/gl/unistd.in.h:1023:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); data/pspp-1.4.1/gl/unistd.in.h:1026:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) data/pspp-1.4.1/gl/unistd.in.h:1029:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); data/pspp-1.4.1/gl/unistd.in.h:1031:19: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_CXXALIASWARN (getpass); data/pspp-1.4.1/gl/unistd.in.h:1033:9: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. # undef getpass data/pspp-1.4.1/gl/unistd.in.h:1035:18: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. _GL_WARN_ON_USE (getpass, "getpass is unportable - " data/pspp-1.4.1/gl/vasnprintf.c:171:20: [4] (buffer) swprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. # define SNPRINTF swprintf data/pspp-1.4.1/gl/vasnprintf.c:189: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/pspp-1.4.1/gl/vasnprintf.c:191: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/pspp-1.4.1/gl/vasnprintf.c:194: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/pspp-1.4.1/gl/vasnprintf.c:199: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/pspp-1.4.1/gl/vasnprintf.c:201: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/pspp-1.4.1/gl/vasnprintf.c:205:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #undef sprintf data/pspp-1.4.1/gl/vasnprintf.c:4517:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/pspp-1.4.1/gl/vasnprintf.c:4525:39: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/pspp-1.4.1/gl/vasnprintf.c:4710:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf ((char *) p, decimal_format, exponent); data/pspp-1.4.1/gl/vasnprintf.c:4718:47: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (expbuf, decimal_format, exponent); data/pspp-1.4.1/gl/vasnprintf.c:5247:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/pspp-1.4.1/gl/vasnprintf.c:5250:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/pspp-1.4.1/gl/vasnprintf.c:5253:33: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/pspp-1.4.1/gl/version-etc.c:83: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 (stream, version_etc_copyright, _("(C)"), COPYRIGHT_YEAR); data/pspp-1.4.1/gl/vfprintf.c:36:1: [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 (FILE *fp, const char *format, va_list args) data/pspp-1.4.1/gl/vprintf.c:30:1: [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. vprintf (const char *format, va_list args) data/pspp-1.4.1/gl/vprintf.c:32:10: [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 (stdout, format, args); data/pspp-1.4.1/gl/vsnprintf.c:39:1: [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. vsnprintf (char *str, size_t size, const char *format, va_list args) data/pspp-1.4.1/gl/vsprintf.c:40:1: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (char *str, const char *format, va_list args) data/pspp-1.4.1/gl/wchar.in.h:706:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_FUNCDECL_SYS (wcscpy, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:709:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIAS_SYS (wcscpy, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:712:19: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_CXXALIASWARN (wcscpy); data/pspp-1.4.1/gl/wchar.in.h:715:9: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. # undef wcscpy data/pspp-1.4.1/gl/wchar.in.h:717:18: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - " data/pspp-1.4.1/gl/wchar.in.h:787:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcscat, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:790:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcscat, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:793:19: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcscat); data/pspp-1.4.1/gl/wchar.in.h:796:9: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). # undef wcscat data/pspp-1.4.1/gl/wchar.in.h:798:18: [4] (buffer) wcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcscat, "wcscat is unportable - " data/pspp-1.4.1/src/data/file-handle-def.c:437:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. enum fh_access access; /* Type of file access. */ data/pspp-1.4.1/src/data/file-handle-def.c:483:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const char *type, enum fh_access access, bool exclusive) data/pspp-1.4.1/src/data/file-handle-def.c:495:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. make_key (key, h, access); data/pspp-1.4.1/src/data/file-handle-def.c:606:64: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. fh_is_locked (const struct file_handle *handle, enum fh_access access) data/pspp-1.4.1/src/data/file-handle-def.c:613:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. make_key (&key, handle, access); data/pspp-1.4.1/src/data/file-handle-def.c:636:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. enum fh_access access) data/pspp-1.4.1/src/data/file-handle-def.c:639:18: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. lock->access = access; data/pspp-1.4.1/src/data/file-handle-def.c:661:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if (a->access != b->access) data/pspp-1.4.1/src/data/file-handle-def.c:661:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. else if (a->access != b->access) data/pspp-1.4.1/src/data/file-handle-def.c:662:15: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return a->access < b->access ? -1 : 1; data/pspp-1.4.1/src/data/file-handle-def.c:662:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return a->access < b->access ? -1 : 1; data/pspp-1.4.1/src/data/file-handle-def.c:683:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return hash_int ((lock->referent << 3) | lock->access, basis); data/pspp-1.4.1/src/data/file-name.c:169:14: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return popen (&fn[1], mode[0] == 'r' ? "r" : "w"); data/pspp-1.4.1/src/data/file-name.c:183:11: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. f = popen (s, mode[0] == 'r' ? "r" : "w"); data/pspp-1.4.1/src/language/expressions/parse.c:794:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (temp_buf, "%02d %s %02d", abs (time->tm_mday) % 100, data/pspp-1.4.1/src/language/lexer/lexer.c:1258:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (&out[out_len], out_len < in.length ? "..." : ""); data/pspp-1.4.1/src/language/lexer/q2c.c:120:3: [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, format, args); data/pspp-1.4.1/src/language/lexer/q2c.c:136:3: [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, format, args); data/pspp-1.4.1/src/language/lexer/q2c.c:929:3: [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 (out, format, args); data/pspp-1.4.1/src/language/lexer/q2c.c:1048:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s%s,", st_upper (prefix), sym->name); data/pspp-1.4.1/src/language/lexer/q2c.c:1052:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buf, "%s%s = 1000,", st_upper (prefix), sym->name); data/pspp-1.4.1/src/language/lexer/q2c.c:1240:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "%s%s", data/pspp-1.4.1/src/language/lexer/q2c.c:1378:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "lex_match (lexer, T_%s)", t); data/pspp-1.4.1/src/language/lexer/q2c.c:1386:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "lex_match_int (lexer, %s)", t); data/pspp-1.4.1/src/language/lexer/q2c.c:1390:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "lex_match_phrase (lexer, \"%s\")", c); data/pspp-1.4.1/src/language/lexer/q2c.c:1394:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "lex_match_id (lexer, \"%s\")", t); data/pspp-1.4.1/src/language/lexer/q2c.c:1503:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (str2, "p->%s%s", sbc->prefix, st_lower (s->valname)); data/pspp-1.4.1/src/language/lexer/q2c.c:1504:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (str, s->restriction, str2, str2, str2, str2, data/pspp-1.4.1/src/language/stats/regression.c:124:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "%s%d", prefix, i); data/pspp-1.4.1/src/language/utilities/host.c:69:20: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int retval = system (s); data/pspp-1.4.1/src/language/utilities/host.c:160:7: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl (shell, shell, "-c", locale_command, NULL); data/pspp-1.4.1/src/libpspp/float-format.c:909:7: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf (s, "NaN:%016"PRIx64, fp->fraction); data/pspp-1.4.1/src/libpspp/model-checker.c:1323:7: [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 (mc->options->output_file, name, args); data/pspp-1.4.1/src/libpspp/model-checker.c:1352:3: [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 (mc->options->output_file, message, args); data/pspp-1.4.1/src/libpspp/pool.c:406: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. needed = vsnprintf (s, avail, format, args); data/pspp-1.4.1/src/libpspp/pool.c:423:11: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf (s, format, args); data/pspp-1.4.1/src/libpspp/str.c:1556: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. needed = vsnprintf (st->ss.string + st->ss.length, avail, format, args); data/pspp-1.4.1/src/libpspp/str.c:1562:7: [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. vsnprintf (ds_put_uninit (st, needed), needed + 1, format, args); data/pspp-1.4.1/src/libpspp/str.c:1575:20: [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. needed = vsnprintf (ds_end (st), avail, format, args); data/pspp-1.4.1/src/output/measure.c:310:12: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (0 == access ("/etc/papersize", R_OK)) data/pspp-1.4.1/src/output/spv/spv.c:381:27: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf (color2, sizeof color2, data/pspp-1.4.1/src/output/table.c:289:5: [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 ("#%02"PRIx8"%02"PRIx8"%02"PRIx8, c->r, c->g, c->b); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:86:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. guts (PsppireScanf *scanf) data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:117:14: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. ship_label (scanf, &s, &scanf->d, i); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:141:36: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. gtk_box_pack_start (GTK_BOX (scanf), *w, FALSE, FALSE, 0); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:146:17: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. ship_label (scanf, &s, NULL, 0); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:152:29: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. set_mnemonic (PsppireScanf *scanf) data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:156:61: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. GList *l = gtk_container_get_children (GTK_CONTAINER (scanf)); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:190:13: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. guts (scanf); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:194:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. set_mnemonic (scanf); data/pspp-1.4.1/src/ui/gui/psppire-scanf.c:198:21: [4] (buffer) scanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. set_mnemonic (scanf); data/pspp-1.4.1/src/ui/syntax-gen.c:294: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). strcat (conv, qualifier); data/pspp-1.4.1/tests/data/sack.c:109:3: [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, message, args); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:315: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 (copy, key); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:270: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 (copy, s); data/pspp-1.4.1/tests/math/chart-get-ticks-format-test.c:77:7: [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(fs,(lower + 3 * interval)*scale); data/pspp-1.4.1/tests/math/chart-get-ticks-format-test.c:79:7: [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(fs,(lower + 4 * interval)*scale); data/pspp-1.4.1/utilities/pspp-convert.c:520:22: [4] (misc) getpass: This function is obsolete and not portable. It was in SUSv2 but removed by POSIX.2. What it does exactly varies considerably between systems, particularly in where its prompt is displayed and where it gets its data (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do exactly what you want. If you continue to use it, or write your own, be sure to zero the password as soon as possible to avoid leaving the cleartext password visible in the process' address space. password = getpass ("password: "); data/pspp-1.4.1/utilities/pspp-dump-sav.c:1555:3: [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. vprintf (format, args); data/pspp-1.4.1/gl/canonicalize-lgpl.c:51:21: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # define __realpath realpath data/pspp-1.4.1/gl/canonicalize-lgpl.c:71:30: [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/pspp-1.4.1/gl/canonicalize-lgpl.c:394:37: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. versioned_symbol (libc, __realpath, realpath, GLIBC_2_3); data/pspp-1.4.1/gl/canonicalize-lgpl.c:411:38: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. compat_symbol (libc, __old_realpath, realpath, GLIBC_2_0); data/pspp-1.4.1/gl/getopt-core.h:91:12: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) data/pspp-1.4.1/gl/getopt-ext.h:66:12: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, data/pspp-1.4.1/gl/getopt-pfx-core.h:40:9: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # undef getopt data/pspp-1.4.1/gl/getopt-pfx-core.h:45:10: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt __GETOPT_ID (getopt) data/pspp-1.4.1/gl/getopt-pfx-core.h:45:30: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt __GETOPT_ID (getopt) data/pspp-1.4.1/gl/getopt-pfx-ext.h:40:9: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # undef getopt_long data/pspp-1.4.1/gl/getopt-pfx-ext.h:44:10: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt_long __GETOPT_ID (getopt_long) data/pspp-1.4.1/gl/getopt-pfx-ext.h:44:35: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. # define getopt_long __GETOPT_ID (getopt_long) data/pspp-1.4.1/gl/getopt.c:405: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. else if (posixly_correct || !!getenv ("POSIXLY_CORRECT")) data/pspp-1.4.1/gl/getopt.c:736:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. GETOPT_ENTRY(getopt, 0) data/pspp-1.4.1/gl/getopt.c:739:14: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. GETOPT_ENTRY(getopt, 1) data/pspp-1.4.1/gl/getopt.c:758:11: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt (argc, argv, "abc:d:0123456789"); data/pspp-1.4.1/gl/getopt1.c:28:1: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, data/pspp-1.4.1/gl/getopt1.c:94:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "abc:d:0123456789", data/pspp-1.4.1/gl/getrandom.c:55:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # undef LoadLibrary data/pspp-1.4.1/gl/getrandom.c:56:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define LoadLibrary LoadLibraryA data/pspp-1.4.1/gl/getrandom.c:75:20: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE bcrypt = LoadLibrary ("bcrypt.dll"); data/pspp-1.4.1/gl/gettimeofday.c:35:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # undef LoadLibrary data/pspp-1.4.1/gl/gettimeofday.c:36:10: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. # define LoadLibrary LoadLibraryA data/pspp-1.4.1/gl/gettimeofday.c:52:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/pspp-1.4.1/gl/localcharset.c:858: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/pspp-1.4.1/gl/localcharset.c:861: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/pspp-1.4.1/gl/localcharset.c:863: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/pspp-1.4.1/gl/localcharset.c:962: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/pspp-1.4.1/gl/localcharset.c:965: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/pspp-1.4.1/gl/localcharset.c:967: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/pspp-1.4.1/gl/localcharset.c:1090: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/pspp-1.4.1/gl/localcharset.c:1093: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/pspp-1.4.1/gl/localcharset.c:1095: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/pspp-1.4.1/gl/localename.c:1510: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/pspp-1.4.1/gl/localename.c:3325: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/pspp-1.4.1/gl/localename.c:3329: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/pspp-1.4.1/gl/localename.c:3333: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/pspp-1.4.1/gl/mbtowc-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/pspp-1.4.1/gl/mbtowc-lock.h:45:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (lock); data/pspp-1.4.1/gl/mktime.c:94: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. const char *tz = getenv ("TZ"); data/pspp-1.4.1/gl/progreloc.c:366: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 *path = getenv ("PATH"); data/pspp-1.4.1/gl/relocatable.c:560:30: [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 *unixroot = getenv ("UNIXROOT"); data/pspp-1.4.1/gl/relocwrapper.c:151: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. old_value = getenv (LIBPATHVAR); data/pspp-1.4.1/gl/secure_getenv.c:36:10: [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. return getenv (name); data/pspp-1.4.1/gl/secure_getenv.c:40:10: [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. return getenv (name); data/pspp-1.4.1/gl/secure_getenv.c:50:10: [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. return getenv (name); data/pspp-1.4.1/gl/setenv.c:372:19: [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 *tmp = getenv (name); data/pspp-1.4.1/gl/setlocale-lock.c:76:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock); data/pspp-1.4.1/gl/setlocale_null.c:194:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (lock); data/pspp-1.4.1/gl/stat-w32.c:44:8: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #undef LoadLibrary data/pspp-1.4.1/gl/stat-w32.c:45:9: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. #define LoadLibrary LoadLibraryA data/pspp-1.4.1/gl/stat-w32.c:74:22: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. HMODULE kernel32 = LoadLibrary ("kernel32.dll"); data/pspp-1.4.1/gl/stdlib.in.h:606:11: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/pspp-1.4.1/gl/stdlib.in.h:607:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define random rpl_random data/pspp-1.4.1/gl/stdlib.in.h:609:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (random, long, (void)); data/pspp-1.4.1/gl/stdlib.in.h:610:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (random, long, (void)); data/pspp-1.4.1/gl/stdlib.in.h:613:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (random, long, (void)); data/pspp-1.4.1/gl/stdlib.in.h:617:24: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (random, long, (void)); data/pspp-1.4.1/gl/stdlib.in.h:619:19: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (random); data/pspp-1.4.1/gl/stdlib.in.h:621:9: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef random data/pspp-1.4.1/gl/stdlib.in.h:623:18: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (random, "random is unportable - " data/pspp-1.4.1/gl/stdlib.in.h:631:11: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/pspp-1.4.1/gl/stdlib.in.h:632:12: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define srandom rpl_srandom data/pspp-1.4.1/gl/stdlib.in.h:634:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (srandom, void, (unsigned int seed)); data/pspp-1.4.1/gl/stdlib.in.h:635:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed)); data/pspp-1.4.1/gl/stdlib.in.h:638:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); data/pspp-1.4.1/gl/stdlib.in.h:642:24: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed)); data/pspp-1.4.1/gl/stdlib.in.h:644:19: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (srandom); data/pspp-1.4.1/gl/stdlib.in.h:646:9: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef srandom data/pspp-1.4.1/gl/stdlib.in.h:648:18: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (srandom, "srandom is unportable - " data/pspp-1.4.1/gl/stdlib.in.h:687:11: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/pspp-1.4.1/gl/stdlib.in.h:688:12: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # define setstate rpl_setstate data/pspp-1.4.1/gl/stdlib.in.h:690:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdlib.in.h:691:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state)); data/pspp-1.4.1/gl/stdlib.in.h:694:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdlib.in.h:698:24: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state)); data/pspp-1.4.1/gl/stdlib.in.h:700:19: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_CXXALIASWARN (setstate); data/pspp-1.4.1/gl/stdlib.in.h:702:9: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. # undef setstate data/pspp-1.4.1/gl/stdlib.in.h:704:18: [3] (random) setstate: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. _GL_WARN_ON_USE (setstate, "setstate is unportable - " data/pspp-1.4.1/gl/stdlib.in.h:873:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # define realpath rpl_realpath data/pspp-1.4.1/gl/stdlib.in.h:875:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_RPL (realpath, char *, data/pspp-1.4.1/gl/stdlib.in.h:878:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_RPL (realpath, char *, data/pspp-1.4.1/gl/stdlib.in.h:882:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_FUNCDECL_SYS (realpath, char *, data/pspp-1.4.1/gl/stdlib.in.h:886:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIAS_SYS (realpath, char *, data/pspp-1.4.1/gl/stdlib.in.h:889:19: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_CXXALIASWARN (realpath); data/pspp-1.4.1/gl/stdlib.in.h:891:9: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. # undef realpath data/pspp-1.4.1/gl/stdlib.in.h:893:18: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. _GL_WARN_ON_USE (realpath, "realpath is unportable - use gnulib module " data/pspp-1.4.1/gl/time_rz.c:214:10: [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. return getenv ("TZ"); data/pspp-1.4.1/gl/tzset.c:61: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. const char *tz = getenv ("TZ"); data/pspp-1.4.1/gl/unsetenv.c:119:10: [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. while (getenv (name)) data/pspp-1.4.1/gl/windows-mutex.c:30:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/pspp-1.4.1/gl/windows-mutex.c:52:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&mutex->lock); data/pspp-1.4.1/gl/windows-once.c:35:11: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&once_control->lock); data/pspp-1.4.1/gl/windows-once.c:36: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/pspp-1.4.1/gl/windows-once.c:55: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/pspp-1.4.1/gl/windows-recmutex.c:32:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&mutex->lock); data/pspp-1.4.1/gl/windows-recmutex.c:58:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&mutex->lock); data/pspp-1.4.1/gl/windows-rwlock.c:126:3: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:151:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:183:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:211:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:240:15: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:270:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:306:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/gl/windows-rwlock.c:324:3: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection (&lock->lock); data/pspp-1.4.1/src/data/file-name.c:242:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("HOME"); data/pspp-1.4.1/src/data/file-name.c:247:29: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_drive = getenv ("HOMEDRIVE"); data/pspp-1.4.1/src/data/file-name.c:248: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 *home_path = getenv ("HOMEPATH"); data/pspp-1.4.1/src/language/lexer/include-path.c:82:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. home = getenv ("HOME"); data/pspp-1.4.1/src/language/tests/pool-test.c:47:7: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (seed++); data/pspp-1.4.1/src/language/utilities/host.c:155:27: [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 *shell = getenv ("SHELL"); data/pspp-1.4.1/src/libpspp/argv-parser.c:152:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, ds_cstr (&shortopts), data/pspp-1.4.1/src/libpspp/array.h:107:40: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. algo_random_func *random, const void *aux); data/pspp-1.4.1/src/libpspp/model-checker.c:1710:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (mc->options->seed); data/pspp-1.4.1/src/output/ascii.c:261: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. const char *term = getenv ("TERM"); data/pspp-1.4.1/src/output/ascii.c:262:30: [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 *xterm_locale = getenv ("XTERM_LOCAL"); data/pspp-1.4.1/src/output/ascii.c:1024: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. if (getenv ("COLUMNS")) data/pspp-1.4.1/src/output/ascii.c:1025:36: [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. terminal_width = atoi (getenv ("COLUMNS")); data/pspp-1.4.1/src/output/measure.c:293: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 ("PAPERSIZE") != NULL) data/pspp-1.4.1/src/output/measure.c:294:46: [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. return get_standard_paper_size (ss_cstr (getenv ("PAPERSIZE")), h, v); data/pspp-1.4.1/src/output/measure.c:295: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 ("PAPERCONF") != NULL) data/pspp-1.4.1/src/output/measure.c:296:29: [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. return read_paper_conf (getenv ("PAPERCONF"), h, v); data/pspp-1.4.1/src/ui/gui/help-menu.c:103:35: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. vbsfilename = g_build_filename (g_get_tmp_dir (), data/pspp-1.4.1/src/ui/gui/main.c:332:7: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath (progname, resolved_path)) data/pspp-1.4.1/src/ui/gui/main.c:341:11: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. if (realpath (tmp, res_dir) && !stat (res_dir,&sb) && S_ISDIR (sb.st_mode)) data/pspp-1.4.1/src/ui/gui/psppire-data-store.c:349:23: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. data_store->stamp = g_random_int (); data/pspp-1.4.1/src/ui/gui/psppire-delimited-text.c:552:22: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. text_file->stamp = g_random_int (); data/pspp-1.4.1/src/ui/gui/psppire-dict.c:319:14: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. d->stamp = g_random_int (); data/pspp-1.4.1/src/ui/gui/psppire-spreadsheet-model.c:126:29: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. spreadsheetModel->stamp = g_random_int (); data/pspp-1.4.1/src/ui/gui/psppire-text-file.c:455:22: [3] (random) g_random_int: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. text_file->stamp = g_random_int (); data/pspp-1.4.1/src/ui/terminal/terminal-reader.c:318:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *home_dir = getenv ("HOME"); data/pspp-1.4.1/tests/data/sack.c:379:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, "", options, NULL); data/pspp-1.4.1/tests/language/lexer/command-name-test.c:99:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, "h", options, NULL); data/pspp-1.4.1/tests/language/lexer/scan-test.c:121:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, "sabih", options, NULL); data/pspp-1.4.1/tests/language/lexer/segment-test.c:302:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, "01abivhs", options, NULL); data/pspp-1.4.1/tests/output/render-test.c:264:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. int c = getopt_long (argc, argv, "o:", options, NULL); data/pspp-1.4.1/utilities/pspp-convert.c:176:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "c:k:d:e:p:a:l:O:hv", long_options, NULL); data/pspp-1.4.1/utilities/pspp-dump-sav.c:152:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "d::hv", long_options, NULL); data/pspp-1.4.1/utilities/pspp-output.c:910:11: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. c = getopt_long (argc, argv, "O:hvf", long_options, NULL); data/pspp-1.4.1/gl/alloca.c:112: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 align[ALIGN_SIZE]; /* To force sizeof(header). */ data/pspp-1.4.1/gl/basename.c:51: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 (p + 2, base, length); data/pspp-1.4.1/gl/btowc.c:31: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[1]; data/pspp-1.4.1/gl/c-snprintf.c:61: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 (str, output, pruned_len); data/pspp-1.4.1/gl/c-vasnprintf.c:29: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. #define DCHAR_CPY memcpy data/pspp-1.4.1/gl/canonicalize-lgpl.c:184: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 (rpath, name, prefix_len); data/pspp-1.4.1/gl/canonicalize-lgpl.c:268: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 (dest, start, end - start); data/pspp-1.4.1/gl/canonicalize-lgpl.c:333:28: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. name = end = memcpy (extra_buf, buf, n); data/pspp-1.4.1/gl/canonicalize-lgpl.c:340: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 (rpath, buf, pfxlen); data/pspp-1.4.1/gl/careadlinkat.c:73: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 stack_buf[1024]; data/pspp-1.4.1/gl/careadlinkat.c:139: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. return memcpy (b, buf, link_size); data/pspp-1.4.1/gl/clean-temp.c:918: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). fd = open (file_name, flags | _O_TEMPORARY, mode); data/pspp-1.4.1/gl/clean-temp.c:921: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). fd = open (file_name, flags, mode); data/pspp-1.4.1/gl/clean-temp.c:950: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 (augmented_mode, mode, mode_len); data/pspp-1.4.1/gl/clean-temp.c:951: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 (augmented_mode + mode_len, "D", 2); data/pspp-1.4.1/gl/clean-temp.c:953: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). fp = fopen (file_name, augmented_mode); data/pspp-1.4.1/gl/clean-temp.c:961: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). fp = fopen (file_name, mode); data/pspp-1.4.1/gl/clean-temp.c:991: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). return open (file_name_tmpl, data/pspp-1.4.1/gl/count-leading-zeros.h:80:16: [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 de_Bruijn_lookup[32] = { data/pspp-1.4.1/gl/dirname-lgpl.c:81:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dir, file, length); data/pspp-1.4.1/gl/dup2.c:116:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tempfd = open ("NUL", O_RDONLY); data/pspp-1.4.1/gl/dup2.c:124: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 path[_MAX_PATH]; data/pspp-1.4.1/gl/dup2.c:128:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_RDONLY); data/pspp-1.4.1/gl/error.c:180: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 errbuf[1024]; data/pspp-1.4.1/gl/fcntl.c:61:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fds_to_close[OPEN_MAX_MAX / CHAR_BIT]; data/pspp-1.4.1/gl/fcntl.in.h:143:11: [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). # undef open data/pspp-1.4.1/gl/fcntl.in.h:144:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define open rpl_open data/pspp-1.4.1/gl/fcntl.in.h:146:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...) data/pspp-1.4.1/gl/fcntl.in.h:148:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...)); data/pspp-1.4.1/gl/fcntl.in.h:150:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...)); data/pspp-1.4.1/gl/fcntl.in.h:155:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_CXXALIASWARN (open); data/pspp-1.4.1/gl/fcntl.in.h:158:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # undef open data/pspp-1.4.1/gl/fcntl.in.h:160:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _GL_WARN_ON_USE (open, "open is not always POSIX compliant - " data/pspp-1.4.1/gl/fopen.c:32:10: [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). return fopen (filename, mode); data/pspp-1.4.1/gl/fopen.c:56: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 fdopen_mode_buf[BUF_SIZE + 1]; data/pspp-1.4.1/gl/fopen.c:140: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 (q, p, len); data/pspp-1.4.1/gl/fopen.c:179:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, open_direction | open_flags, data/pspp-1.4.1/gl/fopen.c:213:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (filename, open_direction | open_flags, data/pspp-1.4.1/gl/fprintf.c:38: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[2000]; data/pspp-1.4.1/gl/fseeko.c:62:19: [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 *tmp = fopen ("/dev/null", "r"); data/pspp-1.4.1/gl/ftello.c:76:19: [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 *tmp = fopen ("/dev/null", "r"); data/pspp-1.4.1/gl/ftoastr.c:93: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 width_0_buffer[LENGTH == 1 ? FLT_BUFSIZE_BOUND data/pspp-1.4.1/gl/ftoastr.c:123: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 format[sizeof "%-+ 0*.*Lg"]; data/pspp-1.4.1/gl/fwriteerror.c:142: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 dummy[8193]; data/pspp-1.4.1/gl/fwriteerror.c:153:26: [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 *stream = fopen (UNWRITABLE_FILE, "w"); data/pspp-1.4.1/gl/getpass.c:99: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). tty = fopen ("/dev/tty", "w+e"); data/pspp-1.4.1/gl/getpass.c:193: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 getpassbuf[PASS_MAX + 1]; data/pspp-1.4.1/gl/getprogname.c:152: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. char status64[1216]; data/pspp-1.4.1/gl/getprogname.c:222: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 filename[50]; data/pspp-1.4.1/gl/getprogname.c:225: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 (filename, "/proc/pinfo/%d", (int) getpid ()); data/pspp-1.4.1/gl/getprogname.c:226: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 | O_CLOEXEC); data/pspp-1.4.1/gl/getprogname.c:243: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. return memcpy (namecopy, name, namelen); data/pspp-1.4.1/gl/getrandom.c:179:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open (randdevice[devrandom], oflags); data/pspp-1.4.1/gl/gettext.h:227: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/pspp-1.4.1/gl/gettext.h:229: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/pspp-1.4.1/gl/gettext.h:238: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/pspp-1.4.1/gl/gettext.h:240: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/pspp-1.4.1/gl/gettext.h:275: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/pspp-1.4.1/gl/gettext.h:277: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/pspp-1.4.1/gl/gettext.h:286: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/pspp-1.4.1/gl/gettext.h: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len); data/pspp-1.4.1/gl/hard-locale.c:29: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 locale[SETLOCALE_NULL_MAX]; data/pspp-1.4.1/gl/localcharset.c:88: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. const char alias[11+1]; data/pspp-1.4.1/gl/localcharset.c:89: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. const char canonical[11+1]; data/pspp-1.4.1/gl/localcharset.c:579: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. const char locale[17+1]; data/pspp-1.4.1/gl/localcharset.c:580: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. const char canonical[11+1]; data/pspp-1.4.1/gl/localcharset.c:856: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 resultbuf[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:883: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 (resultbuf, dot, modifier - dot); data/pspp-1.4.1/gl/localcharset.c:902:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:904:9: [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/pspp-1.4.1/gl/localcharset.c:917: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[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:918: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 resultbuf[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:939: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/pspp-1.4.1/gl/localcharset.c:954: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 resultbuf[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:986: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, dot, modifier - dot); data/pspp-1.4.1/gl/localcharset.c:1004: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. char buf[2 + 10 + 1]; data/pspp-1.4.1/gl/localcharset.c:1006: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/pspp-1.4.1/gl/localename-table.h:33: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. const char *category_name[6]; data/pspp-1.4.1/gl/localename.c:1188: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/pspp-1.4.1/gl/localename.c:1188: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/pspp-1.4.1/gl/localename.c:1326: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/pspp-1.4.1/gl/localename.c:1326: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/pspp-1.4.1/gl/localename.c:1378: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/pspp-1.4.1/gl/localename.c:1378: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/pspp-1.4.1/gl/localename.c:1512: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/pspp-1.4.1/gl/localename.c:2569: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 lname[LC_MAX * (LOCALE_NAME_MAX_LENGTH + 1) + 1]; data/pspp-1.4.1/gl/localename.c:2576: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 locval[2 * LOCALE_NAME_MAX_LENGTH + 1 + 1]; data/pspp-1.4.1/gl/localename.c:2612: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 last_locale[1000]; data/pspp-1.4.1/gl/localename.c:2669: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[FLEXIBLE_ARRAY_MEMBER]; data/pspp-1.4.1/gl/localename.c:2700: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/pspp-1.4.1/gl/localename.c:3181:30: [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. return ((const char * const *) lcp)[category]; data/pspp-1.4.1/gl/localename.c:3199:28: [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. return ((const char * const *) thread_locale)[category]; data/pspp-1.4.1/gl/localename.c:3215: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. char categories[7][32]; data/pspp-1.4.1/gl/localename.c:3413: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/pspp-1.4.1/gl/mbchar.h:175: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[MBCHAR_BUF_SIZE]; /* room for the bytes, used for file input only */ data/pspp-1.4.1/gl/mbchar.h:272:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_mbc->buf[0], &old_mbc->buf[0], old_mbc->bytes); data/pspp-1.4.1/gl/mbiter.h:195:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (&new_iter->state, &old_iter->state, sizeof (mbstate_t)); data/pspp-1.4.1/gl/mbrtowc-impl.h:41: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 buf[4]; data/pspp-1.4.1/gl/mbrtowc.c:59: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 internal_state[4]; data/pspp-1.4.1/gl/md4.c:50: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. static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ... */ }; data/pspp-1.4.1/gl/md4.c:73: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 (cp, &v, sizeof v); data/pspp-1.4.1/gl/md4.c:105: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 (&((char*)ctx->buffer)[bytes], fillbuf, pad); data/pspp-1.4.1/gl/md4.c:220: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 (&((char*)ctx->buffer)[left_over], buffer, add); data/pspp-1.4.1/gl/md4.c:229: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 (ctx->buffer, &((char*)ctx->buffer)[(left_over + add) & ~63], data/pspp-1.4.1/gl/md4.c:245:32: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. md4_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx); data/pspp-1.4.1/gl/md4.c:263: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 (&((char*)ctx->buffer)[left_over], buffer, len); data/pspp-1.4.1/gl/md4.c:269: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 (ctx->buffer, &ctx->buffer[16], left_over); data/pspp-1.4.1/gl/mempcpy.c:27:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (dest, src, n) + n; data/pspp-1.4.1/gl/mkstemp.c:47:1: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). mkstemp (char *xtemplate) data/pspp-1.4.1/gl/nl_langinfo.c:48: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 result[2 + 10 + 1]; data/pspp-1.4.1/gl/nl_langinfo.c:49: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[2 + 10 + 1]; data/pspp-1.4.1/gl/nl_langinfo.c:50: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 locale[SETLOCALE_NULL_MAX]; data/pspp-1.4.1/gl/nl_langinfo.c:78: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. codeset = memcpy (buf, codeset_start, codesetlen); data/pspp-1.4.1/gl/nl_langinfo.c:95:5: [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 + 2, "%u", GetACP ()); data/pspp-1.4.1/gl/nl_langinfo.c:102: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 (buf, "CP", 2); data/pspp-1.4.1/gl/nl_langinfo.c:200:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/pspp-1.4.1/gl/nl_langinfo.c:241:16: [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 result[80]; data/pspp-1.4.1/gl/nl_langinfo.c:249:16: [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 result[80]; data/pspp-1.4.1/gl/nl_langinfo.c:264:16: [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 result[7][50]; data/pspp-1.4.1/gl/nl_langinfo.c:271:19: [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. return (char *) days[item - DAY_1]; data/pspp-1.4.1/gl/nl_langinfo.c:283:16: [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 result[7][30]; data/pspp-1.4.1/gl/nl_langinfo.c:289:19: [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. return (char *) abdays[item - ABDAY_1]; data/pspp-1.4.1/gl/nl_langinfo.c:311:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[12][50]; data/pspp-1.4.1/gl/nl_langinfo.c:314:21: [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. return (char *) months[item - MON_1]; data/pspp-1.4.1/gl/nl_langinfo.c:331:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char result[12][50]; data/pspp-1.4.1/gl/nl_langinfo.c:339: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. return (char *) months[item - ALTMON_1]; data/pspp-1.4.1/gl/nl_langinfo.c:357:16: [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 result[12][30]; data/pspp-1.4.1/gl/nl_langinfo.c:364:19: [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. return (char *) abmonths[item - ABMON_1]; data/pspp-1.4.1/gl/nstrftime.c:91:26: [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) memcpy (d, s, n) data/pspp-1.4.1/gl/nstrftime.c:865: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 ufmt[5]; data/pspp-1.4.1/gl/nstrftime.c:867: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 ubuf[1024]; /* enough for any single format in practice */ data/pspp-1.4.1/gl/open.c:33: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). return open (filename, flags, mode); data/pspp-1.4.1/gl/open.c:55:1: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open (const char *filename, int flags, ...) data/pspp-1.4.1/gl/open.c:161: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 ("/dev/null", flags, mode); data/pspp-1.4.1/gl/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/pspp-1.4.1/gl/printf-parse.c:593: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/pspp-1.4.1/gl/progreloc.c: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 location[MAX_PATH]; data/pspp-1.4.1/gl/progreloc.c:228: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 location[CCHMAXPATH]; data/pspp-1.4.1/gl/progreloc.c:256:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); data/pspp-1.4.1/gl/progreloc.c:259: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[6+10+5]; data/pspp-1.4.1/gl/progreloc.c:260: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, "/proc/%d/exe", getpid ()); data/pspp-1.4.1/gl/progreloc.c:265:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). executable_fd = open (buf, O_EXEC | O_CLOEXEC, 0); data/pspp-1.4.1/gl/progreloc.c:311: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 namebuf[4096]; data/pspp-1.4.1/gl/progreloc.c:312:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int fd = open ("/proc/self/execname", O_RDONLY | O_CLOEXEC, 0); data/pspp-1.4.1/gl/progreloc.c:335:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). executable_fd = open ("/proc/self/exe", O_EXEC | O_CLOEXEC, 0); data/pspp-1.4.1/gl/progreloc.c:342: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 location[4096]; data/pspp-1.4.1/gl/progreloc.c:397: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 (concat_name, p, p_len); data/pspp-1.4.1/gl/progreloc.c:485: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 (shorter, argv0, argv0_len - exeext_len - 4); data/pspp-1.4.1/gl/progreloc.c:487: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 (shorter + argv0_len - exeext_len - 4, data/pspp-1.4.1/gl/read-file.c:113: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 (smaller_buf, buf, size); data/pspp-1.4.1/gl/read-file.c:156: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 (new_buf, buf, save_alloc); data/pspp-1.4.1/gl/read-file.c:194: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). FILE *stream = fopen (filename, mode); data/pspp-1.4.1/gl/regcomp.c:312:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[MB_LEN_MAX]; data/pspp-1.4.1/gl/regcomp.c:395: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 buf[256]; data/pspp-1.4.1/gl/regcomp.c:545: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 (errbuf, msg, cpy_size); data/pspp-1.4.1/gl/regcomp.c:3170:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char start_name_buf[BRACKET_NAME_BUF_SIZE]; data/pspp-1.4.1/gl/regcomp.c:3171:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char end_name_buf[BRACKET_NAME_BUF_SIZE]; data/pspp-1.4.1/gl/regcomp.c:3493:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char char_buf[2]; data/pspp-1.4.1/gl/regex.h:642: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. const char *_Restrict_ __String, size_t __nmatch, data/pspp-1.4.1/gl/regex_internal.c:214:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[MB_LEN_MAX]; data/pspp-1.4.1/gl/regex_internal.c:217:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[64]; data/pspp-1.4.1/gl/regex_internal.c:287: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[MB_LEN_MAX]; data/pspp-1.4.1/gl/regex_internal.c:290: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[64]; data/pspp-1.4.1/gl/regex_internal.c:331: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 (pstr->mbs + byte_idx, buf, mbclen); data/pspp-1.4.1/gl/regex_internal.c:339: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 (pstr->mbs + byte_idx, data/pspp-1.4.1/gl/regex_internal.c:400: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 (pstr->mbs + byte_idx, buf, mbclen); data/pspp-1.4.1/gl/regex_internal.c:425: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 (pstr->mbs + byte_idx, buf, mbcdlen); data/pspp-1.4.1/gl/regex_internal.c:444: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 (pstr->mbs + byte_idx, p, mbclen); data/pspp-1.4.1/gl/regex_internal.c:447: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 (pstr->mbs + byte_idx, p, mbclen); data/pspp-1.4.1/gl/regex_internal.c:739:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buf[6]; data/pspp-1.4.1/gl/regex_internal.c:1039: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 (dest->elems, src->elems, src->nelem * sizeof (Idx)); data/pspp-1.4.1/gl/regex_internal.c:1133: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 (dest->elems, dest->elems + sbase, delta * sizeof (Idx)); data/pspp-1.4.1/gl/regex_internal.c:1177: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 (dest->elems + id, src1->elems + i1, data/pspp-1.4.1/gl/regex_internal.c:1183: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 (dest->elems + id, src2->elems + i2, data/pspp-1.4.1/gl/regex_internal.c:1214: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 (dest->elems, src->elems, src->nelem * sizeof (Idx)); data/pspp-1.4.1/gl/regex_internal.c:1235: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 (dest->elems + sbase, src->elems, (is + 1) * sizeof (Idx)); data/pspp-1.4.1/gl/regex_internal.c:1263: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 (dest->elems, dest->elems + sbase, data/pspp-1.4.1/gl/regex_internal.h:758: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 (dest, src, sizeof (bitset_t)); data/pspp-1.4.1/gl/regexec.c:344: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 (__mempcpy (s, string1, length1), string2, length2); data/pspp-1.4.1/gl/regexec.c:346: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 (s, string1, length1); data/pspp-1.4.1/gl/regexec.c:347: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 (s + length1, string2, length2); data/pspp-1.4.1/gl/regexec.c:1339: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 (fs->stack[num].regs, regs, sizeof (regmatch_t) * nregs); data/pspp-1.4.1/gl/regexec.c:1351: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 (regs, fs->stack[num].regs, sizeof (regmatch_t) * nregs); data/pspp-1.4.1/gl/regexec.c:1403: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 (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); data/pspp-1.4.1/gl/regexec.c:1511: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 (prev_idx_match, pmatch, sizeof (regmatch_t) * nmatch); data/pspp-1.4.1/gl/regexec.c:1522: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 (pmatch, prev_idx_match, sizeof (regmatch_t) * nmatch); data/pspp-1.4.1/gl/relocatable.c:148: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/pspp-1.4.1/gl/relocatable.c:151: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/pspp-1.4.1/gl/relocatable.c:233: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/pspp-1.4.1/gl/relocatable.c:302: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 (computed_curr_prefix, curr_installdir, computed_curr_prefix_len); data/pspp-1.4.1/gl/relocatable.c:336: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/pspp-1.4.1/gl/relocatable.c:362: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 location[CCHMAXPATH]; data/pspp-1.4.1/gl/relocatable.c:405: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/pspp-1.4.1/gl/relocatable.c:539: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/pspp-1.4.1/gl/relocatable.c:569: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, unixroot, 2); data/pspp-1.4.1/gl/relocwrapper.c:105: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, filename, filename_len - exeext_len); data/pspp-1.4.1/gl/relocwrapper.c:106: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 + filename_len - exeext_len, ".bin", 4); data/pspp-1.4.1/gl/relocwrapper.c:107: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 + filename_len - exeext_len + 4, data/pspp-1.4.1/gl/relocwrapper.c:115: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, filename, filename_len); data/pspp-1.4.1/gl/relocwrapper.c:116: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 + filename_len, ".bin", 4 + 1); data/pspp-1.4.1/gl/relocwrapper.c:170: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 (p, libdirs[i], len); data/pspp-1.4.1/gl/rijndael-alg-fst.c:903:24: [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 pt[16], char ct[16]) data/pspp-1.4.1/gl/rijndael-alg-fst.c:903: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. const char pt[16], char ct[16]) data/pspp-1.4.1/gl/rijndael-alg-fst.c:994:24: [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 ct[16], char pt[16]) data/pspp-1.4.1/gl/rijndael-alg-fst.c:994: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. const char ct[16], char pt[16]) data/pspp-1.4.1/gl/rijndael-alg-fst.h:61: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. const char pt[16], char ct[16]); data/pspp-1.4.1/gl/rijndael-alg-fst.h:61:42: [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 pt[16], char ct[16]); data/pspp-1.4.1/gl/rijndael-alg-fst.h:63: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. const char ct[16], char pt[16]); data/pspp-1.4.1/gl/rijndael-alg-fst.h:63:42: [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 ct[16], char pt[16]); data/pspp-1.4.1/gl/rijndael-api-fst.c:78: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 cipherKey[RIJNDAEL_MAXKB]; data/pspp-1.4.1/gl/rijndael-api-fst.c:206: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. union { char bytes[16]; uint32_t words[4]; } block; data/pspp-1.4.1/gl/rijndael-api-fst.c:240: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 (cipher->IV, outBuffer, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:250: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 (outBuffer, input, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:281: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. union { char bytes[16]; uint32_t words[4]; } block; data/pspp-1.4.1/gl/rijndael-api-fst.c:306: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 (block.bytes, input, 16 - padLen); data/pspp-1.4.1/gl/rijndael-api-fst.c:320: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 (cipher->IV, outBuffer, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:335: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 (cipher->IV, outBuffer, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:352: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. union { char bytes[16]; uint32_t words[4]; } block; data/pspp-1.4.1/gl/rijndael-api-fst.c:389: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 (cipher->IV, input, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:390: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 (outBuffer, block.bytes, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:400: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 (outBuffer, input, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:430: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. union { char bytes[16]; uint32_t words[4]; } block; data/pspp-1.4.1/gl/rijndael-api-fst.c:472: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 (outBuffer, block.bytes, 16 - padLen); data/pspp-1.4.1/gl/rijndael-api-fst.c:485: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 (iv, input, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:486: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 (outBuffer, block.bytes, 16); data/pspp-1.4.1/gl/rijndael-api-fst.c:508: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 (outBuffer, block.bytes, 16 - padLen); data/pspp-1.4.1/gl/rijndael-api-fst.h:115: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 keyMaterial[RIJNDAEL_MAX_KEY_SIZE + 1]; data/pspp-1.4.1/gl/rijndael-api-fst.h:129:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char IV[RIJNDAEL_MAX_IV_SIZE]; data/pspp-1.4.1/gl/select.c:67:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char in[FD_SETSIZE / CHAR_BIT]; data/pspp-1.4.1/gl/select.c:68:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char out[FD_SETSIZE / CHAR_BIT]; data/pspp-1.4.1/gl/select.c:273:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char anyfds_in[FD_SETSIZE / CHAR_BIT]; data/pspp-1.4.1/gl/select.c:430: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 (&handle_rfds, rfds, sizeof (fd_set)); data/pspp-1.4.1/gl/select.c:431: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 (&handle_wfds, wfds, sizeof (fd_set)); data/pspp-1.4.1/gl/select.c:432: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 (&handle_xfds, xfds, sizeof (fd_set)); data/pspp-1.4.1/gl/select.c:506: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 (&handle_rfds, rfds, sizeof (fd_set)); data/pspp-1.4.1/gl/select.c:507: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 (&handle_wfds, wfds, sizeof (fd_set)); data/pspp-1.4.1/gl/select.c:508: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 (&handle_xfds, xfds, sizeof (fd_set)); data/pspp-1.4.1/gl/setenv.c:179: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 (new_value, name, namelen); data/pspp-1.4.1/gl/setenv.c:181: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 (&new_value[namelen + 1], value, vallen); data/pspp-1.4.1/gl/setenv.c:200: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 (new_environ[size], new_value, namelen + 1 + vallen); data/pspp-1.4.1/gl/setenv.c:202: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 (new_environ[size], name, namelen); data/pspp-1.4.1/gl/setenv.c:204: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 (&new_environ[size][namelen + 1], value, vallen); data/pspp-1.4.1/gl/setenv.c:217: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 ((char *) new_environ, (char *) __environ, data/pspp-1.4.1/gl/setenv.c:247: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 (new_value, name, namelen); data/pspp-1.4.1/gl/setenv.c:249: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 (&new_value[namelen + 1], value, vallen); data/pspp-1.4.1/gl/setenv.c:268: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 (np, new_value, namelen + 1 + vallen); data/pspp-1.4.1/gl/setenv.c:270: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 (np, name, namelen); data/pspp-1.4.1/gl/setenv.c:272: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 (&np[namelen + 1], value, vallen); data/pspp-1.4.1/gl/setenv.c:380: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 (tmp + 1, value, len + 1); data/pspp-1.4.1/gl/setlocale_null.c:157: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 (buf, result, length + 1); data/pspp-1.4.1/gl/setlocale_null.c:167: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, result, bufsize - 1); data/pspp-1.4.1/gl/setlocale_null.c:322: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[SETLOCALE_NULL_ALL_MAX]; data/pspp-1.4.1/gl/setlocale_null.c:323: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 resultbuf[SETLOCALE_NULL_ALL_MAX]; data/pspp-1.4.1/gl/setlocale_null.c:365: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[SETLOCALE_NULL_MAX]; data/pspp-1.4.1/gl/setlocale_null.c:366: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 resultbuf[LC_INDICES_COUNT][SETLOCALE_NULL_MAX]; data/pspp-1.4.1/gl/snprintf.c:57: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 (str, output, pruned_len); data/pspp-1.4.1/gl/stat-w32.c:215: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->st_ino, &id.FileId, sizeof (ino_t)); data/pspp-1.4.1/gl/stat-w32.c:268:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fpath[PATH_MAX]; data/pspp-1.4.1/gl/stat.c:179: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 (malloca_rname, name, rlen); data/pspp-1.4.1/gl/stdio-impl.h:56: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. unsigned char _ubuf[3]; \ data/pspp-1.4.1/gl/stdio-impl.h:57: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. unsigned char _nbuf[1]; \ data/pspp-1.4.1/gl/stdio-impl.h:95: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. unsigned char _ubuf[3]; \ data/pspp-1.4.1/gl/stdio-impl.h:96: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. unsigned char _nbuf[1]; \ data/pspp-1.4.1/gl/stdio.in.h:303: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). # undef fopen data/pspp-1.4.1/gl/stdio.in.h:304: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). # define fopen rpl_fopen data/pspp-1.4.1/gl/stdio.in.h:306:19: [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). _GL_FUNCDECL_RPL (fopen, FILE *, data/pspp-1.4.1/gl/stdio.in.h:309:19: [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). _GL_CXXALIAS_RPL (fopen, FILE *, data/pspp-1.4.1/gl/stdio.in.h:312:19: [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). _GL_CXXALIAS_SYS (fopen, FILE *, data/pspp-1.4.1/gl/stdio.in.h:316:19: [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). _GL_CXXALIASWARN (fopen); data/pspp-1.4.1/gl/stdio.in.h:319: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). # undef fopen data/pspp-1.4.1/gl/stdio.in.h:321: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). _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - " data/pspp-1.4.1/gl/stdio.in.h:1220:12: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # define tmpfile rpl_tmpfile data/pspp-1.4.1/gl/stdio.in.h:1222:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_FUNCDECL_RPL (tmpfile, FILE *, (void)); data/pspp-1.4.1/gl/stdio.in.h:1223:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_RPL (tmpfile, FILE *, (void)); data/pspp-1.4.1/gl/stdio.in.h:1225:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIAS_SYS (tmpfile, FILE *, (void)); data/pspp-1.4.1/gl/stdio.in.h:1228:19: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_CXXALIASWARN (tmpfile); data/pspp-1.4.1/gl/stdio.in.h:1231:9: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). # undef tmpfile data/pspp-1.4.1/gl/stdio.in.h:1233:18: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - " data/pspp-1.4.1/gl/stdlib.in.h:427:12: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # define mkstemp rpl_mkstemp data/pspp-1.4.1/gl/stdlib.in.h:429:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_FUNCDECL_RPL (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdlib.in.h:430:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIAS_RPL (mkstemp, int, (char * /*template*/)); data/pspp-1.4.1/gl/stdlib.in.h:433:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_FUNCDECL_SYS (mkstemp, int, (char * /*template*/) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdlib.in.h:435:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIAS_SYS (mkstemp, int, (char * /*template*/)); data/pspp-1.4.1/gl/stdlib.in.h:437:19: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_CXXALIASWARN (mkstemp); data/pspp-1.4.1/gl/stdlib.in.h:439:9: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). # undef mkstemp data/pspp-1.4.1/gl/stdlib.in.h:441:18: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). _GL_WARN_ON_USE (mkstemp, "mkstemp is unportable - " data/pspp-1.4.1/gl/strdup.c:47:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return (char *) memcpy (new, s, len); data/pspp-1.4.1/gl/strerror.c:39: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[STACKBUF_LEN]; data/pspp-1.4.1/gl/strerror.c:69: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 (buf, msg, len + 1); data/pspp-1.4.1/gl/strndup.c:35: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. return memcpy (new, s, len); data/pspp-1.4.1/gl/strtod.c:95: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/pspp-1.4.1/gl/strtod.c:96: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/pspp-1.4.1/gl/sys_socket.in.h:116: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 __ss_padding[_SS_PADSIZE]; data/pspp-1.4.1/gl/sys_stat.in.h:813:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_RPL (utimensat, int, (int fd, char const *name, data/pspp-1.4.1/gl/sys_stat.in.h:816:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_RPL (utimensat, int, (int fd, char const *name, data/pspp-1.4.1/gl/sys_stat.in.h:820:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_FUNCDECL_SYS (utimensat, int, (int fd, char const *name, data/pspp-1.4.1/gl/sys_stat.in.h:824:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _GL_CXXALIAS_SYS (utimensat, int, (int fd, char const *name, data/pspp-1.4.1/gl/tempname.c:61:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define __open open data/pspp-1.4.1/gl/tempname.c:153: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 (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); data/pspp-1.4.1/gl/time-internal.h:30: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 *tzname_copy[2]; data/pspp-1.4.1/gl/time-internal.h:48: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 abbrs[FLEXIBLE_ARRAY_MEMBER]; data/pspp-1.4.1/gl/time_rz.c:88: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 (abbrs, abbr, abbr_size); data/pspp-1.4.1/gl/tmpdir.c:125: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 dirbuf[PATH_MAX]; data/pspp-1.4.1/gl/tmpdir.c:162: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 (tmpl, dir, dlen); data/pspp-1.4.1/gl/unicase/special-casing.in.h:36:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. /*unsigned*/ char code[3]; data/pspp-1.4.1/gl/unicase/special-casing.in.h:45: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 language[2]; data/pspp-1.4.1/gl/unicase/u-casemap.h:70: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 code[3]; data/pspp-1.4.1/gl/unicase/u-ct-totitle.h:146: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 code[3]; data/pspp-1.4.1/gl/unictype/combiningclass.h:14:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char level3[75 << 7]; data/pspp-1.4.1/gl/unigbrk/gbrkprop.h:14:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char level3[119 << 7]; data/pspp-1.4.1/gl/unilbrk/lbrkprop1.h:30:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char level3[210 << 7]; data/pspp-1.4.1/gl/unilbrk/lbrktables.c:26:16: [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 unsigned char unilbrk_table[30][30] = data/pspp-1.4.1/gl/unilbrk/lbrktables.h:98: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. extern const unsigned char unilbrk_table[30][30]; data/pspp-1.4.1/gl/uninorm/u-normalize-internal.h:318: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 (new_sortbuf, sortbuf, data/pspp-1.4.1/gl/unistr/u-cpy.h:30: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 ((char *) dest, (const char *) src, n * sizeof (UNIT)); data/pspp-1.4.1/gl/uniwbrk/wbrkprop.h:30:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char level3[174 << 7]; data/pspp-1.4.1/gl/uniwbrk/wbrktable.c:69:16: [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 unsigned char uniwbrk_table[14][14] = data/pspp-1.4.1/gl/uniwbrk/wbrktable.h:19: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. extern const unsigned char uniwbrk_table[14][14]; data/pspp-1.4.1/gl/uniwidth/width.c:35: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. static const unsigned char nonspacing_table_data[38*64] = { data/pspp-1.4.1/gl/uniwidth/width.c:379:21: [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 signed char nonspacing_table_ind[248] = { data/pspp-1.4.1/gl/vasnprintf.c:151: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/pspp-1.4.1/gl/vasnprintf.c:285: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 hex[16] = "0123456789ABCDEF"; data/pspp-1.4.1/gl/vasnprintf.c:363: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/pspp-1.4.1/gl/vasnprintf.c:364: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/pspp-1.4.1/gl/vasnprintf.c:588: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/pspp-1.4.1/gl/vasnprintf.c:725: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/pspp-1.4.1/gl/vasnprintf.c:2741: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/pspp-1.4.1/gl/vasnprintf.c:2782: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/pspp-1.4.1/gl/vasnprintf.c:2828: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/pspp-1.4.1/gl/vasnprintf.c:2837: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/pspp-1.4.1/gl/vasnprintf.c:2905: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/pspp-1.4.1/gl/vasnprintf.c:2914: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/pspp-1.4.1/gl/vasnprintf.c:2930: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/pspp-1.4.1/gl/vasnprintf.c:2948: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/pspp-1.4.1/gl/vasnprintf.c:3033: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/pspp-1.4.1/gl/vasnprintf.c:3059: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 cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ data/pspp-1.4.1/gl/vasnprintf.c:3070:23: [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 (tmpsrc, cbuf, count); data/pspp-1.4.1/gl/vasnprintf.c:3142: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/pspp-1.4.1/gl/vasnprintf.c:3154: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/pspp-1.4.1/gl/vasnprintf.c:3433: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/pspp-1.4.1/gl/vasnprintf.c:3439: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/pspp-1.4.1/gl/vasnprintf.c:3441: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/pspp-1.4.1/gl/vasnprintf.c:3584: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/pspp-1.4.1/gl/vasnprintf.c:3590: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/pspp-1.4.1/gl/vasnprintf.c:3592: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/pspp-1.4.1/gl/vasnprintf.c:3659: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 (result + length, tmp, count * sizeof (DCHAR_T)); data/pspp-1.4.1/gl/vasnprintf.c:4044: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/pspp-1.4.1/gl/vasnprintf.c:4050: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/pspp-1.4.1/gl/vasnprintf.c:4052: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/pspp-1.4.1/gl/vasnprintf.c:4225: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/pspp-1.4.1/gl/vasnprintf.c:4231: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/pspp-1.4.1/gl/vasnprintf.c:4233: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/pspp-1.4.1/gl/vasnprintf.c:4523: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/pspp-1.4.1/gl/vasnprintf.c:4716: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/pspp-1.4.1/gl/vasnprintf.c:4842: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 (result + length, tmp, count * sizeof (DCHAR_T)); data/pspp-1.4.1/gl/vasnprintf.c:5050: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/pspp-1.4.1/gl/vasnprintf.c:5071: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/pspp-1.4.1/gl/vasnprintf.c:5785: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/pspp-1.4.1/gl/version-etc.c:204: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. const char *authtab[10]; data/pspp-1.4.1/gl/vfprintf.c:38: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[2000]; data/pspp-1.4.1/gl/vsnprintf.c:56: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 (str, output, pruned_len); data/pspp-1.4.1/gl/xmalloc.c:124: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. return memcpy (xmalloc (s), p, s); data/pspp-1.4.1/gl/xmemdup0.c:42: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, p, s); data/pspp-1.4.1/gl/xvasprintf.c:67: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 (p, next, len); data/pspp-1.4.1/perl-module/ppport.h:3278:42: [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 CopyD(s,d,n,t) memcpy((char*)(d),(char*)(s), (n) * sizeof(t)) data/pspp-1.4.1/perl-module/ppport.h:4830:24: [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. && (xdigit = strchr((char *) PL_hexdigit, s[1]))) data/pspp-1.4.1/src/data/any-reader.c:119:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return class->open (handle); data/pspp-1.4.1/src/data/any-reader.c:127:35: [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). return dataset_reader_class.open (handle); data/pspp-1.4.1/src/data/any-reader.h:44:26: [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). struct any_reader *(*open) (struct file_handle *); data/pspp-1.4.1/src/data/case.c:210: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 (&dst->values[dst_idx], &src->values[src_idx], data/pspp-1.4.1/src/data/csv-file-writer.c:274: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 s[MAX (DBL_STRLEN_BOUND, 128)]; data/pspp-1.4.1/src/data/data-in.c:707: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 (dst, src, MIN (src_size, dst_size)); data/pspp-1.4.1/src/data/data-in.c:1028: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[64]; data/pspp-1.4.1/src/data/data-out.c:54: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 string[64]; /* Magnitude of number with excess precision. */ data/pspp-1.4.1/src/data/data-out.c:178: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 tmp[16]; data/pspp-1.4.1/src/data/data-out.c:208: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 tmp[128]; data/pspp-1.4.1/src/data/data-out.c:276: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[128]; data/pspp-1.4.1/src/data/data-out.c:280: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 (output, buf, format->w); data/pspp-1.4.1/src/data/data-out.c:294: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[128]; data/pspp-1.4.1/src/data/data-out.c:306: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 (output, buf, format->w); data/pspp-1.4.1/src/data/data-out.c:385: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 tmp[8]; data/pspp-1.4.1/src/data/data-out.c:398: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 (output, &d, format->w); data/pspp-1.4.1/src/data/data-out.c:424: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 tmp[64]; data/pspp-1.4.1/src/data/data-out.c:455:18: [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. p += sprintf (p, "%02d", day); data/pspp-1.4.1/src/data/data-out.c:457:18: [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. p += sprintf (p, "%03d", yday); data/pspp-1.4.1/src/data/data-out.c:461:18: [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. p += sprintf (p, "%02d", month); data/pspp-1.4.1/src/data/data-out.c:464:28: [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 *const months[12] = data/pspp-1.4.1/src/data/data-out.c:476:22: [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. p += sprintf (p, "%04d", year); data/pspp-1.4.1/src/data/data-out.c:489:20: [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. p += sprintf (p, "%02d", abs (year) % 100); data/pspp-1.4.1/src/data/data-out.c:493:16: [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. p += sprintf (p, "%d", (month - 1) / 3 + 1); data/pspp-1.4.1/src/data/data-out.c:496:16: [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. p += sprintf (p, "%2d", (yday - 1) / 7 + 1); data/pspp-1.4.1/src/data/data-out.c:516:16: [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. p += sprintf (p, "%02d", (int) floor (number / 60.)); data/pspp-1.4.1/src/data/data-out.c:524:18: [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. p += sprintf (p, ":%02d", (int) number); data/pspp-1.4.1/src/data/data-out.c:565:16: [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 *const weekdays[7] = data/pspp-1.4.1/src/data/data-out.c:591:16: [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 *const months[12] = data/pspp-1.4.1/src/data/data-out.c:663: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 magnitude[64]; data/pspp-1.4.1/src/data/data-out.c:816:5: [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 (cp, "%+04ld", exponent); data/pspp-1.4.1/src/data/data-out.c:978: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 (output, r->string, base_width); data/pspp-1.4.1/src/data/data-out.c:1014: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 (output, r->string, base_width); data/pspp-1.4.1/src/data/data-out.c:1122: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 decimal[64]; data/pspp-1.4.1/src/data/datasheet.c:448: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_to_data (&aux->src_value, aux->src_width), data/pspp-1.4.1/src/data/datasheet.c:454: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 ((uint8_t *) dst + aux->dst_ofs, data/pspp-1.4.1/src/data/dictionary.c:392: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 (d->split, split, cnt * sizeof *d->split); data/pspp-1.4.1/src/data/dictionary.c:1133: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. char suffix[INT_BUFSIZE_BOUND (i) + 1]; data/pspp-1.4.1/src/data/dictionary.c:1164: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 name[3 + INT_STRLEN_BOUND (number) + 1]; data/pspp-1.4.1/src/data/dictionary.c:1166: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 (name, "VAR%03lu", number); data/pspp-1.4.1/src/data/dictionary.c:1825: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 name[64]; data/pspp-1.4.1/src/data/dictionary.c:1830: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 (name, "$internal%d", counter); data/pspp-1.4.1/src/data/encrypted-file.c:53:36: [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 bool decode_password (const char *input, char output[11]); data/pspp-1.4.1/src/data/encrypted-file.c:53:49: [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 bool decode_password (const char *input, char output[11]); data/pspp-1.4.1/src/data/encrypted-file.c:68: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[HEADER_SIZE + sizeof f->ciphertext]; data/pspp-1.4.1/src/data/encrypted-file.c:102: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 (f->ciphertext, data + HEADER_SIZE, f->n); data/pspp-1.4.1/src/data/encrypted-file.c:122: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 decoded_password[11]; data/pspp-1.4.1/src/data/encrypted-file.c:146: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 (buf + ofs, &f->plaintext[f->ofs], chunk); data/pspp-1.4.1/src/data/encrypted-file.c:259:24: [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. decode_password (const char *input, char output[11]) data/pspp-1.4.1/src/data/encrypted-file.c:259: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. decode_password (const char *input, char output[11]) data/pspp-1.4.1/src/data/encrypted-file.c:283: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 plaintext[16]; data/pspp-1.4.1/src/data/encrypted-file.c:328: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 padded_password[32]; data/pspp-1.4.1/src/data/encrypted-file.c:340: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 (padded_password, password, password_len); data/pspp-1.4.1/src/data/encrypted-file.c:347: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(key, cmac, 16); data/pspp-1.4.1/src/data/encrypted-file.c:348: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(key + 16, cmac, 16); data/pspp-1.4.1/src/data/file-name.c:180: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 (s, fn, strlen (fn) - 1); data/pspp-1.4.1/src/data/file-name.c:202: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). return fopen (fn, mode); data/pspp-1.4.1/src/data/format.c:333: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/format.c:423: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/format.c:443: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/format.c:468: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 * data/pspp-1.4.1/src/data/format.c:469:42: [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. fmt_to_string (const struct fmt_spec *f, char buffer[FMT_STRING_LEN_MAX + 1]) data/pspp-1.4.1/src/data/format.c:575: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 name[9]; data/pspp-1.4.1/src/data/format.h:98: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 *fmt_to_string (const struct fmt_spec *, char s[FMT_STRING_LEN_MAX + 1]); data/pspp-1.4.1/src/data/format.h:98: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 *fmt_to_string (const struct fmt_spec *, char s[FMT_STRING_LEN_MAX + 1]); data/pspp-1.4.1/src/data/gnumeric-reader.c:475: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 [FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/identifier2.c:76: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 ucname[16]; data/pspp-1.4.1/src/data/make-file.c:165:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define Topen open data/pspp-1.4.1/src/data/mdd-writer.c:297: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 s[DBL_BUFSIZE_BOUND]; data/pspp-1.4.1/src/data/ods-reader.c:502: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. char buf [FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/pc+-file-reader.c:71:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char product[63]; /* "PCSPSS SYSTEM FILE..." */ data/pspp-1.4.1/src/data/pc+-file-reader.c:73: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 creation_date[9]; /* "[m]m/dd/yy". */ data/pspp-1.4.1/src/data/pc+-file-reader.c:74: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 creation_time[9]; /* "[H]H:MM:SS". */ data/pspp-1.4.1/src/data/pc+-file-reader.c:75: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 file_label[65]; /* File label. */ data/pspp-1.4.1/src/data/pc+-file-reader.c:83: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 name[9]; data/pspp-1.4.1/src/data/pc+-file-reader.c:513:16: [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 signature[4] = "SPSS"; data/pspp-1.4.1/src/data/pc+-file-reader.c:514: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[sizeof signature]; data/pspp-1.4.1/src/data/pc+-file-reader.c:903: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 (value.s, rec->val_labs[i].value, rec->width); data/pspp-1.4.1/src/data/pc+-file-reader.c:1046: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 (s + whole, bounce, partial); data/pspp-1.4.1/src/data/pc+-file-reader.c:1286: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 buffer[1024]; data/pspp-1.4.1/src/data/por-file-reader.c:56: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 portable_to_local[256] = data/pspp-1.4.1/src/data/por-file-reader.c:501: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 string[256]; data/pspp-1.4.1/src/data/por-file-reader.c:648: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. char fmt_string[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/data/por-file-reader.c:698: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 name[256]; data/pspp-1.4.1/src/data/por-file-reader.c:776: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. char label[256]; data/pspp-1.4.1/src/data/por-file-reader.c:825: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 name[256]; data/pspp-1.4.1/src/data/por-file-reader.c:842: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 label[256]; data/pspp-1.4.1/src/data/por-file-reader.c:866: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 line[256]; data/pspp-1.4.1/src/data/por-file-reader.c:919:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char header[464]; data/pspp-1.4.1/src/data/por-file-reader.c:920: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 trans[256]; data/pspp-1.4.1/src/data/por-file-writer.c:214: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 buffer[64]; data/pspp-1.4.1/src/data/por-file-writer.c:225: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 buffer[64]; data/pspp-1.4.1/src/data/por-file-writer.c:244:16: [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 spss2ascii[256] = data/pspp-1.4.1/src/data/por-file-writer.c:496: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[80]; data/pspp-1.4.1/src/data/por-file-writer.c:746: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 buffer[DBL_DIG + 16]; data/pspp-1.4.1/src/data/por-file-writer.c:903:3: [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 (output, "*."); data/pspp-1.4.1/src/data/psql-reader.c:353:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). n_cases = atol (PQgetvalue (qres, 0, 0)); data/pspp-1.4.1/src/data/psql-reader.c:843: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 (val->s, vptr, MIN (length, var_width)); data/pspp-1.4.1/src/data/short-names.c:56: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 suffix[SHORT_NAME_LEN + 1]; data/pspp-1.4.1/src/data/spreadsheet-reader.c:223: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 startcol[5]; data/pspp-1.4.1/src/data/spreadsheet-reader.c:224: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 stopcol [5]; data/pspp-1.4.1/src/data/spreadsheet-reader.h:52:35: [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). #define _xmlchar_to_int(X) ((X) ? atoi (CHAR_CAST (const char *, (X))) : -1) data/pspp-1.4.1/src/data/sys-file-reader.c:98: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 magic[5]; /* First 4 bytes of file, then null. */ data/pspp-1.4.1/src/data/sys-file-reader.c:104: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 creation_date[10]; /* "dd mmm yy". */ data/pspp-1.4.1/src/data/sys-file-reader.c:105: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 creation_time[9]; /* "hh:mm:ss". */ data/pspp-1.4.1/src/data/sys-file-reader.c:106: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 eye_catcher[61]; /* Eye-catcher string, then product name. */ data/pspp-1.4.1/src/data/sys-file-reader.c:107: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 file_label[65]; /* File label. */ data/pspp-1.4.1/src/data/sys-file-reader.c:114: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 name[9]; data/pspp-1.4.1/src/data/sys-file-reader.c:705: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. char line[81]; data/pspp-1.4.1/src/data/sys-file-reader.c:707: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 (line, r->document->documents + i * 80, 80); data/pspp-1.4.1/src/data/sys-file-reader.c:920: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 magic[5]; data/pspp-1.4.1/src/data/sys-file-reader.c:2241: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 (value.s, label->value, width); data/pspp-1.4.1/src/data/sys-file-reader.c:2431:23: [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 value = atoi (attribute_get_value (attr, 0)); data/pspp-1.4.1/src/data/sys-file-reader.c:2569: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 (value.s, (const uint8_t *) record->data + ofs, width); data/pspp-1.4.1/src/data/sys-file-reader.c:2827: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 (s + whole, bounce, partial); data/pspp-1.4.1/src/data/sys-file-reader.c:3399: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 buffer[1024]; data/pspp-1.4.1/src/data/sys-file-reader.c:3722: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 (buf, &r->zout_buf[r->zout_pos], n); data/pspp-1.4.1/src/data/sys-file-writer.c:367: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 prod_name[61]; data/pspp-1.4.1/src/data/sys-file-writer.c:418:20: [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 *const month_name[12] = data/pspp-1.4.1/src/data/sys-file-writer.c:1542: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 (w->cbuf[w->n_elements], data, size); data/pspp-1.4.1/src/data/sys-file-writer.c:1569:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (output, &native, sizeof native); data/pspp-1.4.1/src/data/value.c:248: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_string, value->s, old_width); data/pspp-1.4.1/src/data/value.h:140: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 (dst->s, src->s, width); data/pspp-1.4.1/src/language/control/repeat.c:403: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. char s[DBL_BUFSIZE_BOUND]; data/pspp-1.4.1/src/language/data-io/data-list.c:446: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. char type[FMT_TYPE_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/data-parser.c:703: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/data-parser.c:738: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/data-writer.c:55: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 cr[MAX_UNIT]; /* \r in encoding, 'unit' bytes long. */ data/pspp-1.4.1/src/language/data-io/data-writer.c:56: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 lf[MAX_UNIT]; /* \n in encoding, 'unit' bytes long. */ data/pspp-1.4.1/src/language/data-io/data-writer.c:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char spaces[32]; /* 32 bytes worth of ' ' in encoding. */ data/pspp-1.4.1/src/language/data-io/data-writer.c:99: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 (w->cr, ei.cr, sizeof w->cr); data/pspp-1.4.1/src/language/data-io/data-writer.c:100: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 (w->lf, ei.lf, sizeof w->lf); data/pspp-1.4.1/src/language/data-io/data-writer.c:102: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 (&w->spaces[ofs], ei.space, ei.unit); data/pspp-1.4.1/src/language/data-io/get-data.c:626: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. char fmt_type_name[FMT_TYPE_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/matrix-data.c:236: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 (v->s, "N ", ROWTYPE_WIDTH); data/pspp-1.4.1/src/language/data-io/placement-parser.c:219:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[FMT_TYPE_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/placement-parser.c:261: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 (&(*formats)[formats_used], new_formats, data/pspp-1.4.1/src/language/data-io/print.c:456: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 fmt_string[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/data-io/print.c:633: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 (data, s, length); data/pspp-1.4.1/src/language/data-io/trim.c:136:7: [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). if (atoi (n_start) > atoi (n_stop)) data/pspp-1.4.1/src/language/data-io/trim.c:136:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi (n_start) > atoi (n_stop)) data/pspp-1.4.1/src/language/data-io/trim.c:141:12: [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). *first = atoi (n_start); data/pspp-1.4.1/src/language/data-io/trim.c:142:11: [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). *last = atoi (n_stop); data/pspp-1.4.1/src/language/dictionary/modify-variables.c:436: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 (drop_vars, vm->drop_vars, n_drop * sizeof *drop_vars); data/pspp-1.4.1/src/language/dictionary/mrsets.c:173: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 (mrset->counted.s, s, width); data/pspp-1.4.1/src/language/dictionary/numeric.c:66:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/dictionary/numeric.c:137: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. char str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:519: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. char s[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:529: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. char s[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:755: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. char fmt_string[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/expressions/evaluate.c:285: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 str[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/expressions/helpers.c:455: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 (s.string, old, length); data/pspp-1.4.1/src/language/expressions/helpers.c:712: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 (&result.string[result.length], replacement.string, copy_len); data/pspp-1.4.1/src/language/expressions/parse.c:782:20: [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 *months[12] = data/pspp-1.4.1/src/language/expressions/parse.c:790: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 temp_buf[10]; data/pspp-1.4.1/src/language/expressions/parse.c:1058:10: [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). return atoi (p + 1); data/pspp-1.4.1/src/language/expressions/parse.c:1437: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 (n->composite.args, args, sizeof *n->composite.args * arg_cnt); data/pspp-1.4.1/src/language/lexer/format-parser.c:36:36: [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 type[FMT_TYPE_LEN_MAX + 1], data/pspp-1.4.1/src/language/lexer/format-parser.c:92:34: [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 type[FMT_TYPE_LEN_MAX + 1], data/pspp-1.4.1/src/language/lexer/format-parser.c:109: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 type[FMT_TYPE_LEN_MAX + 1]; data/pspp-1.4.1/src/language/lexer/lexer.c:278: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. const char *options[MAX_OPTIONS + 1]; data/pspp-1.4.1/src/language/lexer/lexer.c:1257: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 (out, in.string, out_len); data/pspp-1.4.1/src/language/lexer/lexer.c:1278: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. char syntax_cstr[64]; data/pspp-1.4.1/src/language/lexer/lexer.c:1507: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 c_name[16]; data/pspp-1.4.1/src/language/lexer/lexer.c:1727: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 (buf, r->s.string + r->offset, chunk); data/pspp-1.4.1/src/language/lexer/q2c.c:177: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 (t, s, size); data/pspp-1.4.1/src/language/lexer/q2c.c:186: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 b[8][256]; data/pspp-1.4.1/src/language/lexer/q2c.c:1237: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 s[256]; data/pspp-1.4.1/src/language/lexer/q2c.c:1243:2: [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 (s, "-1"); data/pspp-1.4.1/src/language/lexer/q2c.c:1380:5: [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 (s, "(lex_match_id (lexer, \"ON\") || lex_match_id (lexer, \"YES\") " data/pspp-1.4.1/src/language/lexer/q2c.c:1383:5: [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 (s, "(lex_match_id (lexer, \"OFF\") || lex_match_id (lexer, \"NO\") " data/pspp-1.4.1/src/language/lexer/q2c.c:1962: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 directive[16]; data/pspp-1.4.1/src/language/lexer/q2c.c:1979: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 (directive, sp, ep - sp); data/pspp-1.4.1/src/language/lexer/q2c.c:1992: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). in = fopen (ifn, "r"); data/pspp-1.4.1/src/language/lexer/q2c.c:1997: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). out = fopen (ofn, "w"); data/pspp-1.4.1/src/language/lexer/scan.c:88: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 (ss_end (token->string), s.string, pos + 1); data/pspp-1.4.1/src/language/lexer/scan.c:93: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 (ss_end (token->string), s.string, ss_length (s)); data/pspp-1.4.1/src/language/lexer/scan.c:370: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[128]; data/pspp-1.4.1/src/language/lexer/scan.c:377: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 (buf, s.string, s.length); data/pspp-1.4.1/src/language/lexer/segment.c:645: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 (id, input + ofs, retval); data/pspp-1.4.1/src/language/lexer/segment.c:753: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. char id[16]; data/pspp-1.4.1/src/language/lexer/segment.c:766: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. char id[16]; data/pspp-1.4.1/src/language/lexer/segment.c:779: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. char id[16]; data/pspp-1.4.1/src/language/lexer/segment.c:1048:16: [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 **cindex[UCHAR_MAX + 1]; data/pspp-1.4.1/src/language/lexer/segment.c:1320: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 id[16]; data/pspp-1.4.1/src/language/lexer/token.c:54: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 buffer[DBL_BUFSIZE_BOUND]; data/pspp-1.4.1/src/language/lexer/token.c:166: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 s[DBL_BUFSIZE_BOUND]; data/pspp-1.4.1/src/language/stats/aggregate.c:814: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 (iter->string, v->s, src_width); data/pspp-1.4.1/src/language/stats/aggregate.c:823: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 (iter->string, v->s, src_width); data/pspp-1.4.1/src/language/stats/aggregate.c:894: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 (iter->string, v->s, src_width); data/pspp-1.4.1/src/language/stats/aggregate.c:903: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 (iter->string, v->s, src_width); data/pspp-1.4.1/src/language/stats/aggregate.c:1021: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 (v->s, i->string, width); data/pspp-1.4.1/src/language/stats/aggregate.c:1060: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 (v->s, i->string, width); data/pspp-1.4.1/src/language/stats/descriptives.c:547: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 name[16]; data/pspp-1.4.1/src/language/stats/descriptives.c:552:2: [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 (name, "ZSC%03d", *z_cnt); data/pspp-1.4.1/src/language/stats/descriptives.c:554:2: [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 (name, "STDZ%02d", *z_cnt - 99); data/pspp-1.4.1/src/language/stats/descriptives.c:556:2: [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 (name, "ZZZZ%02d", *z_cnt - 108); data/pspp-1.4.1/src/language/stats/descriptives.c:558:2: [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 (name, "ZQZQ%02d", *z_cnt - 117); data/pspp-1.4.1/src/language/stats/flip.c:220: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 s[3 + INT_STRLEN_BOUND (i) + 1]; data/pspp-1.4.1/src/language/stats/flip.c:221:9: [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 (s, "VAR%03zu", i); data/pspp-1.4.1/src/language/stats/flip.c:288: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. char n[ID_MAX_LEN + 1]; data/pspp-1.4.1/src/language/stats/flip.c:291: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 (&n[ofs], "%d", i); data/pspp-1.4.1/src/language/stats/frequencies.c:139: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 *st_name[FRQ_ST_count] = data/pspp-1.4.1/src/language/stats/rank.c:104: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 * const function_name[n_RANK_FUNCS] = { data/pspp-1.4.1/src/language/stats/rank.c:174: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 name[128]; data/pspp-1.4.1/src/language/stats/rank.c:190: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 (name, "%.3s%03d", function_name[f], i); data/pspp-1.4.1/src/language/stats/rank.c:199: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 (name, "RNK%.2s%02d", function_name[f], i); data/pspp-1.4.1/src/language/stats/regression.c:450: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 (save_trans_data->ws, &workspace, sizeof (workspace)); data/pspp-1.4.1/src/language/tests/float-format.c:45: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 name[4]; data/pspp-1.4.1/src/language/tests/float-format.c:134: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 (fp->data, &number, sizeof number); data/pspp-1.4.1/src/language/tests/float-format.c:179: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 (fp->data, s.string, s.length); data/pspp-1.4.1/src/language/tests/float-format.c:208: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 (dst, "%02x", *src++); data/pspp-1.4.1/src/language/tests/float-format.c:232: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 original[FP_MAX_SIZE * 2 + 1]; data/pspp-1.4.1/src/language/tests/float-format.c:233: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 expected[FP_MAX_SIZE * 2 + 1]; data/pspp-1.4.1/src/language/tests/float-format.c:234: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 actual[FP_MAX_SIZE * 2 + 1]; data/pspp-1.4.1/src/language/tests/float-format.c:255: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 tmp1[FP_MAX_SIZE], tmp2[FP_MAX_SIZE]; data/pspp-1.4.1/src/language/tests/format-guesser-test.c:33: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 format_string[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/language/utilities/host.c:99:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int dev_null_fd = open ("/dev/null", O_RDONLY); data/pspp-1.4.1/src/language/utilities/output.c:88: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 type[FMT_TYPE_LEN_MAX + 1]; data/pspp-1.4.1/src/language/xforms/recode.c:455: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 (out->value.s, string, length); data/pspp-1.4.1/src/language/xforms/recode.c:724: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 (dst, out->value.s, var_get_width (dst_var)); data/pspp-1.4.1/src/libpspp/array.c:206: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 (result, first, size); data/pspp-1.4.1/src/libpspp/array.c:317: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 (output, input, size); data/pspp-1.4.1/src/libpspp/array.c:403: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 (element, old, size); data/pspp-1.4.1/src/libpspp/array.c:408: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, element, size); data/pspp-1.4.1/src/libpspp/array.c:433: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 (range, old, size * n); data/pspp-1.4.1/src/libpspp/array.c:438: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, range, size * n); data/pspp-1.4.1/src/libpspp/array.c:496: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, first, size); data/pspp-1.4.1/src/libpspp/array.c:845: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 (result, first1, size); data/pspp-1.4.1/src/libpspp/array.c:861: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, first1, size); data/pspp-1.4.1/src/libpspp/cmac-aes256.c:46: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. const char zeros[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; data/pspp-1.4.1/src/libpspp/deque.c:69: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_data + (idx & (new_capacity - 1)) * elem_size, data/pspp-1.4.1/src/libpspp/float-format.c:179: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 tmp[8]; data/pspp-1.4.1/src/libpspp/float-format.c:300: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 (fp, bits, sizeof *fp); data/pspp-1.4.1/src/libpspp/float-format.c:536: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 (number, fp, sizeof *fp); data/pspp-1.4.1/src/libpspp/float-format.c:881: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 buffer[32]; data/pspp-1.4.1/src/libpspp/float-format.c:901:9: [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 (s, "p%d", fp->exponent); data/pspp-1.4.1/src/libpspp/float-format.c:905:7: [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 (s, "Infinity"); data/pspp-1.4.1/src/libpspp/float-format.c:917:7: [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 (buffer, "Missing"); data/pspp-1.4.1/src/libpspp/float-format.c:921:7: [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 (buffer, "Lowest"); data/pspp-1.4.1/src/libpspp/float-format.c:925:7: [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 (buffer, "Highest"); data/pspp-1.4.1/src/libpspp/float-format.c:929:7: [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 (s, "Reserved"); data/pspp-1.4.1/src/libpspp/hash-functions.c:115: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 (tmp, p, 12); data/pspp-1.4.1/src/libpspp/hash-functions.c:127: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 (tmp, p, n); data/pspp-1.4.1/src/libpspp/hash-functions.c:170: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 (tmp, &d, 8); data/pspp-1.4.1/src/libpspp/i18n.c:297: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 (s, a, a_len); data/pspp-1.4.1/src/libpspp/i18n.c:298: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 (s + a_len, b, b_len); data/pspp-1.4.1/src/libpspp/i18n.c:414:23: [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, head, ofs); data/pspp-1.4.1/src/libpspp/i18n.c:415:23: [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 + ofs, tail, tail_len); data/pspp-1.4.1/src/libpspp/i18n.c:573: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 (out->string, text.string, text.length); data/pspp-1.4.1/src/libpspp/i18n.c:776: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 buf[10]; data/pspp-1.4.1/src/libpspp/i18n.c:785: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 * data/pspp-1.4.1/src/libpspp/i18n.c:786:21: [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. uc_name (ucs4_t uc, char buffer[16]) data/pspp-1.4.1/src/libpspp/i18n.c:1011: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 (e->cr, cr.string, e->unit); data/pspp-1.4.1/src/libpspp/i18n.c:1012: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 (e->lf, lf.string, e->unit); data/pspp-1.4.1/src/libpspp/i18n.c:1013: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 (e->space, space.string, e->unit); data/pspp-1.4.1/src/libpspp/i18n.c:1084: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. const char *encodings[16]; data/pspp-1.4.1/src/libpspp/i18n.h:73: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 *uc_name (ucs4_t uc, char buffer[16]); data/pspp-1.4.1/src/libpspp/i18n.h:73:33: [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 *uc_name (ucs4_t uc, char buffer[16]); data/pspp-1.4.1/src/libpspp/i18n.h:136: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 name[41]; data/pspp-1.4.1/src/libpspp/i18n.h:148: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 cr[MAX_UNIT]; /* \r in encoding, 'unit' bytes long. */ data/pspp-1.4.1/src/libpspp/i18n.h:149: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 lf[MAX_UNIT]; /* \n in encoding, 'unit' bytes long. */ data/pspp-1.4.1/src/libpspp/i18n.h:150: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 space[MAX_UNIT]; /* ' ' in encoding, 'unit' bytes long. */ data/pspp-1.4.1/src/libpspp/integer-format.c:42: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 (to, from, cnt); data/pspp-1.4.1/src/libpspp/integer-format.h:56: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 (&x, p, sizeof x); data/pspp-1.4.1/src/libpspp/integer-format.h:65: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 (&x, p, sizeof x); data/pspp-1.4.1/src/libpspp/integer-format.h:74: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 (&x, p, sizeof x); data/pspp-1.4.1/src/libpspp/integer-format.h:82: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 (p, &x, sizeof x); data/pspp-1.4.1/src/libpspp/integer-format.h:89: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 (p, &x, sizeof x); data/pspp-1.4.1/src/libpspp/integer-format.h:96: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 (p, &x, sizeof x); data/pspp-1.4.1/src/libpspp/intern.c:37: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 string[1]; /* Null-terminated string. */ data/pspp-1.4.1/src/libpspp/intern.c:75: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 (is->string, s, length + 1); data/pspp-1.4.1/src/libpspp/intern.c:83: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 (*s)[1] = (char (*)[1]) s_; data/pspp-1.4.1/src/libpspp/intern.c:83:19: [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 (*s)[1] = (char (*)[1]) s_; data/pspp-1.4.1/src/libpspp/line-reader.c:76: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, flags); data/pspp-1.4.1/src/libpspp/model-checker.c:60: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->ops, old->ops, old->length * sizeof *new->ops); data/pspp-1.4.1/src/libpspp/model-checker.c:714:42: [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). mc_options_set_max_depth (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:719:35: [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 requested_hash_bits = atoi (optarg); data/pspp-1.4.1/src/libpspp/model-checker.c:739:32: [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). mc_path_push (&path, atoi (op)); data/pspp-1.4.1/src/libpspp/model-checker.c:748:44: [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). mc_options_set_queue_limit (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:764:37: [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). mc_options_set_seed (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:768:50: [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). mc_options_set_max_unique_states (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:772:43: [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). mc_options_set_max_errors (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:791:42: [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). mc_options_set_verbosity (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/model-checker.c:795:50: [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). mc_options_set_failure_verbosity (options, atoi (optarg)); data/pspp-1.4.1/src/libpspp/pool.c:355: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 (block, buffer, size); data/pspp-1.4.1/src/libpspp/pool.c:365: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 (block, buffer, size); data/pspp-1.4.1/src/libpspp/pool.c:387: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_string, string, size); data/pspp-1.4.1/src/libpspp/pool.c:753:7: [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 (file_name, mode); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:247: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 (data, *p + start, n); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:258: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 (data, sx->default_row + start, n); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:307: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 (*p + start, data, n); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:328: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 (sx->default_row + start, data, n); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:338: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 (*p + start, data, n); data/pspp-1.4.1/src/libpspp/sparse-xarray.c:515: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 (tmp_dst_row, dx->default_row, dx->n_bytes); data/pspp-1.4.1/src/libpspp/start-date.c:26:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. get_cur_date (char cur_date[12]) data/pspp-1.4.1/src/libpspp/start-date.c:38:3: [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 (cur_date, "?? ??? 2???"); data/pspp-1.4.1/src/libpspp/start-date.c:46: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 start_date[12]; data/pspp-1.4.1/src/libpspp/str.c:127: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 (dst, src, dst_size); data/pspp-1.4.1/src/libpspp/str.c:130: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 (dst, src, src_len); data/pspp-1.4.1/src/libpspp/str.c:143: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 (dst, src, dst_size); data/pspp-1.4.1/src/libpspp/str.c:148: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 (dst + pad_cnt, src, src_len); data/pspp-1.4.1/src/libpspp/str.c:198: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 (dst, src, src_len); data/pspp-1.4.1/src/libpspp/str.c:202: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 (dst, src, dst_size - 1); data/pspp-1.4.1/src/libpspp/str.c:215: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 (dst, src, src_len + 1); data/pspp-1.4.1/src/libpspp/str.c:218: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 (dst, src, dst_size - 1); data/pspp-1.4.1/src/libpspp/str.c:234: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 (dst, src, dst_len); data/pspp-1.4.1/src/libpspp/str.c:376: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->string, old.string, old.length); data/pspp-1.4.1/src/libpspp/str.c:618: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 tmp[64]; data/pspp-1.4.1/src/libpspp/str.c:627: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 (tmp, ss_data (*ss), length); data/pspp-1.4.1/src/libpspp/str.c:810: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 (s, ss.string, ss.length); data/pspp-1.4.1/src/libpspp/str.c:911: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 (st->ss.string, ss.string, ss.length); data/pspp-1.4.1/src/libpspp/str.c:1484: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 (ds_put_uninit (st, ss_length (ss)), ss_data (ss), ss_length (ss)); data/pspp-1.4.1/src/libpspp/str.c:1587: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[128]; data/pspp-1.4.1/src/libpspp/u8-istream.c:60: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 outbuf[4]; data/pspp-1.4.1/src/libpspp/u8-istream.c:80: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, flags); data/pspp-1.4.1/src/libpspp/u8-istream.c:240: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 (buffer, is->head, n_ascii); data/pspp-1.4.1/src/libpspp/u8-istream.c:326: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 (*outbufp, *inbufp, ofs); data/pspp-1.4.1/src/libpspp/u8-istream.c:353: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 (buffer, is->outbuf, n); data/pspp-1.4.1/src/libpspp/u8-line.c:204: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 (u8_line_reserve (line, x0, x1, n), s, n); data/pspp-1.4.1/src/libpspp/zip-reader.c:326:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen (file_name, "rb"); data/pspp-1.4.1/src/libpspp/zip-reader.c:446:14: [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 *fp = fopen (zr->file_name, "rb"); data/pspp-1.4.1/src/libpspp/zip-reader.c:577:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char seq[4]; data/pspp-1.4.1/src/libpspp/zip-reader.c:648:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ucomp[UCOMPSIZE]; data/pspp-1.4.1/src/libpspp/zip-writer.c:94:10: [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 = fopen (file_name, "wb"); data/pspp-1.4.1/src/libpspp/zip-writer.c:145: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[4096]; data/pspp-1.4.1/src/output/ascii.c:355:13: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int dim = atol (option->default_value); data/pspp-1.4.1/src/output/ascii.c:561: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 mbchar[6]; data/pspp-1.4.1/src/output/ascii.c:584: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 (p, mbchar, mblen); data/pspp-1.4.1/src/output/ascii.c:745: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 (ascii_reserve (a, y, x, x + width, n), string, n); data/pspp-1.4.1/src/output/ascii.c:1025:30: [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). terminal_width = atoi (getenv ("COLUMNS")); data/pspp-1.4.1/src/output/driver.c:92: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 value[128]; data/pspp-1.4.1/src/output/html.c:284: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 tag[3] = { 'H', level + '1', '\0' }; data/pspp-1.4.1/src/output/journal.c:163: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). journal.file = fopen (journal_get_file_name (), "a"); data/pspp-1.4.1/src/output/measure.c:122: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 name[3]; data/pspp-1.4.1/src/output/measure.c:248:10: [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 = fopen (file_name, "r"); data/pspp-1.4.1/src/output/odt.c:228: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 buf[30]; data/pspp-1.4.1/src/output/pivot-table.c:1031: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 text[INT_BUFSIZE_BOUND (size_t)]; data/pspp-1.4.1/src/output/pivot-table.c:1168: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 (p, axis_indexes, axis->n_dimensions * sizeof *p); data/pspp-1.4.1/src/output/pivot-table.c:1754:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *tmpl[2]; data/pspp-1.4.1/src/output/pivot-table.h:416: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 *ccs[5]; /* Custom currency. */ data/pspp-1.4.1/src/output/render.c:1825: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 (subpage->join_crossing[b], page->join_crossing[b], data/pspp-1.4.1/src/output/render.c:1994: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 (of->overflow, old->overflow, sizeof of->overflow); data/pspp-1.4.1/src/output/spv/spv-css-parser.c:129:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). font->size = atoi (value); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:963:53: [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). uint32_t u32_format = data->width < 0 ? data->d : atoi (data->s); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:1406:23: [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 index = atoi (layers[i]->value); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:1429:16: [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 *area_names[PIVOT_N_AREAS] = { data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:1450:16: [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 *border_names[PIVOT_N_BORDERS] = { data/pspp-1.4.1/src/output/spv/spv-writer.c:364: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 (put_uninit (b, n), bytes, n); data/pspp-1.4.1/src/output/spv/spv-writer.c:411: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 (put_uninit (b, len), s, len); data/pspp-1.4.1/src/output/spv/spv-writer.c:420: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 (put_uninit (b, len), s, len); data/pspp-1.4.1/src/output/spv/spv.c:380: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 color2[8]; data/pspp-1.4.1/src/output/spv/spv.c:391: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 html_size = size_s ? atoi (size_s) : 0; data/pspp-1.4.1/src/output/spv/spv.c:400:19: [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 size2[INT_BUFSIZE_BOUND (int)]; data/pspp-1.4.1/src/output/spv/spv.c:697: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[4096]; data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:1221:58: [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). connect_action_to_menuitem (G_ACTION_MAP (dw), "open", open, "<Primary>O"); data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:1226:37: [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). gtk_menu_attach (GTK_MENU (menu), open, 0, 1, 1, 2); data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:1551:31: [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). g_signal_connect_swapped (open, "activate", G_CALLBACK (psppire_window_open), de); data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:1552:59: [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). g_action_map_add_action (G_ACTION_MAP (de), G_ACTION (open)); data/pspp-1.4.1/src/ui/gui/psppire-delimited-text.h:69: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. const char *cache_starts[512]; data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-k-independent.c:42: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 *keyword[n_KIDS] = data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-kmeans.c:44:6: [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). atoi (gtk_entry_get_text (GTK_ENTRY (km->entry)))); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-kmeans.c:65:7: [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). if (atoi (gtk_entry_get_text (GTK_ENTRY (fd->entry))) < 2) data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.c:185:3: [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 (act->nts[NT_WILCOXON].syntax, "/WILCOXON"); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.c:186:3: [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 (act->nts[NT_SIGN].syntax, "/SIGN"); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.c:187:3: [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 (act->nts[NT_MCNEMAR].syntax, "/MCNEMAR"); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-two-sample.h:67: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 syntax[16]; data/pspp-1.4.1/src/ui/gui/psppire-dict.c:405: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 tmpname[64]; data/pspp-1.4.1/src/ui/gui/psppire-import-assistant.c:1491: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 format_string[FMT_STRING_LEN_MAX + 1]; data/pspp-1.4.1/src/ui/gui/psppire-keypad.c:154: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 s[6] = {0,0,0,0,0,0}; data/pspp-1.4.1/src/ui/gui/psppire-keypad.c:303: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[5]; data/pspp-1.4.1/src/ui/gui/psppire-lex-reader.c:110: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 (buf, r->part + r->part_ofs, chunk); data/pspp-1.4.1/src/ui/gui/psppire-output-view.c:528: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 dirname[PATH_MAX], *filename; data/pspp-1.4.1/src/ui/gui/psppire-syntax-window.c:841:63: [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). g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (open)); data/pspp-1.4.1/src/ui/gui/psppire-syntax-window.c:843:31: [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). g_signal_connect_swapped (open, data/pspp-1.4.1/src/ui/gui/psppire-val-chooser.c:433:2: [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 en_dash[6] = {0,0,0,0,0,0}; data/pspp-1.4.1/src/ui/gui/psppire-val-chooser.c:448:2: [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 en_dash[6] = {0,0,0,0,0,0}; data/pspp-1.4.1/src/ui/gui/psppire-val-chooser.c:463:2: [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 en_dash[6] = {0,0,0,0,0,0}; data/pspp-1.4.1/src/ui/gui/spreadsheet-test.c:86: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 (ss, val->s, width); data/pspp-1.4.1/src/ui/gui/var-type-dialog.c:404:11: [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 w = atoi (gtk_entry_get_text (GTK_ENTRY (dialog->entry_width))); data/pspp-1.4.1/src/ui/gui/var-type-dialog.c:412:11: [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 d = atoi (gtk_entry_get_text (GTK_ENTRY (dialog->entry_decimals))); data/pspp-1.4.1/src/ui/gui/var-type-dialog.c:430:21: [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). dialog->fmt_l.d = atoi (text); data/pspp-1.4.1/src/ui/gui/var-type-dialog.c:433:21: [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). dialog->fmt_l.w = atoi (text); data/pspp-1.4.1/src/ui/gui/widgets.c:157:12: [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). gint x = atoi (str); data/pspp-1.4.1/src/ui/syntax-gen.c:179: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 s[DBL_BUFSIZE_BOUND]; data/pspp-1.4.1/src/ui/syntax-gen.c:234: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 qualifier[16]; data/pspp-1.4.1/src/ui/syntax-gen.c:255:23: [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). precision = atoi (qualifier); data/pspp-1.4.1/src/ui/syntax-gen.c:286:6: [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 conv[32]; data/pspp-1.4.1/src/ui/terminal/terminal-reader.c:163: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 (buf, r->s.string + r->offset, chunk); data/pspp-1.4.1/src/ui/terminal/terminal-reader.c:277: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. char dummy[1]; data/pspp-1.4.1/tests/data/datasheet-test.c:772:26: [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). params->max_rows = atoi (optarg); data/pspp-1.4.1/tests/data/datasheet-test.c:776:26: [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). params->max_cols = atoi (optarg); data/pspp-1.4.1/tests/data/datasheet-test.c:780:30: [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). params->backing_rows = atoi (optarg); data/pspp-1.4.1/tests/data/datasheet-test.c:790: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). int value = atoi (w); data/pspp-1.4.1/tests/data/datasheet-test.c:812: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). int value = atoi (w); data/pspp-1.4.1/tests/data/sack.c:241: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). tok_integer = atoi (tok_string + 1); data/pspp-1.4.1/tests/data/sack.c:281: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 (buffer_put_uninit (buffer, n), data, n); data/pspp-1.4.1/tests/data/sack.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 (p, output->data + old_size, n); data/pspp-1.4.1/tests/data/sack.c:670:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input = fopen (input_file_name, "r"); data/pspp-1.4.1/tests/libpspp/abt-test.c:91: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/abt-test.c:240: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/abt-test.c:241: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/abt-test.c:242: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/abt-test.c:568: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/bt-test.c:92: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/bt-test.c:223: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/bt-test.c:224: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/bt-test.c:225: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/bt-test.c:469: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/encoding-guesser-test.c:65:21: [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). bufsize = atoi (arg); data/pspp-1.4.1/tests/libpspp/hmap-test.c:159: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/hmap-test.c:275: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/hmap-test.c:276: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/hmap-test.c:277: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/hmap-test.c:571: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/hmapx-test.c:86: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/hmapx-test.c:194: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/hmapx-test.c:195: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/hmapx-test.c:196: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/hmapx-test.c:507: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/i18n-test.c:89:21: [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 max_len = atoi (argv[5]); data/pspp-1.4.1/tests/libpspp/ll-test.c:325: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/ll-test.c:326: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/ll-test.c:327: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/ll-test.c:1288: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 (old_values, new_values, (cnt) * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/ll-test.c:1305: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 (old_values, new_values, (cnt) * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/ll-test.c:1367: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 (old_values, new_values, cnt * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/llx-test.c:340: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/llx-test.c:341: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/llx-test.c:342: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/llx-test.c:1339: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 (old_values, new_values, (cnt) * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/llx-test.c:1356: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 (old_values, new_values, (cnt) * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/llx-test.c:1419: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 (old_values, new_values, cnt * sizeof *old_values); data/pspp-1.4.1/tests/libpspp/range-map-test.c:258: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 (sorted, elements, elem_cnt * sizeof *elements); data/pspp-1.4.1/tests/libpspp/sparse-array-test.c:99: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/sparse-array-test.c:248: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/sparse-array-test.c:249: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/sparse-array-test.c:250: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:179:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[MAX_COLS]; data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:212:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[MAX_COLS]; data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:340:21: [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 row_string[MAX_COLS + 1]; data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:518:27: [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). params->n_columns = atoi (optarg); data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:522:26: [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). params->max_rows = atoi (optarg); data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:526:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). params->max_memory_rows = atoi (optarg); data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:530:26: [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). params->n_values = atoi (optarg); data/pspp-1.4.1/tests/libpspp/sparse-xarray-test.c:534:27: [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). params->n_xarrays = atoi (optarg); data/pspp-1.4.1/tests/libpspp/str-test.c:35: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 string[8]; data/pspp-1.4.1/tests/libpspp/string-map-test.c:101: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/string-map-test.c:132: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 *string_table[MAX_IDX]; data/pspp-1.4.1/tests/libpspp/string-map-test.c:144: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 (*s, "%d", idx); data/pspp-1.4.1/tests/libpspp/string-map-test.c:255: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/string-map-test.c:256: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/string-map-test.c:257: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/string-map-test.c:462: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/string-set-test.c:97: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/string-set-test.c:121: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 *string_table[MAX_VALUE]; data/pspp-1.4.1/tests/libpspp/string-set-test.c:133: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 (*s, "%d", value); data/pspp-1.4.1/tests/libpspp/string-set-test.c:224: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/string-set-test.c:225: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/string-set-test.c:226: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/string-set-test.c:413: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:105: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:136: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 *string_table[MAX_IDX]; data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:259: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:260: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:261: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:310: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 copy[16]; data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:486: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:100: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 (q, p, n); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:124: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 *string_table[MAX_VALUE]; data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:227: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 (tmp, array + j * size, size); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:228: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 (array + j * size, array + i * size, size); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:229: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 (array + i * size, tmp, size); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:264: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 copy[16]; data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:452: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 (deletions, insertions, sizeof *insertions * cnt); data/pspp-1.4.1/tests/libpspp/u8-istream-test.c:63:27: [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). outbufsize = argc > 4 ? atoi (argv[4]) : 4096; data/pspp-1.4.1/tests/libpspp/zip-test.c:57:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (argv[i], "rb"); data/pspp-1.4.1/tests/libpspp/zip-test.c:66: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[BUFSIZE]; data/pspp-1.4.1/tests/libpspp/zip-test.c:79:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen (argv[i], "wb"); data/pspp-1.4.1/tests/output/render-test.c:88:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). input = fopen (input_file_name, "r"); data/pspp-1.4.1/tests/output/render-test.c:271:19: [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). width = atoi (optarg); data/pspp-1.4.1/tests/output/render-test.c:275:20: [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). length = atoi (optarg); data/pspp-1.4.1/tests/output/render-test.c:279:23: [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). min_break = atoi (optarg); data/pspp-1.4.1/tests/output/render-test.c:366: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 buffer[1024]; data/pspp-1.4.1/tests/output/render-test.c:478:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char marker[2] = { 'a' + n_footnotes, '\0' }; data/pspp-1.4.1/tests/output/render-test.c:493: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 buffer[1024]; data/pspp-1.4.1/tests/output/render-test.c:498: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 text[sizeof buffer]; data/pspp-1.4.1/utilities/pspp-convert.c:203:20: [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). length = atoi (optarg); data/pspp-1.4.1/utilities/pspp-convert.c:407:27: [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). password_file = fopen (password_list, "r"); data/pspp-1.4.1/utilities/pspp-dump-sav.c:159:32: [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). max_cases = optarg ? atoi (optarg) : INT_MAX; data/pspp-1.4.1/utilities/pspp-dump-sav.c:185: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). r.file = fopen (r.file_name, "rb"); data/pspp-1.4.1/utilities/pspp-dump-sav.c:250: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 rec_type[5]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:251: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 eye_catcher[61]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:258: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 creation_date[10]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:259: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 creation_time[9]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:260: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 file_label[65]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:403: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 name[9]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:494:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[9]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:504:44: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. print_untyped_value (struct sfm_reader *r, char raw_value[8]) data/pspp-1.4.1/utilities/pspp-dump-sav.c:531: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 raw_value[8]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:534: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 label[256]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:580: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 line[81]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:934:34: [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). printf ("\t%s => %d\n", var, atoi (length_s)); data/pspp-1.4.1/utilities/pspp-dump-sav.c:1036: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 var_name[ID_MAX_LEN + 1]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:1097: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 var_name[ID_MAX_LEN + 1]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:1237: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. char raw_value[8]; data/pspp-1.4.1/utilities/pspp-dump-sav.c:1670: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 buffer[1024]; data/pspp-1.4.1/utilities/pspp-output.c:848:43: [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). : atoi (token)); data/pspp-1.4.1/gl/basename-lgpl.c:59:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (len = strlen (name); 1 < len && ISSLASH (name[len - 1]); len--) data/pspp-1.4.1/gl/canonicalize-lgpl.c:322: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). len = strlen (end); data/pspp-1.4.1/gl/clean-temp.c:948: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 mode_len = strlen (mode); data/pspp-1.4.1/gl/error.c:211: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 (message) + 1; data/pspp-1.4.1/gl/fopen.c:137: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 len = strlen (p); data/pspp-1.4.1/gl/fopen.c:166: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 (filename); data/pspp-1.4.1/gl/getdelim.c:39:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/pspp-1.4.1/gl/getdelim.c:45:41: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_maybe_unlocked(fp) getc(fp) data/pspp-1.4.1/gl/getopt.c:214: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). && namelen == strlen (p->name)) data/pspp-1.4.1/gl/getopt.c:301:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d->__nextchar += strlen (d->__nextchar); data/pspp-1.4.1/gl/getprogname.c:121:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/pspp-1.4.1/gl/getprogname.c:135: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). if (strlen (p) > PST_UCOMMLEN - 1 data/pspp-1.4.1/gl/getprogname.c:157: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). if (strlen (ucomm) < PST_UCOMMLEN - 1) data/pspp-1.4.1/gl/getprogname.c:171: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). if (strlen (p) > PST_UCOMMLEN - 1 data/pspp-1.4.1/gl/getrandom.c:185:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read (fd, buffer, length); data/pspp-1.4.1/gl/gettext.h:223: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/pspp-1.4.1/gl/gettext.h:224: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/pspp-1.4.1/gl/gettext.h:271: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/pspp-1.4.1/gl/gettext.h:272: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/pspp-1.4.1/gl/localcharset.c:928: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). if (pdot && 2 + strlen (pdot + 1) + 1 <= sizeof (buf)) data/pspp-1.4.1/gl/localename.c:1412: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/pspp-1.4.1/gl/localename.c:2582:7: [1] (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). Risk is low because the source is a constant character. strcat (locval, "_"); data/pspp-1.4.1/gl/localename.c:2584: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). locval + strlen (locval), LOCALE_NAME_MAX_LENGTH)) data/pspp-1.4.1/gl/localename.c:2586: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). size_t locval_len = strlen (locval); data/pspp-1.4.1/gl/localename.c:2622:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (lname, locale_name, sizeof (lname) - 1); data/pspp-1.4.1/gl/localename.c:2693: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/pspp-1.4.1/gl/lstat.c:84:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/') data/pspp-1.4.1/gl/mkdir.c:55:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dir); data/pspp-1.4.1/gl/nl_langinfo.c:91: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). codesetlen = strlen (codeset); data/pspp-1.4.1/gl/nstrftime.c:92: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). # define STRLEN(s) strlen (s) data/pspp-1.4.1/gl/nstrftime.c:612:32: [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). format_end = f + strlen (f) + 1; data/pspp-1.4.1/gl/nstrftime.c:624: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). len += strlen (f + len); data/pspp-1.4.1/gl/nstrftime.c:903:32: [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 (era->era_name); data/pspp-1.4.1/gl/nstrftime.c:1381: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). cpy (strlen (zone), zone); data/pspp-1.4.1/gl/open.c:117: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 (filename); data/pspp-1.4.1/gl/open.c:184: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 (filename); data/pspp-1.4.1/gl/progreloc.c:125:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t result = read (fd, buf, count); data/pspp-1.4.1/gl/progreloc.c:387: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). concat_name = (char *) xmalloc (p_len + strlen (argv0) + 2); data/pspp-1.4.1/gl/progreloc.c:455: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 argv0_len = strlen (argv0); data/pspp-1.4.1/gl/read.c:44:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/pspp-1.4.1/gl/read.c:54:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = read (fd, buf, count); data/pspp-1.4.1/gl/read.c:66:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read_nothrow read data/pspp-1.4.1/gl/readlink.c:57:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/pspp-1.4.1/gl/regcomp.c:491: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). ret = re_compile_internal (preg, pattern, strlen (pattern), syntax); data/pspp-1.4.1/gl/regcomp.c:535: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). msg_size = strlen (msg) + 1; /* Includes the null. */ data/pspp-1.4.1/gl/regcomp.c:703: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). ret = re_compile_internal (&re_comp_buf, s, strlen (s), re_syntax_options); data/pspp-1.4.1/gl/regcomp.c:771:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dfa->re_str, pattern, length + 1); data/pspp-1.4.1/gl/regcomp.c:2715:8: [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 ((char *) start_elem->opr.name) > 1) data/pspp-1.4.1/gl/regcomp.c:2717: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 ((char *) end_elem->opr.name) > 1))) data/pspp-1.4.1/gl/regcomp.c:2825: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 name_len = strlen ((const char *) name); data/pspp-1.4.1/gl/regcomp.c:2906: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 sym_name_len = strlen ((char *) br_elem->opr.name); data/pspp-1.4.1/gl/regcomp.c:3041: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 name_len = strlen ((const char *) name); data/pspp-1.4.1/gl/regcomp.c:3551: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). if (__glibc_unlikely (strlen ((const char *) name) != 1)) data/pspp-1.4.1/gl/regexec.c:210: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). length = strlen (string); data/pspp-1.4.1/gl/relocatable.c:141: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/pspp-1.4.1/gl/relocatable.c:142: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/pspp-1.4.1/gl/relocatable.c:209: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/pspp-1.4.1/gl/relocatable.c:213: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/pspp-1.4.1/gl/relocatable.c:218: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/pspp-1.4.1/gl/relocatable.c:241: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/pspp-1.4.1/gl/relocatable.c:242: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/pspp-1.4.1/gl/relocatable.c:419: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/pspp-1.4.1/gl/relocatable.c:438: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/pspp-1.4.1/gl/relocatable.c:518: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/pspp-1.4.1/gl/relocatable.c:533: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/pspp-1.4.1/gl/relocatable.c:564: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). char *result = (char *) xmalloc (2 + strlen (pathname) + 1); data/pspp-1.4.1/gl/relocwrapper.c:79: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 filename_len = strlen (filename); data/pspp-1.4.1/gl/relocwrapper.c:157: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). total += strlen (libdirs[i]) + 1; data/pspp-1.4.1/gl/relocwrapper.c:158: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). total += strlen (old_value) + 1; data/pspp-1.4.1/gl/relocwrapper.c:169: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 (libdirs[i]); data/pspp-1.4.1/gl/rename.c:53: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 src_len = strlen (src); data/pspp-1.4.1/gl/rename.c:54: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 dst_len = strlen (dst); data/pspp-1.4.1/gl/rename.c:152: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). src_len = strlen (src_temp); data/pspp-1.4.1/gl/rename.c:286: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 src_len = strlen (src); data/pspp-1.4.1/gl/rename.c:287: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 dst_len = strlen (dst); data/pspp-1.4.1/gl/rename.c:452: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). src_len = strlen (src_temp); data/pspp-1.4.1/gl/rijndael-api-fst.c:106:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (key->keyMaterial, keyMaterial, keyLen / 4); data/pspp-1.4.1/gl/rmdir.c:37:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (dir); data/pspp-1.4.1/gl/safe-read.c:47:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define rw read data/pspp-1.4.1/gl/select.c:135:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). BOOL read, write, except; data/pspp-1.4.1/gl/select.c:242:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read && (rbits->in[fd / CHAR_BIT] & (1 << (fd & (CHAR_BIT - 1))))) data/pspp-1.4.1/gl/setenv.c:118: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). const size_t namelen = strlen (name); data/pspp-1.4.1/gl/setenv.c:119:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t vallen = value != NULL ? strlen (value) + 1 : 0; data/pspp-1.4.1/gl/setenv.c:376: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 len = strlen (value); data/pspp-1.4.1/gl/setlocale_null.c:111:23: [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). size_t length = wcslen (result); data/pspp-1.4.1/gl/setlocale_null.c:154: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 length = strlen (result); data/pspp-1.4.1/gl/stat.c:133:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (name); data/pspp-1.4.1/gl/stat.c:428: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 len = strlen (name); data/pspp-1.4.1/gl/stdio.in.h:267:11: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef fgetc data/pspp-1.4.1/gl/stdio.in.h:268:12: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define fgetc rpl_fgetc data/pspp-1.4.1/gl/stdio.in.h:270:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdio.in.h:271:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream)); data/pspp-1.4.1/gl/stdio.in.h:273:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream)); data/pspp-1.4.1/gl/stdio.in.h:276:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (fgetc); data/pspp-1.4.1/gl/stdio.in.h:706:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/pspp-1.4.1/gl/stdio.in.h:707:12: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc rpl_fgetc data/pspp-1.4.1/gl/stdio.in.h:709:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (fgetc, int, (FILE *stream) _GL_ARG_NONNULL ((1))); data/pspp-1.4.1/gl/stdio.in.h:710:21: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream)); data/pspp-1.4.1/gl/stdio.in.h:712:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getc, int, (FILE *stream)); data/pspp-1.4.1/gl/stdio.in.h:715:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getc); data/pspp-1.4.1/gl/stdio.in.h:722:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/pspp-1.4.1/gl/stdio.in.h:723:12: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar rpl_getchar data/pspp-1.4.1/gl/stdio.in.h:725:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (getchar, int, (void)); data/pspp-1.4.1/gl/stdio.in.h:726:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (getchar, int, (void)); data/pspp-1.4.1/gl/stdio.in.h:728:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS (getchar, int, (void)); data/pspp-1.4.1/gl/stdio.in.h:731:19: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (getchar); data/pspp-1.4.1/gl/strdup.c:41:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (s) + 1; data/pspp-1.4.1/gl/strerror.c:65:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (msg); data/pspp-1.4.1/gl/string.in.h:409:11: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/pspp-1.4.1/gl/string.in.h:410:12: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # define strncat rpl_strncat data/pspp-1.4.1/gl/string.in.h:412:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_FUNCDECL_RPL (strncat, char *, data/pspp-1.4.1/gl/string.in.h:415:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_RPL (strncat, char *, data/pspp-1.4.1/gl/string.in.h:418:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIAS_SYS (strncat, char *, data/pspp-1.4.1/gl/string.in.h:422:19: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_CXXALIASWARN (strncat); data/pspp-1.4.1/gl/string.in.h:425:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. # undef strncat data/pspp-1.4.1/gl/string.in.h:427:18: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. _GL_WARN_ON_USE (strncat, "strncat is unportable - " data/pspp-1.4.1/gl/strncat.c:24:1: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat (char *dest, const char *src, size_t n) data/pspp-1.4.1/gl/strncat.c:26:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *destptr = dest + strlen (dest); data/pspp-1.4.1/gl/tempname.c:114: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). plen = strlen (pfx); data/pspp-1.4.1/gl/tempname.c:142: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). dlen = strlen (dir); data/pspp-1.4.1/gl/tempname.c:264:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (tmpl); data/pspp-1.4.1/gl/time_rz.c:97: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 name_size = name ? strlen (name) + 1 : 0; data/pspp-1.4.1/gl/time_rz.c:153:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t zone_size = strlen (zone) + 1; data/pspp-1.4.1/gl/time_rz.c:173: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). zone_copy += strlen (zone_copy) + 1; data/pspp-1.4.1/gl/tmpdir.c:107: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). plen = strlen (pfx); data/pspp-1.4.1/gl/tmpdir.c:148: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). dlen = strlen (dir); data/pspp-1.4.1/gl/unicase/u8-casefold.c:92: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 length = strlen (input); data/pspp-1.4.1/gl/unicase/u8-tolower.c:105: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 length = strlen (input); data/pspp-1.4.1/gl/unicase/u8-totitle.c:92: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 length = strlen (input); data/pspp-1.4.1/gl/unicase/u8-toupper.c:105: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 length = strlen (input); data/pspp-1.4.1/gl/unilbrk/u8-possible-linebreaks.c:231: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 length = strlen (input); data/pspp-1.4.1/gl/unistd.in.h:1370:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/pspp-1.4.1/gl/unistd.in.h:1371:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define read rpl_read data/pspp-1.4.1/gl/unistd.in.h:1373:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count) data/pspp-1.4.1/gl/unistd.in.h:1375:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count)); data/pspp-1.4.1/gl/unistd.in.h:1380:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count)); data/pspp-1.4.1/gl/unistd.in.h:1382:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). _GL_CXXALIASWARN (read); data/pspp-1.4.1/gl/unistd.in.h:1703:11: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/pspp-1.4.1/gl/unistd.in.h:1704:12: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # define usleep rpl_usleep data/pspp-1.4.1/gl/unistd.in.h:1706:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_RPL (usleep, int, (useconds_t n)); data/pspp-1.4.1/gl/unistd.in.h:1707:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_RPL (usleep, int, (useconds_t n)); data/pspp-1.4.1/gl/unistd.in.h:1710:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_FUNCDECL_SYS (usleep, int, (useconds_t n)); data/pspp-1.4.1/gl/unistd.in.h:1714:24: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n)); data/pspp-1.4.1/gl/unistd.in.h:1716:19: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_CXXALIASWARN (usleep); data/pspp-1.4.1/gl/unistd.in.h:1718:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. # undef usleep data/pspp-1.4.1/gl/unistd.in.h:1720:18: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. _GL_WARN_ON_USE (usleep, "usleep is unportable - " data/pspp-1.4.1/gl/unistr/u8-strlen.c:28: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). return strlen ((const char *) s); data/pspp-1.4.1/gl/unistr/u8-strncat.c:28:22: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. return (uint8_t *) strncat ((char *) dest, (const char *) src, n); data/pspp-1.4.1/gl/uniwbrk/u8-wordbreaks.c:94: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 length = strlen (input); data/pspp-1.4.1/gl/unlocked-io.h:100:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getc data/pspp-1.4.1/gl/unlocked-io.h:101:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc(x) getc_unlocked (x) data/pspp-1.4.1/gl/unlocked-io.h:103:28: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getc_unlocked(x) getc (x) data/pspp-1.4.1/gl/unlocked-io.h:107:10: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef getchar data/pspp-1.4.1/gl/unlocked-io.h:108:11: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar() getchar_unlocked () data/pspp-1.4.1/gl/unlocked-io.h:110:30: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # define getchar_unlocked() getchar () data/pspp-1.4.1/gl/unsetenv.c:68:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (name); data/pspp-1.4.1/gl/vasnprintf.c:240: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/pspp-1.4.1/gl/vasnprintf.c:1810: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/pspp-1.4.1/gl/vasnprintf.c:2640: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/pspp-1.4.1/gl/vasnprintf.c:3911: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/pspp-1.4.1/gl/vasnprintf.c:3971: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/pspp-1.4.1/gl/vasnprintf.c:4007: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/pspp-1.4.1/gl/vasnprintf.c:4107: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/pspp-1.4.1/gl/vasnprintf.c:4143: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/pspp-1.4.1/gl/vasnprintf.c:4373: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/pspp-1.4.1/gl/vasnprintf.c:4430: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/pspp-1.4.1/gl/vasnprintf.c:4465: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/pspp-1.4.1/gl/vasnprintf.c:4578: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/pspp-1.4.1/gl/vasnprintf.c:4613: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/pspp-1.4.1/gl/wchar.in.h:671:19: [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). _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE); data/pspp-1.4.1/gl/wchar.in.h:673:19: [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). _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s)); data/pspp-1.4.1/gl/wchar.in.h:675:19: [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). _GL_CXXALIASWARN (wcslen); data/pspp-1.4.1/gl/wchar.in.h:678:9: [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). # undef wcslen data/pspp-1.4.1/gl/wchar.in.h:680:18: [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). _GL_WARN_ON_USE (wcslen, "wcslen is unportable - " data/pspp-1.4.1/gl/wchar.in.h:744:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_FUNCDECL_SYS (wcsncpy, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:748:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIAS_SYS (wcsncpy, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:752:19: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_CXXALIASWARN (wcsncpy); data/pspp-1.4.1/gl/wchar.in.h:755:9: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). # undef wcsncpy data/pspp-1.4.1/gl/wchar.in.h:757:18: [1] (buffer) wcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - " data/pspp-1.4.1/gl/wchar.in.h:807:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_FUNCDECL_SYS (wcsncat, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:811:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIAS_SYS (wcsncat, wchar_t *, data/pspp-1.4.1/gl/wchar.in.h:815:19: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_CXXALIASWARN (wcsncat); data/pspp-1.4.1/gl/wchar.in.h:818:9: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. # undef wcsncat data/pspp-1.4.1/gl/wchar.in.h:820:18: [1] (buffer) wcsncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, or automatically resizing strings. _GL_WARN_ON_USE (wcsncat, "wcsncat is unportable - " data/pspp-1.4.1/gl/xmalloc.c:132: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). return xmemdup (string, strlen (string) + 1); data/pspp-1.4.1/gl/xvasprintf.c:47: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). totalsize = xsum (totalsize, strlen (next)); data/pspp-1.4.1/gl/xvasprintf.c:66: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 (next); data/pspp-1.4.1/perl-module/ppport.h:3793: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). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); data/pspp-1.4.1/perl-module/ppport.h:3802:59: [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 sv_vcatpvf(sv, pat, args) sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/pspp-1.4.1/perl-module/ppport.h:3807:59: [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 sv_vsetpvf(sv, pat, args) sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)) data/pspp-1.4.1/perl-module/ppport.h:3828: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). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/pspp-1.4.1/perl-module/ppport.h:3857: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). sv_vcatpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/pspp-1.4.1/perl-module/ppport.h:3878: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). sv_vcatpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/pspp-1.4.1/perl-module/ppport.h:3901: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). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/pspp-1.4.1/perl-module/ppport.h:3930: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). sv_vsetpvfn(sv, pat, strlen(pat), &args, Null(SV**), 0, Null(bool*)); data/pspp-1.4.1/perl-module/ppport.h:3951: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). sv_vsetpvfn(sv, pat, strlen(pat), args, Null(SV**), 0, Null(bool*)); \ data/pspp-1.4.1/perl-module/ppport.h:4422: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). STRLEN len = strlen(radix); data/pspp-1.4.1/src/data/casereader-provider.h:62:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct ccase *(*read) (struct casereader *reader, void *aux); data/pspp-1.4.1/src/data/casereader-provider.h:140:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct ccase *(*read) (struct casereader *reader, void *aux, data/pspp-1.4.1/src/data/casereader.c:71:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = reader->class->read (reader, reader->aux); data/pspp-1.4.1/src/data/casereader.c:513:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). struct ccase *c = shared->class->read (reader, shared->aux, data/pspp-1.4.1/src/data/casereader.c:566:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return shared->class->read (reader, shared->aux, data/pspp-1.4.1/src/data/csv-file-writer.c:207: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). csv_output_buffer (w, s, strlen (s)); data/pspp-1.4.1/src/data/csv-file-writer.c:316:13: [1] (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 character. strcpy (s, " "); data/pspp-1.4.1/src/data/csv-file-writer.c:329:13: [1] (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 character. strcpy (s, " "); data/pspp-1.4.1/src/data/data-in.c:1132: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 template_width = strlen (template); data/pspp-1.4.1/src/data/data-out.c:139:46: [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). uint8_t *out = pool_alloc_unaligned (pool, strlen (in) * 2 + 1); data/pspp-1.4.1/src/data/data-out.c:536: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). p += strlen (p); data/pspp-1.4.1/src/data/data-out.c:887:32: [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 (!strcmp (r->string + strlen (r->string) - 2, "50")) data/pspp-1.4.1/src/data/data-out.c:899: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). memmove (r->string, &r->string[1], strlen (r->string)); data/pspp-1.4.1/src/data/dictionary.c:1091: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 hint_len = strlen (hint); data/pspp-1.4.1/src/data/encrypted-file.c:263:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (input); data/pspp-1.4.1/src/data/encrypted-file.c:334: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). password_len = strlen (password); data/pspp-1.4.1/src/data/file-name.c:95: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). else if (ISSLASH (dir[strlen (dir) - 1])) data/pspp-1.4.1/src/data/file-name.c:171: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). else if (*fn && fn[strlen (fn) - 1] == '|') data/pspp-1.4.1/src/data/file-name.c:179: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). s = xmalloca (strlen (fn)); data/pspp-1.4.1/src/data/file-name.c:180: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). memcpy (s, fn, strlen (fn) - 1); data/pspp-1.4.1/src/data/file-name.c:181: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). s[strlen (fn) - 1] = 0; data/pspp-1.4.1/src/data/file-name.c:194:55: [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). wchar_t *ss = convert_to_filename_encoding (fn, strlen (fn), fh_get_file_name_encoding (fh)); data/pspp-1.4.1/src/data/file-name.c:195:75: [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). wchar_t *m = (wchar_t *) recode_string ("UTF-16LE", "ASCII", mode, strlen (mode)); data/pspp-1.4.1/src/data/file-name.c:218: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). else if (fn[0] == '|' || (*fn && fn[strlen (fn) - 1] == '|')) data/pspp-1.4.1/src/data/file-name.c:262: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). || strchr ("/\\", home_dir[strlen (home_dir) - 1]) == NULL) data/pspp-1.4.1/src/data/file-name.c:267: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). for(i = 0; i < strlen (path); i++) data/pspp-1.4.1/src/data/format.c:143: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). total_bytes = (strlen (neg_prefix) + strlen (prefix) data/pspp-1.4.1/src/data/format.c:143: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). total_bytes = (strlen (neg_prefix) + strlen (prefix) data/pspp-1.4.1/src/data/format.c:144: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). + strlen (suffix) + strlen (neg_suffix)); data/pspp-1.4.1/src/data/format.c:144: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). + strlen (suffix) + strlen (neg_suffix)); data/pspp-1.4.1/src/data/format.c:1025: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). return width >= strlen (s2) ? s2 : s1; data/pspp-1.4.1/src/data/gnumeric-reader.c:762:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ROUND_UP (strlen(text), SPREADSHEET_DEFAULT_WIDTH) : opts->asw; data/pspp-1.4.1/src/data/identifier2.c:55:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). dict_len = strlen (id); data/pspp-1.4.1/src/data/identifier2.c:97: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). bad_unit = u8_check (CHAR_CAST (const uint8_t *, id), strlen (id)); data/pspp-1.4.1/src/data/make-file.c:206:65: [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). TCHAR * Tfile_name = convert_to_filename_encoding (file_name, strlen (file_name), fh_get_file_name_encoding (fh)); data/pspp-1.4.1/src/data/make-file.c:265:75: [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). rf->tmp_name = convert_to_filename_encoding (rf->tmp_name_verbatim, strlen (rf->tmp_name_verbatim), fh_get_file_name_encoding (fh)); data/pspp-1.4.1/src/data/mdd-writer.c:325: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). char *id = xmalloc (strlen (name) + 2); data/pspp-1.4.1/src/data/por-file-reader.c:202:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (r->file)) == '\r') data/pspp-1.4.1/src/data/por-file-reader.c:576: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 (date) != 8) data/pspp-1.4.1/src/data/por-file-reader.c:577: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). error (r, _("Bad date string length %zu."), strlen (date)); data/pspp-1.4.1/src/data/por-file-reader.c:578: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 (time) != 6) data/pspp-1.4.1/src/data/por-file-reader.c:579: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). error (r, _("Bad time string length %zu."), strlen (time)); data/pspp-1.4.1/src/data/por-file-reader.c:691: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). if (strlen (weight_name) > SHORT_NAME_LEN) data/pspp-1.4.1/src/data/por-file-reader.c:928:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (file); data/pspp-1.4.1/src/data/por-file-writer.c:216: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). buf_write (w, buffer, strlen (buffer)); data/pspp-1.4.1/src/data/por-file-writer.c:227: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). buf_write (w, buffer, strlen (buffer)); data/pspp-1.4.1/src/data/por-file-writer.c:235: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). size_t n = strlen (s); data/pspp-1.4.1/src/data/por-file-writer.c:899:3: [1] (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 character. strcpy (output, "0"); data/pspp-1.4.1/src/data/settings.c:591: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). out = *affixp = xmalloc (strlen (in) + 1); data/pspp-1.4.1/src/data/spreadsheet-reader.c:124: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). int len = strlen (str); data/pspp-1.4.1/src/data/sys-file-reader.c:2357: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). length = strlen (value); data/pspp-1.4.1/src/data/sys-file-reader.c:3420:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). d = dst = xmalloc (strlen (s) + 1); data/pspp-1.4.1/src/data/sys-file-writer.c:535:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t label_len = MIN (strlen (label), 255); data/pspp-1.4.1/src/data/sys-file-writer.c:662: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). uint8_t len = MIN (strlen (label), 255); data/pspp-1.4.1/src/data/sys-file-writer.c:703: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 s_len = strlen (s); data/pspp-1.4.1/src/data/sys-file-writer.c:858: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). ds_put_format (&s, "%zu %s", strlen (counted), counted); data/pspp-1.4.1/src/data/sys-file-writer.c:868: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). ds_put_format (&s, "%zu %s", strlen (label), label); data/pspp-1.4.1/src/data/sys-file-writer.c:999: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). write_int (w, strlen (var_name)); data/pspp-1.4.1/src/data/sys-file-writer.c:1000:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write_bytes (w, var_name, strlen (var_name)); data/pspp-1.4.1/src/data/sys-file-writer.c:1016: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). len = strlen (label); data/pspp-1.4.1/src/data/sys-file-writer.c:1069: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). write_int (w, strlen (var_name)); data/pspp-1.4.1/src/data/sys-file-writer.c:1070:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write_bytes (w, var_name, strlen (var_name)); data/pspp-1.4.1/src/data/sys-file-writer.c:1605: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). size_t data_bytes = MIN (strlen (string), width); data/pspp-1.4.1/src/language/command.c:473: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). if (!memcasecmp ((*cmd)->name, prefix, strlen (prefix)) data/pspp-1.4.1/src/language/control/repeat.c:123: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 name_len = strlen (name); data/pspp-1.4.1/src/language/control/repeat.c:136:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). hmap_insert (dummies, &dv->hmap_node, hash_dummy (name, strlen (name))); data/pspp-1.4.1/src/language/data-io/matrix-data.c:111:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (CHAR_CAST (char *, s), str, len); data/pspp-1.4.1/src/language/data-io/matrix-data.c:441: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). maximize_int (&longest_name, strlen (names[i])); data/pspp-1.4.1/src/language/data-io/print.c:508: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). len = strlen (s); data/pspp-1.4.1/src/language/data-io/print.c:582: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). dfm_put_record (trns->writer, recoded, strlen (recoded)); data/pspp-1.4.1/src/language/data-io/trim.c:113: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 (s0) <= x0) data/pspp-1.4.1/src/language/data-io/trim.c:116: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 (s1) <= x1) data/pspp-1.4.1/src/language/data-io/trim.c:125: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). if (len_s0_pfx + x0 != strlen (s0)) data/pspp-1.4.1/src/language/data-io/trim.c:129: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). if (len_s1_pfx + x1 != strlen (s1)) data/pspp-1.4.1/src/language/data-io/trim.c:194: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). int sz = strlen (prefix) + intlog10 (last) + 1; data/pspp-1.4.1/src/language/dictionary/missing-values.c:134: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). strlen (raw_s))) data/pspp-1.4.1/src/language/dictionary/mrsets.c:164: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). width = strlen (s); data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:902: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). prefix = strlen (s0); data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:933: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). s0_len = strlen (s0); data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:938: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 si_len = strlen (si); data/pspp-1.4.1/src/language/dictionary/sys-file-info.c:1077: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). size_t len = strlen (s) - suffix; data/pspp-1.4.1/src/language/expressions/parse.c:1055:42: [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). || strspn (p + 1, "0123456789") != strlen (p + 1)) data/pspp-1.4.1/src/language/lexer/lexer.c:880:32: [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). string_lexer_init (&slex, s, strlen (s), SEG_MODE_INTERACTIVE); data/pspp-1.4.1/src/language/lexer/lexer.c:1190:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t n = src->reader->class->read (src->reader, &src->buffer[head_ofs], data/pspp-1.4.1/src/language/lexer/lexer.h:72:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). size_t (*read) (struct lex_reader *reader, char *buf, size_t n, data/pspp-1.4.1/src/language/lexer/q2c.c:171: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 (s) + 1; data/pspp-1.4.1/src/language/lexer/q2c.c:175: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). fail ("xstrdup(%lu): %s", (unsigned long) strlen (s), VME); data/pspp-1.4.1/src/language/lexer/q2c.c:380: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). char *dest = xmalloc (strlen (s) + 1); data/pspp-1.4.1/src/language/lexer/q2c.c:1057:6: [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). buf[strlen (buf) - 1] = 0; data/pspp-1.4.1/src/language/stats/autorecode.c:340: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). struct fmt_spec format = { .type = FMT_F, .w = strlen (longest_value) }; data/pspp-1.4.1/src/language/stats/flip.c:274: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) == 0) data/pspp-1.4.1/src/language/stats/flip.c:284: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 (name); data/pspp-1.4.1/src/language/stats/flip.c:290:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (n, name, ofs); data/pspp-1.4.1/src/language/stats/regression.c:121: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). name = xmalloc (strlen (prefix) + INT_BUFSIZE_BOUND (i) + 1); data/pspp-1.4.1/src/language/tests/float-format.c:214:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (dst, src_, src_size + 1); data/pspp-1.4.1/src/language/xforms/recode.c:394:50: [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_CAST (uint8_t *, s), strlen (s), ' '); data/pspp-1.4.1/src/libpspp/float-format.c:913:7: [1] (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 character. strcpy (s, "0"); data/pspp-1.4.1/src/libpspp/float-format.c:933:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (output, buffer, float_get_size (FLOAT_HEX)); data/pspp-1.4.1/src/libpspp/freaderror.c:52:7: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc (fp); data/pspp-1.4.1/src/libpspp/hash-functions.c:142: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). return hash_bytes (s, strlen (s), basis); data/pspp-1.4.1/src/libpspp/i18n.c:163:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (s); data/pspp-1.4.1/src/libpspp/i18n.c:272: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). length = strlen (text); data/pspp-1.4.1/src/libpspp/i18n.c:477: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 tail_len = strlen (tail); data/pspp-1.4.1/src/libpspp/i18n.c:481:46: [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). prefix_len = utf8_encoding_concat__ (head, strlen (head), tail, tail_len, data/pspp-1.4.1/src/libpspp/i18n.c:495: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 tail_len = strlen (tail); data/pspp-1.4.1/src/libpspp/i18n.c:499:46: [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). prefix_len = utf8_encoding_concat__ (head, strlen (head), tail, tail_len, data/pspp-1.4.1/src/libpspp/i18n.c:831:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return utf8_hash_case_bytes (s, strlen (s), basis); data/pspp-1.4.1/src/libpspp/i18n.c:839:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return utf8_strncasecmp (a, strlen (a), b, strlen (b)); data/pspp-1.4.1/src/libpspp/i18n.c:839:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return utf8_strncasecmp (a, strlen (a), b, strlen (b)); data/pspp-1.4.1/src/libpspp/i18n.c:883:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uint8_t *a_norm = u8_casefold (CHAR_CAST (uint8_t *, a), strlen (a), NULL, data/pspp-1.4.1/src/libpspp/i18n.c:889:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). uint8_t *b_norm = u8_casefold (CHAR_CAST (uint8_t *, b), strlen (b), NULL, data/pspp-1.4.1/src/libpspp/i18n.c:948: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). f (CHAR_CAST (const uint8_t *, s), strlen (s) + 1, data/pspp-1.4.1/src/libpspp/intern.c:62: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). size_t length = strlen (s); data/pspp-1.4.1/src/libpspp/intern.c:122: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). size_t length = strlen (s); data/pspp-1.4.1/src/libpspp/line-reader.c:182:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read (r->fd, r->buffer + r->length, data/pspp-1.4.1/src/libpspp/message.c:282: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). fwrite (m->text, 1, strlen (m->text), stderr); data/pspp-1.4.1/src/libpspp/pool.c:376:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return pool_clone_unaligned (pool, string, strlen (string) + 1); data/pspp-1.4.1/src/libpspp/str.c:116:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return buf_compare_rpad (a, strlen (a), b, strlen (b)); data/pspp-1.4.1/src/libpspp/str.c:116:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return buf_compare_rpad (a, strlen (a), b, strlen (b)); data/pspp-1.4.1/src/libpspp/str.c:125: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 src_len = strlen (src); data/pspp-1.4.1/src/libpspp/str.c:141: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 src_len = strlen (src); data/pspp-1.4.1/src/libpspp/str.c:195: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 src_len = strlen (src); data/pspp-1.4.1/src/libpspp/str.c:212: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 src_len = strlen (src); data/pspp-1.4.1/src/libpspp/str.c:1356:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getc (stream); data/pspp-1.4.1/src/libpspp/str.c:1367:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (stream); data/pspp-1.4.1/src/libpspp/str.h:270: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). return ss_buffer (cstr, strlen (cstr)); data/pspp-1.4.1/src/libpspp/string-map.c:172: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). return string_map_find_node__ (map, key, strlen (key)); data/pspp-1.4.1/src/libpspp/string-map.c:198: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). size_t length = strlen (key); data/pspp-1.4.1/src/libpspp/string-map.c:215: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). size_t length = strlen (key); data/pspp-1.4.1/src/libpspp/string-map.c:235: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). size_t length = strlen (key); data/pspp-1.4.1/src/libpspp/string-map.c:253: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). size_t length = strlen (key); data/pspp-1.4.1/src/libpspp/string-map.c:311:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!string_map_find_node_with_hash (dst, node->key, strlen (node->key), data/pspp-1.4.1/src/libpspp/string-map.c:330: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). strlen (snode->key), data/pspp-1.4.1/src/libpspp/string-map.c:375: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). b, a_node->key, strlen (a_node->key), a_node->hmap_node.hash); data/pspp-1.4.1/src/libpspp/string-map.c:402: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). = string_map_find_node_with_hash (map, key, strlen (key), hash); data/pspp-1.4.1/src/libpspp/u8-istream.c:209:24: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t retval = read (is->fd, is->buffer + is->length, data/pspp-1.4.1/src/libpspp/zip-reader.c:60:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int (*read) (struct zip_member *, void *, size_t); data/pspp-1.4.1/src/libpspp/zip-reader.c:226:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes_read = zm->decompressor->read (zm, buf, bytes); data/pspp-1.4.1/src/libpspp/zip-writer.c:132: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). put_u16 (zw, strlen (member_name)); /* file name length */ data/pspp-1.4.1/src/libpspp/zip-writer.c:134:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). put_bytes (zw, member_name, strlen (member_name)); data/pspp-1.4.1/src/libpspp/zip-writer.c:198: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). zip_writer_add_memory (zw, member_name, content, strlen (content)); data/pspp-1.4.1/src/libpspp/zip-writer.c:248:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). put_u16 (zw, strlen (m->name)); /* file name length */ data/pspp-1.4.1/src/libpspp/zip-writer.c:255:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). put_bytes (zw, m->name, strlen (m->name)); data/pspp-1.4.1/src/output/ascii.c:839: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). size_t length = strlen (text); data/pspp-1.4.1/src/output/cairo.c:1448: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). ds_put_substring (out, ss_buffer (in, len == -1 ? strlen (in) : len)); data/pspp-1.4.1/src/output/cairo.c:1526: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). pango_layout_set_text (font->layout, decimal, strlen (decimal)); data/pspp-1.4.1/src/output/cairo.c:1575: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). ds_extend (&tmp, strlen (text) + 16); data/pspp-1.4.1/src/output/cairo.c:1595: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). ds_extend (&tmp, strlen (text) + 16); data/pspp-1.4.1/src/output/driver.c:565: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). char *value = xmemdup0 (equals + 1, strlen (equals + 1)); data/pspp-1.4.1/src/output/driver.c:578: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). xmlParseChunk (parser, "<xml>", strlen ("<xml>"), false); data/pspp-1.4.1/src/output/driver.c:579: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). xmlParseChunk (parser, markup, strlen (markup), false); data/pspp-1.4.1/src/output/driver.c:580: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). xmlParseChunk (parser, "</xml>", strlen ("</xml>"), true); data/pspp-1.4.1/src/output/driver.c:598: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). ds_extend (&dst, strlen (src)); data/pspp-1.4.1/src/output/odt.c:408: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 (f->marker) > 1) data/pspp-1.4.1/src/output/options.c:290:61: [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 stem_length = extension ? extension - file_name : strlen (file_name); data/pspp-1.4.1/src/output/pivot-table.c:2068: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). xmemdup0 (text, length != SIZE_MAX ? length : strlen (text))); data/pspp-1.4.1/src/output/pivot-table.c:2195: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 n = strlen (s); data/pspp-1.4.1/src/output/spv/spv-legacy-data.c:285: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). value->width = strlen (label->label); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:231:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). mapping->to.width = strlen (mapping->to.s); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:236: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). mapping->to.width = strlen (to); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:762: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 length = strlen (in->text); data/pspp-1.4.1/src/output/spv/spv-legacy-decoder.c:772: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 length = strlen (in->text); data/pspp-1.4.1/src/output/spv/spv-light-decoder.c:38: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). return recode_string ("UTF-8", encoding, s, strlen (s)); data/pspp-1.4.1/src/output/spv/spv-writer.c:409:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (s); data/pspp-1.4.1/src/output/spv/spv-writer.c:418:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen (s); data/pspp-1.4.1/src/output/spv/spv-writer.c:604: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). &(struct fmt_spec) { FMT_A, strlen (value->string.s), 0 }); data/pspp-1.4.1/src/output/spv/spv.c:466: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). html_s, strlen (html_s), data/pspp-1.4.1/src/output/spv/spv.c:1101: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). bool is_spv = size == strlen (magic) && !memcmp (magic, data, size); data/pspp-1.4.1/src/ui/gui/find-dialog.c:498: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). width = strlen (text); data/pspp-1.4.1/src/ui/gui/find-dialog.c:579: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). width = strlen (text); data/pspp-1.4.1/src/ui/gui/help-menu.c:110:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(vbs), data/pspp-1.4.1/src/ui/gui/missing-val-dialog.c:249: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). if (!text || strlen (g_strstrip (text)) == 0) data/pspp-1.4.1/src/ui/gui/missing-val-dialog.c:312:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (discrete_text && strlen (g_strstrip (discrete_text)) > 0) data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:312: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 name_len = strlen (name); data/pspp-1.4.1/src/ui/gui/psppire-data-window.c:313: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 suffix_len = strlen (suffix); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-compute.c:79: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 (label) > 0) data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-compute.c:275: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). gtk_text_buffer_insert_at_cursor (buffer, syntax, strlen (syntax)); data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-tt1s.c:82: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). if (s - text != strlen (text)) data/pspp-1.4.1/src/ui/gui/psppire-dialog-action-var-info.c:76: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 name_len = strlen (name); data/pspp-1.4.1/src/ui/gui/psppire-lex-reader.c:103: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). r->part_len = strlen (r->part); data/pspp-1.4.1/src/ui/gui/psppire-syntax-window.c:328: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 guchar *) sw->cliptext, strlen (sw->cliptext)); data/pspp-1.4.1/src/ui/gui/widget-io.c:66:32: [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). output = g_string_sized_new (strlen (fmt)); data/pspp-1.4.1/src/ui/syntax-gen.c:293:17: [1] (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). Risk is low because the source is a constant character. strcat (conv, "."); data/pspp-1.4.1/src/ui/syntax-gen.c:295: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). x += strlen (qualifier) + 1; data/pspp-1.4.1/src/ui/terminal/terminal-reader.c:278:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (pfd[0], dummy, 1); data/pspp-1.4.1/src/ui/terminal/terminal-reader.c:287:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (fileno (fp), &c, 1); data/pspp-1.4.1/tests/data/inexactify.c:38:15: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). int c = getchar (); data/pspp-1.4.1/tests/data/sack.c:139:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (input); data/pspp-1.4.1/tests/data/sack.c:142:23: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (input)) != '\n' && c != EOF) data/pspp-1.4.1/tests/data/sack.c:162:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (input); data/pspp-1.4.1/tests/data/sack.c:192:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((c = getc (input)) != '"') data/pspp-1.4.1/tests/data/sack.c:215:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = getc (input); data/pspp-1.4.1/tests/language/lexer/segment-test.c:198: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). for (i = MIN (15, strlen (type_name)); i < 16; i++) data/pspp-1.4.1/tests/libpspp/i18n-test.c:35: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). char *output = xmalloc (strlen (input) + 1); data/pspp-1.4.1/tests/libpspp/i18n-test.c:80:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert (strlen (result) == recode_string_len (to, from, string, -1)); data/pspp-1.4.1/tests/libpspp/i18n-test.c:95:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert (strlen (result) data/pspp-1.4.1/tests/libpspp/i18n-test.c:102: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). assert (strlen (result2) data/pspp-1.4.1/tests/libpspp/string-map-test.c:109: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). return xmemdup (string, strlen (string) + 1); data/pspp-1.4.1/tests/libpspp/string-set-test.c:105: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). return xmemdup (string, strlen (string) + 1); data/pspp-1.4.1/tests/libpspp/stringi-map-test.c:113: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). return xmemdup (string, strlen (string) + 1); data/pspp-1.4.1/tests/libpspp/stringi-set-test.c:108: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). return xmemdup (string, strlen (string) + 1); data/pspp-1.4.1/tests/output/render-test.c:110:16: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ch = getc (input); data/pspp-1.4.1/utilities/pspp-convert.c:64: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 (arg) != 1) data/pspp-1.4.1/utilities/pspp-convert.c:449: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). size_t alphabet_size = strlen (alphabet); data/pspp-1.4.1/utilities/pspp-convert.c:453:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (int len = password ? strlen (password) : 0; data/pspp-1.4.1/utilities/pspp-convert.c:456: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). if (password && len == strlen (password)) data/pspp-1.4.1/utilities/pspp-dump-sav.c:743: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). print_string (s, strlen (s)); data/pspp-1.4.1/utilities/pspp-dump-sav.c:961:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (value) < 2 data/pspp-1.4.1/utilities/pspp-dump-sav.c:962: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). || value[0] != '\'' || value[strlen (value) - 1] != '\'') data/pspp-1.4.1/utilities/pspp-dump-sav.c:967: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). variable, key, index, (int) strlen (value) - 2, value + 1); ANALYSIS SUMMARY: Hits = 1705 Lines analyzed = 362644 in approximately 8.87 seconds (40889 lines/second) Physical Source Lines of Code (SLOC) = 257739 Hits@level = [0] 815 [1] 407 [2] 874 [3] 139 [4] 259 [5] 26 Hits@level+ = [0+] 2520 [1+] 1705 [2+] 1298 [3+] 424 [4+] 285 [5+] 26 Hits/KSLOC@level+ = [0+] 9.77733 [1+] 6.61522 [2+] 5.0361 [3+] 1.64508 [4+] 1.10577 [5+] 0.100877 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.