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/dino-im-0.2.0/cmake/LargeFileOffsets.c Examining data/dino-im-0.2.0/libdino/src/dino_i18n.h Examining data/dino-im-0.2.0/main/src/emojichooser.c Examining data/dino-im-0.2.0/main/src/emojichooser.h Examining data/dino-im-0.2.0/plugins/gpgme-vala/src/gpgme_fix.c Examining data/dino-im-0.2.0/plugins/gpgme-vala/src/gpgme_fix.h Examining data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c Examining data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.h FINAL RESULTS: data/dino-im-0.2.0/main/src/emojichooser.c:367:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[64]; data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:39: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(n, name, strlen(name)); data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:52: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(res, self->name, self->name_len); data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:260: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(signal_buffer_data(padded), plaintext, plaintext_len); data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:38: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). gchar* n = g_malloc(strlen(name)+1); data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:39: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). memcpy(n, name, strlen(name)); data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:40:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). n[strlen(name)] = 0; data/dino-im-0.2.0/plugins/signal-protocol/src/signal_helper.c:45:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). self->name_len = strlen(n); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 1318 in approximately 0.13 seconds (9794 lines/second) Physical Source Lines of Code (SLOC) = 1042 Hits@level = [0] 0 [1] 4 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 7.67754 [1+] 7.67754 [2+] 3.83877 [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.