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/dleyna-renderer-0.6.0/libdleyna/renderer/async.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/async.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/control-point-renderer.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/device.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/host-service.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/host-service.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/manager.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/prop-defs.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/server.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/server.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/task.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/task.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/upnp.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/gasync-task.h Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/manager.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/upnp.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c Examining data/dleyna-renderer-0.6.0/libdleyna/renderer/gasync-task.c Examining data/dleyna-renderer-0.6.0/server/daemon.c FINAL RESULTS: data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:1231:9: [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). num = atoi(parts[0]); data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:1238:10: [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). dom = atoi(parts[1]); data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:1520:10: [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). pos += atoi(parts[count]) * i; data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:3341: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(device->icon.bytes, msg->response_body->data, data/dleyna-renderer-0.6.0/libdleyna/renderer/gasync-task.c:37:9: [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 source[27]; data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:1415: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). strlen("X_DLNA_PS="))) { data/dleyna-renderer-0.6.0/libdleyna/renderer/device.c:1416:35: [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). speeds = g_strsplit(parts[i] + strlen("X_DLNA_PS="), data/dleyna-renderer-0.6.0/libdleyna/renderer/host-service.c:330:28: [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). if ((hf->dlna_header) && strlen(hf->dlna_header) > 0) ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 8139 in approximately 0.17 seconds (49023 lines/second) Physical Source Lines of Code (SLOC) = 6136 Hits@level = [0] 0 [1] 3 [2] 5 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 5 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.30378 [1+] 1.30378 [2+] 0.814863 [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.