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/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp Examining data/kodi-pvr-njoy-3.4.2/src/N7Xml.h Examining data/kodi-pvr-njoy-3.4.2/src/client.cpp Examining data/kodi-pvr-njoy-3.4.2/src/client.h FINAL RESULTS: data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:16: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 buffer[1024]; data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:113:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tag.strChannelName, channel.strChannelName.c_str(), sizeof(tag.strChannelName) - 1); data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:114:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tag.strIconPath, channel.strIconPath.c_str(), sizeof(tag.strIconPath) - 1); data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:141:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(props[0].strName, PVR_STREAM_PROPERTY_STREAMURL, sizeof(props[0].strName) - 1); data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:142:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(props[0].strValue, chan.strStreamURL.c_str(), sizeof(props[0].strValue) - 1); data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:143:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(props[1].strName, PVR_STREAM_PROPERTY_ISREALTIMESTREAM, sizeof(props[1].strName) - 1); data/kodi-pvr-njoy-3.4.2/src/N7Xml.cpp:144:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(props[1].strValue, "true", sizeof(props[1].strValue) - 1); ANALYSIS SUMMARY: Hits = 7 Lines analyzed = 521 in approximately 0.37 seconds (1418 lines/second) Physical Source Lines of Code (SLOC) = 386 Hits@level = [0] 0 [1] 6 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 7 [1+] 7 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 18.1347 [1+] 18.1347 [2+] 2.59067 [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.