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/anymeal-1.12/tests/test_ingredient.cc
Examining data/anymeal-1.12/tests/test_export.cc
Examining data/anymeal-1.12/tests/gtest-all.cc
Examining data/anymeal-1.12/tests/test_mealmaster.cc
Examining data/anymeal-1.12/tests/suite.cc
Examining data/anymeal-1.12/tests/test_recode.cc
Examining data/anymeal-1.12/tests/test_partition.cc
Examining data/anymeal-1.12/tests/test_recipe.cc
Examining data/anymeal-1.12/tests/test_database.cc
Examining data/anymeal-1.12/tests/test_html.cc
Examining data/anymeal-1.12/anymeal/titles_model.cc
Examining data/anymeal-1.12/anymeal/moc_instructions_model.cc
Examining data/anymeal-1.12/anymeal/moc_category_dialog.cc
Examining data/anymeal-1.12/anymeal/moc_ingredient_model.cc
Examining data/anymeal-1.12/anymeal/export.cc
Examining data/anymeal-1.12/anymeal/ingredient_model.cc
Examining data/anymeal-1.12/anymeal/categories_model.cc
Examining data/anymeal-1.12/anymeal/qrc_anymeal.cc
Examining data/anymeal-1.12/anymeal/category_dialog.cc
Examining data/anymeal-1.12/anymeal/html.cc
Examining data/anymeal-1.12/anymeal/recode.cc
Examining data/anymeal-1.12/anymeal/ingredient.cc
Examining data/anymeal-1.12/anymeal/mealmaster.cc
Examining data/anymeal-1.12/anymeal/edit_dialog.cc
Examining data/anymeal-1.12/anymeal/main_window.cc
Examining data/anymeal-1.12/anymeal/instructions_model.cc
Examining data/anymeal-1.12/anymeal/moc_titles_model.cc
Examining data/anymeal-1.12/anymeal/anymeal.cc
Examining data/anymeal-1.12/anymeal/import_dialog.cc
Examining data/anymeal-1.12/anymeal/export_dialog.cc
Examining data/anymeal-1.12/anymeal/moc_categories_model.cc
Examining data/anymeal-1.12/anymeal/moc_import_dialog.cc
Examining data/anymeal-1.12/anymeal/database.cc
Examining data/anymeal-1.12/anymeal/converter_window.cc
Examining data/anymeal-1.12/anymeal/moc_main_window.cc
Examining data/anymeal-1.12/anymeal/moc_edit_dialog.cc
Examining data/anymeal-1.12/anymeal/moc_export_dialog.cc
Examining data/anymeal-1.12/anymeal/moc_converter_window.cc
Examining data/anymeal-1.12/anymeal/partition.cc
Examining data/anymeal-1.12/anymeal/recipe.cc

FINAL RESULTS:

data/anymeal-1.12/anymeal/anymeal.cc:18:30:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  QString country = QLocale::system().name().mid(0, 2);
data/anymeal-1.12/anymeal/database.cc:84:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
void Database::open(const char *filename) {
data/anymeal-1.12/anymeal/main_window.cc:80:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_database.open(dir.filePath("anymeal.sqlite").toUtf8().constData());
data/anymeal-1.12/anymeal/mealmaster.cc:1210: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).
  recipe.set_servings(atoi(yytext));
data/anymeal-1.12/anymeal/mealmaster.cc:1253: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).
  ingredient_.set_amount_integer(atoi(yytext));
data/anymeal-1.12/anymeal/mealmaster.cc:1349:36:  [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).
  ingredient_.set_amount_numerator(atoi(yytext));
data/anymeal-1.12/anymeal/mealmaster.cc:1400:38:  [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).
  ingredient_.set_amount_denominator(atoi(yytext));
data/anymeal-1.12/anymeal/moc_categories_model.cc:25: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 stringdata0[16];
data/anymeal-1.12/anymeal/moc_category_dialog.cc:25: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 stringdata0[15];
data/anymeal-1.12/anymeal/moc_converter_window.cc:25: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 stringdata0[54];
data/anymeal-1.12/anymeal/moc_edit_dialog.cc:25: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 stringdata0[438];
data/anymeal-1.12/anymeal/moc_export_dialog.cc:25: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 stringdata0[13];
data/anymeal-1.12/anymeal/moc_import_dialog.cc:25: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 stringdata0[32];
data/anymeal-1.12/anymeal/moc_ingredient_model.cc:25: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 stringdata0[16];
data/anymeal-1.12/anymeal/moc_instructions_model.cc:25: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 stringdata0[18];
data/anymeal-1.12/anymeal/moc_main_window.cc:25: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 stringdata0[262];
data/anymeal-1.12/anymeal/moc_titles_model.cc:25: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 stringdata0[12];
data/anymeal-1.12/tests/test_database.cc:10:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:20:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:28:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  EXPECT_THROW(database.open("/tmp/nosuchdir/anymeal.db"), database_exception);
data/anymeal-1.12/tests/test_database.cc:33:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:44:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:57:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:70:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:87:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:93:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:107:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:120:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:144:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:157:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:169:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:181:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:198:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:215:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:234:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:252:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:270:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:292:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:314:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:347:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/tests/test_database.cc:361:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  database.open(":memory:");
data/anymeal-1.12/anymeal/mealmaster.cc:762:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  yystream->read(buffer, max_size); \
data/anymeal-1.12/anymeal/mealmaster.cc:939:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/anymeal-1.12/anymeal/mealmaster.cc:2516: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).
	return yy_scan_bytes(yystr,strlen(yystr) );

ANALYSIS SUMMARY:

Hits = 44
Lines analyzed = 25162 in approximately 2.34 seconds (10768 lines/second)
Physical Source Lines of Code (SLOC) = 23395
Hits@level = [0]   2 [1]   3 [2]  40 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  46 [1+]  44 [2+]  41 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 1.96623 [1+] 1.88074 [2+] 1.75251 [3+] 0.0427442 [4+] 0.0427442 [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.