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/kholidays-5.74.0/autotests/testholidayregion.h Examining data/kholidays-5.74.0/autotests/testsunriseset.h Examining data/kholidays-5.74.0/autotests/testlunar.h Examining data/kholidays-5.74.0/autotests/testsunriseset.cpp Examining data/kholidays-5.74.0/autotests/testseasons.h Examining data/kholidays-5.74.0/autotests/testlunar.cpp Examining data/kholidays-5.74.0/autotests/testholidayregion.cpp Examining data/kholidays-5.74.0/autotests/testseasons.cpp Examining data/kholidays-5.74.0/autotests/testzodiac.cpp Examining data/kholidays-5.74.0/src/sunriseset.cpp Examining data/kholidays-5.74.0/src/lunarphase.cpp Examining data/kholidays-5.74.0/src/holiday.h Examining data/kholidays-5.74.0/src/holidayregion.cpp Examining data/kholidays-5.74.0/src/lunarphase.h Examining data/kholidays-5.74.0/src/astroseasons.h Examining data/kholidays-5.74.0/src/declarative/holidayregionsmodel.h Examining data/kholidays-5.74.0/src/declarative/holidayregionsmodel.cpp Examining data/kholidays-5.74.0/src/declarative/kholidaysdeclarativeplugin.h Examining data/kholidays-5.74.0/src/declarative/kholidaysdeclarativeplugin.cpp Examining data/kholidays-5.74.0/src/holidayregion.h Examining data/kholidays-5.74.0/src/zodiac.cpp Examining data/kholidays-5.74.0/src/sunriseset.h Examining data/kholidays-5.74.0/src/zodiac.h Examining data/kholidays-5.74.0/src/holiday_p.h Examining data/kholidays-5.74.0/src/holiday.cpp Examining data/kholidays-5.74.0/src/parsers/qcalendarsystem_p.h Examining data/kholidays-5.74.0/src/parsers/holidayparserdriver_p.h Examining data/kholidays-5.74.0/src/parsers/holidayparserdriver.cpp Examining data/kholidays-5.74.0/src/parsers/qcalendarsystem.cpp Examining data/kholidays-5.74.0/src/parsers/plan2/holidayscannerplan_p.h Examining data/kholidays-5.74.0/src/parsers/plan2/holidayparserdriverplan.cpp Examining data/kholidays-5.74.0/src/parsers/plan2/FlexLexer.h Examining data/kholidays-5.74.0/src/parsers/plan2/holidayscannerplan.cpp Examining data/kholidays-5.74.0/src/parsers/plan2/holidayparserplan.hpp Examining data/kholidays-5.74.0/src/parsers/plan2/holidayparserplan.cpp Examining data/kholidays-5.74.0/src/parsers/plan2/holidayparserdriverplan_p.h Examining data/kholidays-5.74.0/src/astroseasons.cpp FINAL RESULTS: data/kholidays-5.74.0/src/parsers/plan2/holidayparserdriverplan.cpp:48:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (holidayFile.open(QIODevice::ReadOnly)) { data/kholidays-5.74.0/src/parsers/plan2/holidayscannerplan.cpp:1677: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). { yylval->ival = atoi(yytext); return token::NUMBER; } data/kholidays-5.74.0/src/parsers/plan2/holidayscannerplan.cpp:1685: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). yylval->sval[ strlen(yylval->sval) - 1 ] = 0; data/kholidays-5.74.0/src/parsers/plan2/holidayscannerplan.cpp:2854:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (void) yyin->read(buf, max_size); ANALYSIS SUMMARY: Hits = 4 Lines analyzed = 12291 in approximately 0.43 seconds (28533 lines/second) Physical Source Lines of Code (SLOC) = 8666 Hits@level = [0] 0 [1] 2 [2] 2 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 4 [1+] 4 [2+] 2 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.461574 [1+] 0.461574 [2+] 0.230787 [3+] 0 [4+] 0 [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.