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/pd-iemnet-0.3.0/build/autotests/tests/common.h
Examining data/pd-iemnet-0.3.0/build/autotests/tests/fail.c
Examining data/pd-iemnet-0.3.0/build/autotests/tests/pass.c
Examining data/pd-iemnet-0.3.0/build/autotests/tests/serialqueue.c
Examining data/pd-iemnet-0.3.0/build/autotests/tests/skip.c
Examining data/pd-iemnet-0.3.0/build/autotests/tests/threadedqueue.c
Examining data/pd-iemnet-0.3.0/build/coverity/coverity_model.c
Examining data/pd-iemnet-0.3.0/iemnet.c
Examining data/pd-iemnet-0.3.0/iemnet.h
Examining data/pd-iemnet-0.3.0/iemnet_data.c
Examining data/pd-iemnet-0.3.0/iemnet_data.h
Examining data/pd-iemnet-0.3.0/iemnet_receiver.c
Examining data/pd-iemnet-0.3.0/iemnet_sender.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/_template_/_template_.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multifor/multiforA.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multifor/multiforB.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multilib/multilib.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multilib/multilibA.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multilib/multilibB.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multiple/multipleA.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multiple/multipleB.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multiplexx/multiplexxA.cpp
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multiplexx/multiplexxB.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multishared/multishared.h
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multishared/multisharedA.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multishared/multisharedB.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/multishared/shared.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/single/single.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/subdir/src/subdir.c
Examining data/pd-iemnet-0.3.0/pd-lib-builder/tests/subdir/src/subdir~.c
Examining data/pd-iemnet-0.3.0/tcpclient.c
Examining data/pd-iemnet-0.3.0/tcpreceive.c
Examining data/pd-iemnet-0.3.0/tcpsend.c
Examining data/pd-iemnet-0.3.0/tcpserver.c
Examining data/pd-iemnet-0.3.0/udpclient.c
Examining data/pd-iemnet-0.3.0/udpreceive.c
Examining data/pd-iemnet-0.3.0/udpsend.c
Examining data/pd-iemnet-0.3.0/udpserver.c

FINAL RESULTS:

data/pd-iemnet-0.3.0/build/autotests/tests/common.h:19:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (format, argptr) ;
data/pd-iemnet-0.3.0/build/autotests/tests/common.h:31:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (format, argptr) ;
data/pd-iemnet-0.3.0/build/autotests/tests/common.h:43:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf (format, argptr) ;
data/pd-iemnet-0.3.0/iemnet.c:323:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(buf, MAXPDSTRING-1, fmt, ap);
data/pd-iemnet-0.3.0/iemnet.h:305:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/pd-iemnet-0.3.0/iemnet.h:305:19:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf _snprintf
data/pd-iemnet-0.3.0/iemnet.c:320: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 buf[MAXPDSTRING];
data/pd-iemnet-0.3.0/iemnet_data.c:185: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(result->data, data, result->size);
data/pd-iemnet-0.3.0/iemnet_data.c:522: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(&q->cond, &cond, sizeof(pthread_cond_t));
data/pd-iemnet-0.3.0/iemnet_data.c:523: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(&q->mtx , &mtx, sizeof(pthread_mutex_t));
data/pd-iemnet-0.3.0/iemnet_data.c:525: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(&q->usedcond, &cond, sizeof(pthread_cond_t));
data/pd-iemnet-0.3.0/iemnet_data.c:526: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(&q->usedmtx , &mtx, sizeof(pthread_mutex_t));
data/pd-iemnet-0.3.0/iemnet_receiver.c:46:12:  [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.
  unsigned char data[INBUFSIZE];
data/pd-iemnet-0.3.0/iemnet_sender.c:248: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(&result->mtx , &mtx, sizeof(pthread_mutex_t));
data/pd-iemnet-0.3.0/tcpclient.c:129: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((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pd-iemnet-0.3.0/tcpsend.c:99: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((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pd-iemnet-0.3.0/tcpserver.c:173: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 hostname[MAXPDSTRING];
data/pd-iemnet-0.3.0/udpclient.c:144: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((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pd-iemnet-0.3.0/udpsend.c:63: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((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pd-iemnet-0.3.0/udpserver.c:279: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 hostname[MAXPDSTRING];
data/pd-iemnet-0.3.0/udpserver.c:725: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((char *)&server.sin_addr, (char *)hp->h_addr, hp->h_length);
data/pd-iemnet-0.3.0/build/autotests/tests/serialqueue.c:22:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000*msec);
data/pd-iemnet-0.3.0/build/autotests/tests/threadedqueue.c:21:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(1000*msec);
data/pd-iemnet-0.3.0/iemnet.c:325:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(buf, "\0");

ANALYSIS SUMMARY:

Hits = 24
Lines analyzed = 5720 in approximately 0.16 seconds (35933 lines/second)
Physical Source Lines of Code (SLOC) = 3976
Hits@level = [0]  13 [1]   3 [2]  15 [3]   0 [4]   6 [5]   0
Hits@level+ = [0+]  37 [1+]  24 [2+]  21 [3+]   6 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 9.30584 [1+] 6.03622 [2+] 5.28169 [3+] 1.50905 [4+] 1.50905 [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.