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/aevol-5.0+ds/src/aevol_propagate.cpp
Examining data/aevol-5.0+ds/src/aevol_create.cpp
Examining data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp
Examining data/aevol-5.0+ds/src/libaevol/InsertionHT.cpp
Examining data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp
Examining data/aevol-5.0+ds/src/libaevol/Individual.cpp
Examining data/aevol-5.0+ds/src/libaevol/IndividualFactory.h
Examining data/aevol-5.0+ds/src/libaevol/StatRecord.cpp
Examining data/aevol-5.0+ds/src/libaevol/SmallInsertion.h
Examining data/aevol-5.0+ds/src/libaevol/Dna.cpp
Examining data/aevol-5.0+ds/src/libaevol/X11Window.h
Examining data/aevol-5.0+ds/src/libaevol/ExpManager.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTarget_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Habitat_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Habitat_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Protein_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/Rna_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/Individual_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTarget_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Protein_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/raevol/Individual_R.h
Examining data/aevol-5.0+ds/src/libaevol/raevol/Rna_R.cpp
Examining data/aevol-5.0+ds/src/libaevol/FuzzyFactory.h
Examining data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp
Examining data/aevol-5.0+ds/src/libaevol/AbstractFuzzy.h
Examining data/aevol-5.0+ds/src/libaevol/Fuzzy.cpp
Examining data/aevol-5.0+ds/src/libaevol/SmallDeletion.cpp
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-common.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params86243.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params2281.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params607.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params11213.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params1279.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params44497.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/jump/SFMT-jump.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/jump/SFMT-jump.cpp
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params4253.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params19937.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params216091.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT-params132049.h
Examining data/aevol-5.0+ds/src/libaevol/SFMT-src-1.4/SFMT.c
Examining data/aevol-5.0+ds/src/libaevol/Protein.cpp
Examining data/aevol-5.0+ds/src/libaevol/SmallInsertion.cpp
Examining data/aevol-5.0+ds/src/libaevol/PhenotypicTargetHandler.h
Examining data/aevol-5.0+ds/src/libaevol/Stats.h
Examining data/aevol-5.0+ds/src/libaevol/JumpingMT.h
Examining data/aevol-5.0+ds/src/libaevol/IndividualFactory.cpp
Examining data/aevol-5.0+ds/src/libaevol/ae_logger.h
Examining data/aevol-5.0+ds/src/libaevol/ParameterLine.cpp
Examining data/aevol-5.0+ds/src/libaevol/MutationParams.cpp
Examining data/aevol-5.0+ds/src/libaevol/Alignment.cpp
Examining data/aevol-5.0+ds/src/libaevol/ReplicationReport.cpp
Examining data/aevol-5.0+ds/src/libaevol/Logging.cpp
Examining data/aevol-5.0+ds/src/libaevol/SmallDeletion.h
Examining data/aevol-5.0+ds/src/libaevol/Duplication.h
Examining data/aevol-5.0+ds/src/libaevol/DnaReplicationReport.h
Examining data/aevol-5.0+ds/src/libaevol/Observable.cpp
Examining data/aevol-5.0+ds/src/libaevol/PointMutation.h
Examining data/aevol-5.0+ds/src/libaevol/GridCell.cpp
Examining data/aevol-5.0+ds/src/libaevol/AbstractFuzzy.cpp
Examining data/aevol-5.0+ds/src/libaevol/GeneticUnit.cpp
Examining data/aevol-5.0+ds/src/libaevol/ae_string.h
Examining data/aevol-5.0+ds/src/libaevol/Fuzzy.h
Examining data/aevol-5.0+ds/src/libaevol/Duplication.cpp
Examining data/aevol-5.0+ds/src/libaevol/NonCodingMetrics.h
Examining data/aevol-5.0+ds/src/libaevol/MutationParams.h
Examining data/aevol-5.0+ds/src/libaevol/Codon.cpp
Examining data/aevol-5.0+ds/src/libaevol/GridCell.h
Examining data/aevol-5.0+ds/src/libaevol/Logging.h
Examining data/aevol-5.0+ds/src/libaevol/Deletion.h
Examining data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp
Examining data/aevol-5.0+ds/src/libaevol/X11Window.cpp
Examining data/aevol-5.0+ds/src/libaevol/Protein.h
Examining data/aevol-5.0+ds/src/libaevol/HabitatFactory.cpp
Examining data/aevol-5.0+ds/src/libaevol/Individual_X11.h
Examining data/aevol-5.0+ds/src/libaevol/Stats.cpp
Examining data/aevol-5.0+ds/src/libaevol/Translocation.cpp
Examining data/aevol-5.0+ds/src/libaevol/Gaussian.h
Examining data/aevol-5.0+ds/src/libaevol/GzHelpers.h
Examining data/aevol-5.0+ds/src/libaevol/Utils.cpp
Examining data/aevol-5.0+ds/src/libaevol/Habitat.cpp
Examining data/aevol-5.0+ds/src/libaevol/Codon.h
Examining data/aevol-5.0+ds/src/libaevol/Inversion.cpp
Examining data/aevol-5.0+ds/src/libaevol/ExpManager.h
Examining data/aevol-5.0+ds/src/libaevol/Observer.h
Examining data/aevol-5.0+ds/src/libaevol/OutputManager.cpp
Examining data/aevol-5.0+ds/src/libaevol/ParameterLine.h
Examining data/aevol-5.0+ds/src/libaevol/World.h
Examining data/aevol-5.0+ds/src/libaevol/ReplicationReport.h
Examining data/aevol-5.0+ds/src/libaevol/Observable.h
Examining data/aevol-5.0+ds/src/libaevol/make_unique.h
Examining data/aevol-5.0+ds/src/libaevol/ReplacementHT.h
Examining data/aevol-5.0+ds/src/libaevol/Phenotype.h
Examining data/aevol-5.0+ds/src/libaevol/ae_enums.h
Examining data/aevol-5.0+ds/src/libaevol/macros.h
Examining data/aevol-5.0+ds/src/libaevol/Inversion.h
Examining data/aevol-5.0+ds/src/libaevol/aevol.h
Examining data/aevol-5.0+ds/src/libaevol/VisAVis.cpp
Examining data/aevol-5.0+ds/src/libaevol/PointMutation.cpp
Examining data/aevol-5.0+ds/src/libaevol/Habitat.h
Examining data/aevol-5.0+ds/src/libaevol/DnaReplicationReport.cpp
Examining data/aevol-5.0+ds/src/libaevol/Selection.cpp
Examining data/aevol-5.0+ds/src/libaevol/AeTime.cpp
Examining data/aevol-5.0+ds/src/libaevol/ExpSetup.h
Examining data/aevol-5.0+ds/src/libaevol/World.cpp
Examining data/aevol-5.0+ds/src/libaevol/Dump.h
Examining data/aevol-5.0+ds/src/libaevol/Dna.h
Examining data/aevol-5.0+ds/src/libaevol/JumpPoly.h
Examining data/aevol-5.0+ds/src/libaevol/AeTime.h
Examining data/aevol-5.0+ds/src/libaevol/PhenotypicTarget.cpp
Examining data/aevol-5.0+ds/src/libaevol/Deletion.cpp
Examining data/aevol-5.0+ds/src/libaevol/Rna.h
Examining data/aevol-5.0+ds/src/libaevol/StatRecord.h
Examining data/aevol-5.0+ds/src/libaevol/Tree.h
Examining data/aevol-5.0+ds/src/libaevol/Rearrangement.h
Examining data/aevol-5.0+ds/src/libaevol/Dump.cpp
Examining data/aevol-5.0+ds/src/libaevol/PhenotypicSegment.h
Examining data/aevol-5.0+ds/src/libaevol/Metrics.h
Examining data/aevol-5.0+ds/src/libaevol/HabitatFactory.h
Examining data/aevol-5.0+ds/src/libaevol/Mutation.cpp
Examining data/aevol-5.0+ds/src/libaevol/HybridFuzzy.h
Examining data/aevol-5.0+ds/src/libaevol/OutputManager.h
Examining data/aevol-5.0+ds/src/libaevol/Alignment.h
Examining data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp
Examining data/aevol-5.0+ds/src/libaevol/ReplacementHT.cpp
Examining data/aevol-5.0+ds/src/libaevol/Selection.h
Examining data/aevol-5.0+ds/src/libaevol/GeneticUnit.h
Examining data/aevol-5.0+ds/src/libaevol/ae_string.cpp
Examining data/aevol-5.0+ds/src/libaevol/ParamLoader.h
Examining data/aevol-5.0+ds/src/libaevol/Utils.h
Examining data/aevol-5.0+ds/src/libaevol/LocalMutation.h
Examining data/aevol-5.0+ds/src/libaevol/HorizontalTransfer.h
Examining data/aevol-5.0+ds/src/libaevol/ExpManager_X11.h
Examining data/aevol-5.0+ds/src/libaevol/InsertionHT.h
Examining data/aevol-5.0+ds/src/libaevol/VisAVis.h
Examining data/aevol-5.0+ds/src/libaevol/PhenotypicTargetHandler.cpp
Examining data/aevol-5.0+ds/src/libaevol/Individual.h
Examining data/aevol-5.0+ds/src/libaevol/Mutation.h
Examining data/aevol-5.0+ds/src/libaevol/Tree.cpp
Examining data/aevol-5.0+ds/src/libaevol/Translocation.h
Examining data/aevol-5.0+ds/src/libaevol/Rna.cpp
Examining data/aevol-5.0+ds/src/libaevol/FuzzyFactory.cpp
Examining data/aevol-5.0+ds/src/libaevol/Point.cpp
Examining data/aevol-5.0+ds/src/libaevol/HybridFuzzy.cpp
Examining data/aevol-5.0+ds/src/libaevol/PhenotypicTarget.h
Examining data/aevol-5.0+ds/src/libaevol/ObservableEvent.h
Examining data/aevol-5.0+ds/src/libaevol/Point.h
Examining data/aevol-5.0+ds/src/aevol_run.cpp
Examining data/aevol-5.0+ds/src/aevol_modify.cpp
Examining data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp
Examining data/aevol-5.0+ds/src/post_treatments/lineage.cpp
Examining data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp
Examining data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp
Examining data/aevol-5.0+ds/src/post_treatments/robustness.cpp
Examining data/aevol-5.0+ds/src/post_treatments/IndivAnalysis.cpp
Examining data/aevol-5.0+ds/src/post_treatments/extract.cpp
Examining data/aevol-5.0+ds/src/post_treatments/view.cpp
Examining data/aevol-5.0+ds/src/post_treatments/IndivAnalysis.h
Examining data/aevol-5.0+ds/src/post_treatments/create_eps.cpp

FINAL RESULTS:

data/aevol-5.0+ds/src/aevol_create.cpp:225: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(param_file_name, optarg);
data/aevol-5.0+ds/src/aevol_create.cpp:230: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(chromosome_file_name, optarg);
data/aevol-5.0+ds/src/aevol_create.cpp:235: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(plasmid_file_name, optarg);
data/aevol-5.0+ds/src/aevol_create.cpp:248:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(param_file_name, "%s", DEFAULT_PARAM_FILE_NAME);
data/aevol-5.0+ds/src/aevol_modify.cpp:981:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(param_file_name, "%s", DEFAULT_PARAM_FILE_NAME);
data/aevol-5.0+ds/src/aevol_propagate.cpp:230: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(output_dir, optarg);
data/aevol-5.0+ds/src/aevol_propagate.cpp:247:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(input_dir, "%s", ".");
data/aevol-5.0+ds/src/aevol_propagate.cpp:252:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(output_dir, "%s", "output");
data/aevol-5.0+ds/src/libaevol/Deletion.cpp:72:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/Dump.cpp:114:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(current_file, DUMP_FORMAT, x, y, map [x][y]);
data/aevol-5.0+ds/src/libaevol/Dump.cpp:142:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(current_file, DUMP_FORMAT, x, y, map [x][y]);
data/aevol-5.0+ds/src/libaevol/Dump.cpp:168:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(current_file, DUMP_FORMAT, x, y, map [x][y]);
data/aevol-5.0+ds/src/libaevol/Dump.cpp:193:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(current_file, DUMP_FORMAT, x, y, map [x][y]);
data/aevol-5.0+ds/src/libaevol/Dump.cpp:221:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(current_file, "%" PRId32,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:228:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf(current_file, "\t%" PRId32, int_probes[i]);
data/aevol-5.0+ds/src/libaevol/Duplication.cpp:68:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:533:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cur_dir_name, "%s/" EXP_S_DIR, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:540:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cur_dir_name, "%s/" OUT_P_DIR, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:547:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cur_dir_name, "%s/" WORLD_DIR, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:554:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(cur_dir_name, "%s/" STATS_DIR, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:576:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(exp_backup_file_name, "%s/" EXP_S_FNAME_FORMAT, dir, t);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:577:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(world_file_name, "%s/" WORLD_FNAME_FORMAT, dir, t);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:622:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(exp_s_file_name, "%s/" EXP_S_CONST_FNAME_FORMAT, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:623:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(out_p_file_name, "%s/" OUT_P_FNAME_FORMAT, dir);
data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp:690:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(t, "Generation = %" PRId64, AeTime::time());
data/aevol-5.0+ds/src/libaevol/Individual.cpp:86: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(strain_name_, strain_name);
data/aevol-5.0+ds/src/libaevol/InsertionHT.cpp:69:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/Inversion.cpp:71:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:313: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(strain_name_, line->words[1]);
data/aevol-5.0+ds/src/libaevol/PointMutation.cpp:62:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/SmallDeletion.cpp:66:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/SmallInsertion.cpp:98:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/Stats.cpp:670:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(stat_files_names_[chrom_or_GU][best_or_glob][stat_type],
data/aevol-5.0+ds/src/libaevol/Stats.cpp:679:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(stat_files_names_[chrom_or_GU][best_or_glob][stat_type],
data/aevol-5.0+ds/src/libaevol/Stats.cpp:731:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(new_file_name, "%s.tmp", old_file_name);
data/aevol-5.0+ds/src/libaevol/Stats.cpp:784:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(new_file_name, "%s/%s", destdir.c_str(), old_file_name);
data/aevol-5.0+ds/src/libaevol/Stats.cpp:811:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(new_line, "0%s", strchr(line, ' '));
data/aevol-5.0+ds/src/libaevol/Stats.cpp:838:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp_file_name, "%s.tmp", cur_file_name);
data/aevol-5.0+ds/src/libaevol/Translocation.cpp:81:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:244:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(output_file_name, "%s", optarg);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:258:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lineage_file_name, "%s", argv[optind]);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:144:3:  [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(postfix, 255,
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:431:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(env_output_file_name, "stats/%s_envir%s.out", prefix, postfix);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:449: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(env_output_file, "%" PRId64, t);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:488:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(zones_output_file_name, "stats/%s_zones%s.out", prefix, postfix);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:590: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(zones_output_file, "%" PRId64, t);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:702:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(lineage_file_name, "%s", argv[optind]);
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:137:3:  [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(directory_name, 63, "analysis-generation_" TIMESTEP_FORMAT,
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:141: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(directory_name, F_OK) == 0) {
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:147: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.
    if (access(directory_name, X_OK | W_OK) != 0) {
data/aevol-5.0+ds/src/post_treatments/extract.cpp:311:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sequence_file_name, "%s", optarg);
data/aevol-5.0+ds/src/post_treatments/extract.cpp:316:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(triangles_file_name, "%s", optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:159:3:  [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(directory_name, 63, "analysis-generation_" TIMESTEP_FORMAT,
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:163: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(directory_name, F_OK) == 0) {
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:164: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.
    if (access(directory_name, X_OK | W_OK) != 0) {
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:67:3:  [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(directory_name, 255, "analysis-generation_" TIMESTEP_FORMAT,
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:71: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(directory_name, F_OK) == 0) {
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:72: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.
    if (access(directory_name, X_OK | W_OK) != 0) {
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:115:3:  [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(filename, 255, "%s/robustness-summary-%" PRId64 "-i%" PRId32 "-r%" PRId32,
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:121:3:  [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(filename, 255, "%s/robustness-detailed-%" PRId64 "-i%" PRId32 "-r%" PRId32,
data/aevol-5.0+ds/src/aevol_create.cpp:212:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/aevol_modify.cpp:522:62:  [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.
              std::make_shared<JumpingMT>(world->mut_prng()->random(1000000)));
data/aevol-5.0+ds/src/aevol_modify.cpp:538:36:  [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.
              world->stoch_prng()->random(1000000)));
data/aevol-5.0+ds/src/aevol_modify.cpp:946:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/aevol_propagate.cpp:100: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.
          make_unique<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:102: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.
          make_unique<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:107:45:  [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.
          std::make_unique<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:109:45:  [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.
          std::make_unique<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:113:43:  [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.
        std::make_shared<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:115:43:  [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.
        std::make_shared<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:121:51:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                exp_manager->world()->mut_prng()->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:127:53:  [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.
                exp_manager->world()->stoch_prng()->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:134:43:  [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.
        std::make_shared<JumpingMT>(prng->random(max)),
data/aevol-5.0+ds/src/aevol_propagate.cpp:135:43:  [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.
        std::make_shared<JumpingMT>(prng->random(max)));
data/aevol-5.0+ds/src/aevol_propagate.cpp:204:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/aevol_run.cpp:204: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.
              getopt_long(argc, argv, options_list, long_options_list, nullptr))
data/aevol-5.0+ds/src/libaevol/Dna.cpp:257:39:  [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.
    random_value = indiv_->mut_prng_->random(i);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:324:39:  [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.
    random_value = indiv_->mut_prng_->random(i);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:396: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.
    direct_sense = (indiv_->mut_prng_->random() < 0.5);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:400:32:  [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.
    rand1 = indiv_->mut_prng_->random();
data/aevol-5.0+ds/src/libaevol/Dna.cpp:410:35:  [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.
               indiv_->mut_prng_->random() *
data/aevol-5.0+ds/src/libaevol/Dna.cpp:421:43:  [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.
               log(1 / indiv_->mut_prng_->random() - 1) +
data/aevol-5.0+ds/src/libaevol/Dna.cpp:433:32:  [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.
    seed1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:434:32:  [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.
    seed2 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:578:46:  [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.
          direct_sense = (indiv_->mut_prng_->random() < 0.5);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:583:41:  [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.
                     indiv_->mut_prng_->random() *
data/aevol-5.0+ds/src/libaevol/Dna.cpp:590:49:  [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.
                     log(1 / indiv_->mut_prng_->random() - 1) +
data/aevol-5.0+ds/src/libaevol/Dna.cpp:595:38:  [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.
          seed1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:596:38:  [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.
          seed2 = indiv_->mut_prng_->random(segment_length);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:742:27:  [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.
  if (indiv_->mut_prng()->random() < indiv_->HT_ins_rate()) {
data/aevol-5.0+ds/src/libaevol/Dna.cpp:751:27:  [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.
  if (indiv_->mut_prng()->random() < indiv_->HT_repl_rate()) {
data/aevol-5.0+ds/src/libaevol/Dna.cpp:765:36:  [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.
  int32_t pos = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:779:36:  [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.
  int32_t pos = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:785: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.
    nb_insert = 1 + indiv_->mut_prng_->random(indiv_->max_indel_size());
data/aevol-5.0+ds/src/libaevol/Dna.cpp:809:64:  [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.
    inserted_char = static_cast<char>('0' + indiv_->mut_prng_->random(NB_BASE));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:830:36:  [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.
  int32_t pos = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:836:37:  [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.
    nb_del = 1 + indiv_->mut_prng_->random(indiv_->max_indel_size());
data/aevol-5.0+ds/src/libaevol/Dna.cpp:954:30:  [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.
  pos_1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:955:30:  [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.
  pos_2 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:956:30:  [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.
  pos_3 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:999:30:  [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.
  pos_1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1000:30:  [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.
  pos_2 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1062:36:  [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.
    pos_1_rel = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1063:36:  [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.
    pos_2_rel = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1068:51:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        Utils::mod(pos_1_rel + indiv_->mut_prng_->random(segment_length),
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1084:32:  [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.
    pos_4 = indiv_->mut_prng_->random(total_amount_of_dna - segment_length);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1127:34:  [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.
    invert = (indiv_->mut_prng_->random(2) == 0);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1169:32:  [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.
    pos_1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1170:32:  [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.
    pos_2 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1183: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.
    pos_3 = pos_1 + indiv_->mut_prng_->random(segment_length);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1186:32:  [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.
    pos_4 = indiv_->mut_prng_->random(length_ - segment_length);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1189:34:  [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.
    invert = (indiv_->mut_prng_->random(2) == 0);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1214:30:  [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.
  pos_1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1215:30:  [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.
  pos_2 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2540:39:  [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.
      cur_sense = (indiv_->mut_prng_->random() < 0.5) ? DIRECT : INDIRECT;
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2549:35:  [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.
               indiv_->mut_prng_->random() *
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2561:43:  [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.
               log(1 / indiv_->mut_prng_->random() - 1) +
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2569: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.
    int32_t seed1 = indiv_->mut_prng_->random(length_);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2570: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.
    int32_t seed2 = indiv_->mut_prng_->random(chrom2->length());
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2642:33:  [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.
             indiv_->mut_prng_->random() *
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2654:41:  [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.
             log(1 / indiv_->mut_prng_->random() - 1) +
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2662:54:  [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.
  int16_t first_research_sense = (indiv_->mut_prng_->random() < 0.5) ? 1 : -1;
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2673:29:  [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.
  while (indiv_->mut_prng_->random() < 1 - exp_m_->repl_HT_detach_rate()) {
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2735:29:  [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.
  while (indiv_->mut_prng_->random() < 1 - exp_m_->repl_HT_detach_rate()) {
data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp:273: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.
        if( prng->random() > binding_zeros_percentage)
data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp:275: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.
        	_binding_matrix[i][j] = prng->random();
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:164: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.
      if (random() < p) nb_success++;
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:176:15:  [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.
      t = t * random();
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:200: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.
        angle = M_PI * random();
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:209:14:  [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.
    } while (random() > t); // Reject. This happens about 1.5 times per deviate, on average.
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:227:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    x1 = 2.0 * random() - 1.0;
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:228:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    x2 = 2.0 * random() - 1.0;
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp:244:16:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    pick_one = random();
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:97:21:  [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.
    inline double   random();         // Double in [0, 1[ (uniform distribution)
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:98:21:  [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.
    inline int8_t   random(int8_t max);   // ~
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:99:21:  [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.
    inline int16_t  random(int16_t max);  // ~
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:100:21:  [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.
    inline int32_t  random(int32_t max);  // ~ > Integer in [0, max[ (uniform distribution)
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:101:21:  [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.
    inline int64_t  random(int64_t max);  // ~
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:169:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline double JumpingMT::random()
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:177:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
inline int8_t JumpingMT::random(int8_t max)
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:185:27:  [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.
inline int16_t JumpingMT::random(int16_t max)
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:193:27:  [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.
inline int32_t JumpingMT::random(int32_t max)
data/aevol-5.0+ds/src/libaevol/JumpingMT.h:201:27:  [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.
inline int64_t JumpingMT::random(int64_t max)
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:130:3:  [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(std::time(nullptr));
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1452: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.
    mut_seed_ = prng_->random(1000000);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1455:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    stoch_seed_ = prng_->random(1000000);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1459:56:  [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.
  auto world_prng = std::make_shared<JumpingMT>(prng_->random(1000000));
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1470:47:  [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.
  sel->set_prng(make_unique<JumpingMT>(prng_->random(1000000)));
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1472:52:  [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.
  sel->set_prng(std::make_unique<JumpingMT>(prng_->random(1000000)));
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1882:35:  [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.
      x = exp_m->world()->prng()->random(x_max);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1883:35:  [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.
      y = exp_m->world()->prng()->random(y_max);
data/aevol-5.0+ds/src/libaevol/Selection.cpp:277:32:  [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.
      int16_t rand_nb = prng_->random((int16_t) (total_size-z));
data/aevol-5.0+ds/src/libaevol/Selection.cpp:301:22:  [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.
          if (prng_->random() < ptransfer) { // will x give a plasmid to n ?
data/aevol-5.0+ds/src/libaevol/Selection.cpp:540:34:  [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.
    bool inverse_order = (prng_->random((int32_t) 2) < 0.5);
data/aevol-5.0+ds/src/libaevol/Selection.cpp:728:54:  [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.
    bool inverse_order = (new_indiv->get_mut_prng()->random((int32_t) 2) < 0.5);
data/aevol-5.0+ds/src/libaevol/World.cpp:112:74:  [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.
                             NULL,std::make_shared<JumpingMT>(mut_prng_->random(1000000)),
data/aevol-5.0+ds/src/libaevol/World.cpp:113:71:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                             std::make_shared<JumpingMT>(stoch_prng_->random(1000000)));
data/aevol-5.0+ds/src/libaevol/World.cpp:236: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.
    int16_t j = prng_->random(i + 1); // random in [0, 1]
data/aevol-5.0+ds/src/libaevol/World.cpp:256:28:  [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.
    int16_t old_x = prng_->random(width_);
data/aevol-5.0+ds/src/libaevol/World.cpp:257:28:  [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.
    int16_t old_y = prng_->random(height_);
data/aevol-5.0+ds/src/libaevol/World.cpp:258:28:  [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.
    int16_t new_x = prng_->random(width_);
data/aevol-5.0+ds/src/libaevol/World.cpp:259:28:  [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.
    int16_t new_y = prng_->random(height_);
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:84:28:  [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.
    data_[i] = '0' + prng->random(NB_BASE);
data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.cpp:129:23:  [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.
      if ( var_prng_->random() < env_switch_probability_) {         
data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.cpp:132:35:  [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.
          id_new_env = var_prng_->random(nb_env_in_list);
data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.cpp:144:25:  [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.
        if ( var_prng_->random() < env_switch_probability_) {         
data/aevol-5.0+ds/src/libaevol/raevol/PhenotypicTargetHandler_R.cpp:147:37:  [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.
            id_new_env = var_prng_->random(nb_env_in_list);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:218:20:  [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.
  while ((option = getopt_long(argc, argv, short_options, long_options,
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:672:19:  [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.
  while((option = getopt_long(argc, argv, short_options,
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:1191:20:  [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.
  while ((option = getopt_long(argc, argv, options_list,
data/aevol-5.0+ds/src/post_treatments/extract.cpp:286:20:  [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.
  while ((option = getopt_long(argc, argv, options_list,
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:489:19:  [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.
  while((option = getopt_long(argc, argv, short_options,
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:667:34:  [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.
      alea = mutant->mut_prng()->random();
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1003:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:233:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/post_treatments/view.cpp:137:20:  [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.
  while ((option = getopt_long(argc, argv, options_list, long_options_list,
data/aevol-5.0+ds/src/aevol_create.cpp:79: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 raw_chromosome[max_input_chrom_size];
data/aevol-5.0+ds/src/aevol_create.cpp:80:29:  [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* chromosome_file = fopen(chromosome_file_name, "r");
data/aevol-5.0+ds/src/aevol_create.cpp: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 raw_plasmid[max_input_plasmid_size];
data/aevol-5.0+ds/src/aevol_create.cpp:108: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* plasmid_file = fopen(plasmid_file_name, "r");
data/aevol-5.0+ds/src/aevol_modify.cpp:98: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 tree_file_name[50];
data/aevol-5.0+ds/src/aevol_modify.cpp:106: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".rae", timestep);
data/aevol-5.0+ds/src/aevol_modify.cpp:108: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(tree_file_name, "tree/tree_" TIMESTEP_FORMAT ".ae", timestep);
data/aevol-5.0+ds/src/aevol_modify.cpp:121: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).
  FILE* param_file = fopen(param_file_name, "r");
data/aevol-5.0+ds/src/aevol_modify.cpp:213:19:  [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).
      tree_step = atol(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:221: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).
      int step = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:227:48:  [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).
      exp_manager->output_m()->set_backup_step(atol(line->words[1]));
data/aevol-5.0+ds/src/aevol_modify.cpp:230:52:  [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).
      exp_manager->output_m()->set_big_backup_step(atol(line->words[1]));
data/aevol-5.0+ds/src/aevol_modify.cpp:309:32:  [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).
      int16_t max_indel_size = atol(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:398:39:  [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).
                                      atol(line->words[3]));
data/aevol-5.0+ds/src/aevol_modify.cpp:400:41:  [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).
            std::make_shared<JumpingMT>(atoi(line->words[4])));
data/aevol-5.0+ds/src/aevol_modify.cpp:403:35:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atof(line->words[2]), atol(line->words[3]), atoi(line->words[4]));
data/aevol-5.0+ds/src/aevol_modify.cpp:403:57:  [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).
            atof(line->words[2]), atol(line->words[3]), atoi(line->words[4]));
data/aevol-5.0+ds/src/aevol_modify.cpp:410:39:  [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).
                                      atol(line->words[3]));
data/aevol-5.0+ds/src/aevol_modify.cpp:412:41:  [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).
            std::make_shared<JumpingMT>(atoi(line->words[4])));
data/aevol-5.0+ds/src/aevol_modify.cpp:415:35:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atof(line->words[2]), atol(line->words[3]), atoi(line->words[4]));
data/aevol-5.0+ds/src/aevol_modify.cpp:415:57:  [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).
            atof(line->words[2]), atol(line->words[3]), atoi(line->words[4]));
data/aevol-5.0+ds/src/aevol_modify.cpp:422:41:  [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).
            std::make_shared<JumpingMT>(atoi(line->words[2])));
data/aevol-5.0+ds/src/aevol_modify.cpp:425:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            atoi(line->words[2]));
data/aevol-5.0+ds/src/aevol_modify.cpp:444: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).
      int32_t plasmid_minimal_length = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:461: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).
      int32_t plasmid_maximal_length = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:474: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).
      int32_t chromosome_minimal_length = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:487: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).
      int32_t chromosome_maximal_length = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:500:22:  [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).
      int32_t seed = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:512:14:  [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(line->words[1]));
data/aevol-5.0+ds/src/aevol_modify.cpp:515: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).
      int32_t mut_seed = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:528:14:  [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(line->words[1]));
data/aevol-5.0+ds/src/aevol_modify.cpp:531:28:  [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).
      int32_t stoch_seed = atoi(line->words[1]);
data/aevol-5.0+ds/src/aevol_modify.cpp:544:14:  [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(line->words[1]));
data/aevol-5.0+ds/src/aevol_modify.cpp:628: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".rae", timestep);
data/aevol-5.0+ds/src/aevol_modify.cpp:630: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(tree_file_name, "tree/tree_" TIMESTEP_FORMAT ".ae", timestep);
data/aevol-5.0+ds/src/aevol_modify.cpp:656: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 line[255];
data/aevol-5.0+ds/src/aevol_modify.cpp:968: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).
        timestep = atoi(optarg);
data/aevol-5.0+ds/src/aevol_propagate.cpp:216: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).
        timestep = atoi(optarg);
data/aevol-5.0+ds/src/aevol_run.cpp:216:14:  [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).
        t0 = atol(optarg);
data/aevol-5.0+ds/src/aevol_run.cpp:224:17:  [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).
        t_end = atol(optarg);
data/aevol-5.0+ds/src/aevol_run.cpp:232:20:  [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).
        nb_steps = atol(optarg);
data/aevol-5.0+ds/src/aevol_run.cpp:257:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
          if (atoi(optarg) > 0) {
data/aevol-5.0+ds/src/aevol_run.cpp:258: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).
            omp_set_num_threads(atoi(optarg));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1282: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(duplicate_segment, &data_[pos_1], seg_length);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1303: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(duplicate_segment, &data_[pos_1], tmp1_len);     // Copy tmp1
data/aevol-5.0+ds/src/libaevol/Dna.cpp:1304: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(&duplicate_segment[tmp1_len], data_, tmp2_len);  // Copy tmp2
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2275: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(sequence_GU_1, &data_[pos_1], length_GU_1 * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2281: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(sequence_GU_0, data_, pos_1 * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2282: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(&sequence_GU_0[pos_1], &data_[pos_2],
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2331: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(sequence_new_GU, &data_[pos_1], length_new_GU * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2334: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(sequence_new_GU, &data_[pos_1], (length_ - pos_1) * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2335: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(&sequence_new_GU[length_ - pos_1], &data_[0], pos_2 * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2403: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_seq, data_, len_A * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2425: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_seq[len_A], seq_Cp, len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2426: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_seq[len_A + len_C], seq_Dp, len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2433: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_seq[len_A], &GUti_data[pos_D], len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2434: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_seq[len_A + len_D], GUti_data, len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2438: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_seq[len_A + len_C + len_D], &data_[pos_B], len_B * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2835: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_genome, data_, len_A * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2836: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_genome[len_A], &data_[pos_D], len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2837: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_genome[len_AD], &data_[pos_C], len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2838: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_genome[len_ADC], &data_[pos_B], len_B * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2839: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_genome[len_ADCB], &data_[pos_E], len_E * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2936: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_genome, data_, len_A * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2937: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_genome[len_A], &data_[pos_D], len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2951: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_genome[len_AD], inverted_segment, len_B * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2967: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_genome[len_ADB], inverted_segment, len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:2972: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_genome[len_ADBC], &data_[pos_E], len_E * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3074: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_genome, data_, len_A * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3088: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_genome[len_A], inverted_segment, len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3104: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_genome[len_AC], inverted_segment, len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3109: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_genome[len_ACD], &data_[pos_B], len_B * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3110: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_genome[len_ACDB], &data_[pos_E], len_E * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3205: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_sequence_this, data_, len_A * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3206: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_sequence_this[len_A], &data_[pos_C], len_C * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3214: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_sequence_dest, dest_GU_former_seq, len_D * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3215: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_sequence_dest[len_D], &data_[pos_B], len_B * sizeof(char));
data/aevol-5.0+ds/src/libaevol/Dna.cpp:3216: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_sequence_dest[len_DB], &dest_GU_former_seq[pos_E],
data/aevol-5.0+ds/src/libaevol/Dump.cpp:103: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_buffer,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:106: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).
  current_file = fopen(filename_buffer, "w+");
data/aevol-5.0+ds/src/libaevol/Dump.cpp:131: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_buffer,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:134: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).
  current_file = fopen(filename_buffer, "w+");
data/aevol-5.0+ds/src/libaevol/Dump.cpp:157: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_buffer,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:160: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).
  current_file = fopen(filename_buffer, "w+");
data/aevol-5.0+ds/src/libaevol/Dump.cpp:183: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_buffer,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:186: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).
  current_file = fopen(filename_buffer, "w+");
data/aevol-5.0+ds/src/libaevol/Dump.cpp:210: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_buffer,
data/aevol-5.0+ds/src/libaevol/Dump.cpp:213: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).
  current_file = fopen(filename_buffer, "w");
data/aevol-5.0+ds/src/libaevol/Dump.h:79: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_buffer[AE_DUMP_FILENAME_BUFSIZE_];
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:507:20:  [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* org_file = fopen(BEST_LAST_ORG_FNAME, "w");
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:522: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 cur_dir_name[255];
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:565:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 mode[3],
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:573: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 exp_backup_file_name[255];
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:574: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 world_file_name[255];
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:615: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 mode[3],
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:619: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 exp_s_file_name[255];
data/aevol-5.0+ds/src/libaevol/ExpManager.cpp:620: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 out_p_file_name[255];
data/aevol-5.0+ds/src/libaevol/ExpManager.h:189:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 mode[3],
data/aevol-5.0+ds/src/libaevol/ExpManager.h:196:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 mode[3],
data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp:687: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 t[40];
data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp:727: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 scale_txt[40];
data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp:728: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(scale_txt,"%.2e", grid_max);
data/aevol-5.0+ds/src/libaevol/ExpManager_X11.cpp:730: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(scale_txt,"%.2e", grid_min);
data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp: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( binding_matrix_file_name, "binding_matrix.rae" );
data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp:234: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( binding_matrix_file_name, "binding_matrix.rae" );
data/aevol-5.0+ds/src/libaevol/ExpSetup.cpp:290: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( binding_matrix_file_name, "binding_matrix.rae" );
data/aevol-5.0+ds/src/libaevol/Individual.cpp:265: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(strain_name_, other.strain_name_, strain_string_len + 1);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:367: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(strain_name_, parent->strain_name_, strain_string_len + 1);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:1047: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(strain_name_, name, name_len + 1);
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:124: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 display_string[40];
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:125: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(display_string, "Main chromosome size : %" PRId32 "bp", genome_length);
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:127: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(display_string, "Leading : %" PRId32 " CDSs", static_cast<int32_t>(gen_unit->protein_list(LEADING).size()));
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:129: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(display_string, "Lagging : %" PRId32 " CDSs", static_cast<int32_t>(gen_unit->protein_list(LAGGING).size()));
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp: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 nb_rna[40];
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:562: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(nb_rna, "Leading : %" PRId32 " RNAs", static_cast<int32_t>(gen_unit->rna_list()[LEADING].size()));
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:564: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(nb_rna, "Lagging : %" PRId32 " RNAs", static_cast<int32_t>(gen_unit->rna_list()[LAGGING].size()));
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:679: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(color, "#FFFFFF");
data/aevol-5.0+ds/src/libaevol/Individual_X11.cpp:777: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(color, "#FFFFFF");
data/aevol-5.0+ds/src/libaevol/InsertionHT.cpp:47: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(seq_, seq, length_ + 1);
data/aevol-5.0+ds/src/libaevol/JumpingMT.cpp: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(sfmt_->state, model.sfmt_->state, SFMT_N*sizeof(sfmt_->state[0]));
data/aevol-5.0+ds/src/libaevol/Logging.cpp:109:30:  [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* old_transfer_log = fopen("log_transfer.out.old", "r");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:116:21:  [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).
    transfer_log_ = fopen("log_transfer.out", "w");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:138:21:  [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).
    while ((int32_t)atol(line) < num_gener && !feof(old_transfer_log))
data/aevol-5.0+ds/src/libaevol/Logging.cpp:159: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* old_rear_log = fopen("log_rear.out.old", "r");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:166:17:  [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).
    rear_log_ = fopen("log_rear.out", "w");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:188:21:  [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).
    while ((int32_t)atol(line) < num_gener && !feof(old_rear_log))
data/aevol-5.0+ds/src/libaevol/Logging.cpp:202:29:  [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* old_barrier_log = fopen("log_barrier.out.old", "r");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:209:20:  [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).
    barrier_log_ = fopen("log_barrier.out", "w");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:231:21:  [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).
    while ((int32_t)atol(line) < num_gener && !feof(old_barrier_log))
data/aevol-5.0+ds/src/libaevol/Logging.cpp:295:21:  [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).
    transfer_log_ = fopen("log_transfer.out", "w");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:304:17:  [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).
    rear_log_ = fopen("log_rear.out", "w");
data/aevol-5.0+ds/src/libaevol/Logging.cpp:313:20:  [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).
    barrier_log_ = fopen("log_barrier.out", "w");
data/aevol-5.0+ds/src/libaevol/OutputManager.cpp:213: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* lg_file = fopen(LAST_GENER_FNAME, "r");
data/aevol-5.0+ds/src/libaevol/OutputManager.cpp:237: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 tree_file_name[50];
data/aevol-5.0+ds/src/libaevol/OutputManager.cpp:239: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(tree_file_name, "tree/tree_" TIMESTEP_FORMAT ".ae", AeTime::time());
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:117: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(login_name, "anon");
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:278: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).
  param_file_  = fopen(param_file_name_,  "r");
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:432:18:  [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).
    dump_step_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:437:20:  [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).
    backup_step_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:441:24:  [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).
    big_backup_step_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:445:18:  [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).
    tree_step_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:466:34:  [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).
    chromosome_initial_length_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:476:28:  [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).
      min_genome_length_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:493:28:  [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).
      max_genome_length_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:498:22:  [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).
    init_pop_size_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:502: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).
    grid_width_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:503: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).
    grid_height_ = atoi(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:529:37:  [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).
      partial_mix_nb_permutations = atol(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:576:23:  [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).
    max_indel_size_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:630:26:  [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).
        align_lin_min_ = atol(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:631:26:  [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).
        align_lin_max_ = atol(line->words[3]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:640:30:  [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).
        align_sigm_lambda_ = atol(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:641:28:  [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).
        align_sigm_mean_ = atol(line->words[3]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:654:24:  [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).
    align_max_shift_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:658:27:  [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).
    align_w_zone_h_len_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:662:26:  [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).
    align_match_bonus_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:666:28:  [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).
    align_mismatch_cost_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:738: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).
    seed_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:751:17:  [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).
    mut_seed_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:764:19:  [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).
    stoch_seed_ = atol(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:888: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).
      if ( atoi(line->words[1]) - 1 < _env_gaussians_list.size() && atoi(line->words[1]) > 0)
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:888:69:  [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(line->words[1]) - 1 < _env_gaussians_list.size() && atoi(line->words[1]) > 0)
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:890: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).
        (_env_gaussians_list.at( atoi(line->words[1]) - 1)).push_back
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:907: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).
    env_sampling_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:944:22:  [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).
      env_var_tau_ = atol(line->words[3]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:945: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).
      env_var_seed_ = atoi(line->words[4]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:959:22:  [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).
      env_var_tau_ = atol(line->words[3]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:960: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).
      env_var_seed_ = atoi(line->words[4]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:973: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).
      env_var_seed_ = atoi(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1019: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).
      env_noise_sampling_log_ = atoi(line->words[2]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1023: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).
      env_noise_seed_ = atoi(line->words[6]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1089:31:  [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).
    plasmid_initial_length_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1093:29:  [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).
    plasmid_initial_gene_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1097:31:  [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).
    plasmid_minimal_length_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1101:31:  [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).
    plasmid_maximal_length_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1105: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).
    chromosome_minimal_length_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1109: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).
    chromosome_maximal_length_ = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1186: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).
    _fuzzy_flavor = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1204: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).
      _nb_degradation_step = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1208: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).
      _nb_indiv_age = atoi(line->words[1]);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1234:71:  [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).
      for (int i = 1; i < line->nb_words; i++) _list_eval_step.insert(atoi(line->words[i]));
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1259: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).
      int16_t nb_env = atoi( line->words[1] );
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1337: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).
      if ( atoi(line->words[1]) - 1 < _env_signals_list.size() && atoi(line->words[1]) > 0)
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1337:67:  [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(line->words[1]) - 1 < _env_signals_list.size() && atoi(line->words[1]) > 0)
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1339: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).
        (_env_signals_list.at( atoi(line->words[1]) - 1)).push_back(atoi(line->words[2]) - 1);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1339:69:  [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).
        (_env_signals_list.at( atoi(line->words[1]) - 1)).push_back(atoi(line->words[2]) - 1);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:1961: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 line[255];
data/aevol-5.0+ds/src/libaevol/ParameterLine.h: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    words[50][255];
data/aevol-5.0+ds/src/libaevol/PhenotypicTarget.cpp:70: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(area_by_feature_,
data/aevol-5.0+ds/src/libaevol/ReplacementHT.cpp:48: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(seq_, seq, length_ + 1);
data/aevol-5.0+ds/src/libaevol/ReplacementHT.cpp:70: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(str, "%" PRId8 " %" PRId32 " %" PRId32 " %" PRId32 " %" PRId32
data/aevol-5.0+ds/src/libaevol/SmallInsertion.cpp:48: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(seq_, other.seq_, length_ + 1);
data/aevol-5.0+ds/src/libaevol/SmallInsertion.cpp:55: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(seq_, seq, length_);
data/aevol-5.0+ds/src/libaevol/SmallInsertion.cpp: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(seq_, other.seq_, length_ + 1);
data/aevol-5.0+ds/src/libaevol/Stats.cpp:706: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).
              fopen(stat_files_names_[chrom_or_GU][best_or_glob][stat_type],
data/aevol-5.0+ds/src/libaevol/Stats.cpp:722: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  line[500];
data/aevol-5.0+ds/src/libaevol/Stats.cpp:733: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).
          old_file = fopen(old_file_name, "r");
data/aevol-5.0+ds/src/libaevol/Stats.cpp:734: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).
          new_file = fopen(new_file_name, "w");
data/aevol-5.0+ds/src/libaevol/Stats.cpp:749:27:  [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).
          while ((int64_t)atol(line) <= time && !feof(old_file)) {
data/aevol-5.0+ds/src/libaevol/Stats.cpp:775: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  line[500];
data/aevol-5.0+ds/src/libaevol/Stats.cpp:786: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).
          old_file = fopen(old_file_name, "r");
data/aevol-5.0+ds/src/libaevol/Stats.cpp:787: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).
          new_file = fopen(new_file_name, "w");
data/aevol-5.0+ds/src/libaevol/Stats.cpp:802:27:  [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).
          while ((int64_t)atol(line) < propagated_timestep && !feof(old_file)) {
data/aevol-5.0+ds/src/libaevol/Stats.cpp:810: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 new_line[strlen(line)+1];
data/aevol-5.0+ds/src/libaevol/Stats.cpp:851: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).
              fopen(cur_file_name, "a");
data/aevol-5.0+ds/src/libaevol/X11Window.cpp:523: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(color, "#%02x%02x%02x", red, green, blue);
data/aevol-5.0+ds/src/libaevol/ae_logger.h:62:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	loggerFile.open(ae_logger::logFile,ios::out | ios::app );
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:71: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_, model.data_, (length_ +1) * sizeof(char));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp: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(data_, seq, (length+1) * sizeof(char));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:120:20:  [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* org_file = fopen(organism_file_name, "r");
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:170: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_genome, data_, pos_1 * sizeof(char));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:171: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_genome[pos_1], &data_[pos_2],
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:199: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_genome, data_, pos * sizeof(char));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:200: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_genome[pos], seq, seq_length * sizeof(char));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:201: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_genome[pos+seq_length], &data_[pos],
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:228:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(&data_[pos], seq, seq_length * sizeof(char));
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:113: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( color, "#FFFFFF" );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp: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 display_string[40];
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:128: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( display_string, "Nb proteins: %" PRId32 " (inherited: %ld)",nb_prot,_inherited_protein_list.size());
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:133: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( display_string, "Nb proteins: %" PRId32 " (without heredity)",nb_prot);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:138: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( display_string, "Life duration: %" PRId32 "",life_time);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:199:9:  [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( color2, "#FFFFFF" );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:252: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( color_bar, "#%02x%02x%02x", 255 - (i * 255 * 2) / win->width(),0,0 );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:258: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( color_bar, "#%02x%02x%02x",0, ((i - (win->width() / 2)) * 255 * 2 ) / win->width(), 0 );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:264:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char display_string[80];
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:289: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( color, "#FFFFFF" );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:374: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( display_string, "Activation links: %" PRId32 ", mean: %lf (max: %lf min:%lf)", nb_activators,mean_activator_activity/(double)nb_activators,max_activator_activity,min_activator_activity);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:376: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( display_string, "Inhibition links: %" PRId32 ", mean: %lf (max: %lf min: %lf)", nb_operators,mean_operator_activity/(double)nb_operators,max_operator_activity,min_operator_activity);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:445:13:  [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(color, "#%02x%02x%02x", 0,
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:453:13:  [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(color, "#%02x%02x%02x", (int) ((255 * merged_influence) /
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:512: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( color, "#FFFFFF" );
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:515: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 display_string[40];
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:583: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( display_string, " t = %" PRId32 ", dist_to_target =  %lf",i,dist_to_target_by_feature_[METABOLISM]);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:589: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( display_string, "Mean dist_to_target =  %lf",dist_temp/(double)nb_eval);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:120: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* output_summary = fopen(output_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:231:17:  [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).
        begin = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:234:15:  [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).
        end = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:237:22:  [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).
        nb_mutants = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:240:18:  [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).
        period = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:143: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 postfix[255];
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:168: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 fixed_mutations_file_name[255];
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:173:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fixed_mutations_file = fopen(fixed_mutations_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:241: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 mut_descr_string[255];
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:344: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(str1, gen_unit.dna()->data(), \
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:349: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(str2, (stored_gen_unit->dna())->data(),
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:432: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).
  FILE* env_output_file = fopen(env_output_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:463:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE* term_output_file = fopen(term_output_file_name.c_str(), "w");
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:489:29:  [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* zones_output_file = fopen(zones_output_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:609:31:  [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* operons_output_file = fopen(operons_output_file_name.c_str(), "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:136: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 directory_name[64];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:210: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[128];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:212:24:  [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 * drawingfile = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:327: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[128];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:329:24:  [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 * drawingfile = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:448: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[128];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:450:24:  [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 * drawingfile = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:582: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[128];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:584:24:  [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 * drawingfile = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:861: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[128];
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:863:24:  [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 * drawingfile = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:1203:24:  [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).
        indiv_index  = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:1207:23:  [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).
        indiv_rank  = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/create_eps.cpp:1216:20:  [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).
        timestep = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/extract.cpp:66: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).
    triangles_file = fopen(triangles_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/extract.cpp:91:21:  [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).
    sequence_file = fopen(sequence_file_name,"w");
data/aevol-5.0+ds/src/post_treatments/extract.cpp:298:20:  [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).
        timestep = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/extract.cpp:306:14:  [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).
        gu = atoi(optarg);
data/aevol-5.0+ds/src/post_treatments/extract.cpp:331: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(sequence_file_name, "sequence");
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:57: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 tree_file_name[255]; // TODO(dpa) remove magic number
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:136: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".rae", t_end);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:138: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".ae", t_end);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:187: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 output_file_name[101];
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:240: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".rae", t);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:242: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(tree_file_name,"tree/tree_" TIMESTEP_FORMAT ".ae", t);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:373: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(str1, unit->dna()->data(),
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:378: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(str2, stored_gen_unit->dna()->data(),
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:506:15:  [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).
        t0  = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:515:17:  [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).
        t_end = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:523: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).
        final_indiv_index  = atoi(optarg);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:527:29:  [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).
        final_indiv_rank  = atoi(optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp: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 mutation_type_name[24];
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:158: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 directory_name[64];
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp: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 output_file_name[256];
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:186: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* output = fopen(output_file_name, "w");
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1019:21:  [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).
        num_gener = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1028:23:  [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).
        wanted_rank = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1040:24:  [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).
        wanted_index = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1044:40:  [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).
        mutation_type = (MutationType) atol(optarg);
data/aevol-5.0+ds/src/post_treatments/mutagenesis.cpp:1063:22:  [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).
        nb_mutants = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:66: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 directory_name[255];
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:114: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[255];
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:117: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* output_summary = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:123: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).
  FILE* output_detailed = fopen(filename, "w");
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:243:20:  [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).
        timestep = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:246:23:  [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).
        nb_children = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:252:23:  [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).
        wanted_rank = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/robustness.cpp:258:24:  [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).
        wanted_index = atol(optarg);
data/aevol-5.0+ds/src/post_treatments/view.cpp:149:20:  [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).
        timestep = atol(optarg);
data/aevol-5.0+ds/src/aevol_create.cpp:92: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).
    lchromosome = strlen(raw_chromosome) - 1;
data/aevol-5.0+ds/src/aevol_create.cpp:96:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(chromosome, raw_chromosome, lchromosome);
data/aevol-5.0+ds/src/aevol_create.cpp:119: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).
    lplasmid = strlen(raw_plasmid) - 1;
data/aevol-5.0+ds/src/aevol_create.cpp:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(plasmid, raw_plasmid, lplasmid);
data/aevol-5.0+ds/src/aevol_create.cpp:224: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).
        param_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/aevol_create.cpp:229: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).
        chromosome_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/aevol_create.cpp:234: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).
        plasmid_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/aevol_create.cpp:247: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).
    param_file_name = new char[strlen(DEFAULT_PARAM_FILE_NAME) + 1];
data/aevol-5.0+ds/src/aevol_modify.cpp:980: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).
    param_file_name = new char[strlen(DEFAULT_PARAM_FILE_NAME) + 1];
data/aevol-5.0+ds/src/aevol_propagate.cpp:229: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).
        output_dir = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/libaevol/Dna.cpp:161:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(subseq, &(data_[from]), to - from);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:166:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(subseq, &(data_[from]), length_ - from);
data/aevol-5.0+ds/src/libaevol/Dna.cpp:167:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(&subseq[length_ - from], data_, to);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:85: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).
  strain_name_ = new char[strlen(strain_name) + 1];
data/aevol-5.0+ds/src/libaevol/Individual.cpp:263: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).
  int strain_string_len = strlen(other.strain_name_);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:365: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).
  int strain_string_len = strlen(parent->strain_name_);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:1043: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).
  assert(name && strlen(name) < INT8_MAX); // Conservative, could be <=
data/aevol-5.0+ds/src/libaevol/Individual.cpp:1044: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).
  int8_t name_len = strlen(name);
data/aevol-5.0+ds/src/libaevol/Individual.cpp:1614: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).
  int8_t strain_string_len = strlen(strain_name_);
data/aevol-5.0+ds/src/libaevol/IndividualFactory.cpp:165:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(plasmid_genome,
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:120:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(strain_name_, login_name, STRAIN_NAME_LOGIN_SIZE + 1);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:128:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int strain_name_len = strlen(strain_name_);
data/aevol-5.0+ds/src/libaevol/ParamLoader.cpp:312: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).
    strain_name_ = new char[strlen(line->words[1])+1];
data/aevol-5.0+ds/src/libaevol/Stats.cpp:810: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 new_line[strlen(line)+1];
data/aevol-5.0+ds/src/libaevol/X11Window.cpp:278: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).
  XDrawImageString(display_, window_, gcWhite_, x, y, str, strlen(str));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:135:36:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      data_[i] = static_cast<char>(fgetc(org_file));
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:190: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).
    seq_length = strlen(seq);
data/aevol-5.0+ds/src/libaevol/ae_string.cpp:221: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).
    seq_length = strlen(seq);
data/aevol-5.0+ds/src/libaevol/ae_string.h:132: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).
  length_ = (length != -1) ? length : strlen(data_);
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:265:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  sprintf( display_string, "-");
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:267:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  sprintf( display_string, "0");
data/aevol-5.0+ds/src/libaevol/raevol/Individual_R_X11.cpp:269:3:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  sprintf( display_string, "+");
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:243: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).
        output_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/post_treatments/ancestor_robustness.cpp:257: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).
  lineage_file_name = new char[strlen(argv[optind]) + 1];
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:361:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fprintf(stderr, "Rebuilt unit : %" PRId32 " bp\n %s\n", (int32_t)strlen(str1), str1);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:362:74:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fprintf(stderr, "Stored unit  : %" PRId32 " bp\n %s\n", (int32_t)strlen(str2), str2);
data/aevol-5.0+ds/src/post_treatments/ancestor_stats.cpp:701: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).
  lineage_file_name = new char[strlen(argv[optind]) + 1];
data/aevol-5.0+ds/src/post_treatments/extract.cpp:310: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).
        sequence_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/post_treatments/extract.cpp:315: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).
        triangles_file_name = new char[strlen(optarg) + 1];
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:390: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).
                (int32_t)strlen(str1), str1);
data/aevol-5.0+ds/src/post_treatments/lineage.cpp:392: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).
                (int32_t)strlen(str2), str2);

ANALYSIS SUMMARY:

Hits = 515
Lines analyzed = 48097 in approximately 1.42 seconds (33863 lines/second)
Physical Source Lines of Code (SLOC) = 27012
Hits@level = [0] 1340 [1]  41 [2] 298 [3] 116 [4]  60 [5]   0
Hits@level+ = [0+] 1855 [1+] 515 [2+] 474 [3+] 176 [4+]  60 [5+]   0
Hits/KSLOC@level+ = [0+] 68.6732 [1+] 19.0656 [2+] 17.5478 [3+] 6.51562 [4+] 2.22124 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.