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/libcdio-paranoia-10.2+2.0.0/example/C++/paranoia.cpp
Examining data/libcdio-paranoia-10.2+2.0.0/example/C++/paranoia2.cpp
Examining data/libcdio-paranoia-10.2+2.0.0/example/paranoia.c
Examining data/libcdio-paranoia-10.2+2.0.0/example/paranoia2.c
Examining data/libcdio-paranoia-10.2+2.0.0/include/cdio/paranoia/cdda.h
Examining data/libcdio-paranoia-10.2+2.0.0/include/cdio/paranoia/paranoia.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/drive_exceptions.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/drive_exceptions.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/interface.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/low_interface.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/smallft.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/smallft.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/toc.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/gap.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/gap.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/isort.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/isort.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/overlap.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/overlap.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/p_block.c
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/p_block.h
Examining data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/paranoia.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/buffering_write.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/buffering_write.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/cachetest.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/getopt.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/getopt.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/getopt1.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/getopt_int.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/header.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/header.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/report.c
Examining data/libcdio-paranoia-10.2+2.0.0/src/report.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/usage-copy.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/utils.h
Examining data/libcdio-paranoia-10.2+2.0.0/src/version.h
Examining data/libcdio-paranoia-10.2+2.0.0/test/get_libcdio_version.c
Examining data/libcdio-paranoia-10.2+2.0.0/test/testparanoia.c
Examining data/libcdio-paranoia-10.2+2.0.0/test/testutils.c

FINAL RESULTS:

data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:85:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buffer,f,s);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:133:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(buffer,f,s);
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:41:36:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define reportC(...) {if(progress){fprintf(progress, __VA_ARGS__);}	\
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:42:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(log){fprintf(log, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:43:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printC(...) {if(progress){fprintf(progress, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:44:28:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define logC(...) {if(log){fprintf(log, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:287:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf( f, usage_help);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:547:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(buffer,
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:553:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buffer,
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:558:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buffer,
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:839:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(stderr,PARANOIA_VERSION);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:932:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      fprintf(logfile,VERSION);
data/libcdio-paranoia-10.2+2.0.0/src/report.h:9:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define report(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);fputc('\n',stderr);} \
data/libcdio-paranoia-10.2+2.0.0/src/report.h:10:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(reportfile){fprintf(reportfile, __VA_ARGS__);fputc('\n',reportfile);}}
data/libcdio-paranoia-10.2+2.0.0/src/report.h:11:34:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define reportC(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);}	\
data/libcdio-paranoia-10.2+2.0.0/src/report.h:12:20:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    if(reportfile){fprintf(reportfile, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/report.h:13:33:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printC(...) {if(!quiet){fprintf(stderr, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/report.h:14:35:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define logC(...) {if(reportfile){fprintf(reportfile, __VA_ARGS__);}}
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:21:5:  [4] (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).
    strcat(buff,s);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:165:20:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    jitter_flag = (drand48() > .9) ? 1 : 0;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:181:33:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    i_jitter = i_coeff * (int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:111:16:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  jitter_flag=(drand48()>.9?1:0);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:112:13:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  los_flag=(drand48()>.9?1:0);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:135:36:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=4*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:139:37:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=32*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:143:38:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=128*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:147:38:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(los_flag)this_bytes=256*(int)(drand48()*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:148:36:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=4*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:152:37:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(los_flag)this_bytes=16*(int)(drand48()*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:153:36:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=4*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:157:36:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(los_flag)this_bytes=8*(int)(drand48()*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:158:37:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    if(jitter_flag)jitter=32*(int)((drand48()-.5)*CDIO_CD_FRAMESIZE_RAW/8);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:164:11:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      if (drand48()>.8)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:205:18:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    jitter_flag=(drand48()>.9?1:0);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:206:15:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    los_flag=(drand48()>.9?1:0);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:217:46:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    long location=300*CDIO_CD_FRAMESIZE_RAW+(drand48()*56)+512;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/test_interface.c:220:42:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
      if(p)memset(p+location-begin,(int)(drand48()*256),1100);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:734:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while((c=getopt_long(argc,argv,optstring,options,&long_option_index))!=EOF){
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:38:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int argc, char *const *argv, const char *optstring);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:149:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:150:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv ();
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:287:46:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  d->__posixly_correct = posixly_correct | !!getenv ("POSIXLY_CORRECT");
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:1192:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt (int argc, char *const *argv, const char *optstring)
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:1228:11:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt (argc, argv, "abc:d:0123456789");
data/libcdio-paranoia-10.2+2.0.0/src/getopt.h:150:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/libcdio-paranoia-10.2+2.0.0/src/getopt.h:159:30:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  extern int __REDIRECT_NTH (getopt, (int ___argc, char *const *___argv,
data/libcdio-paranoia-10.2+2.0.0/src/getopt.h:165:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#   define getopt __posix_getopt
data/libcdio-paranoia-10.2+2.0.0/src/getopt.h:169:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt ();
data/libcdio-paranoia-10.2+2.0.0/src/getopt.h:173:12:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt_long (int ___argc, char *const *___argv,
data/libcdio-paranoia-10.2+2.0.0/src/getopt1.c:62:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long (int argc, char *const *argv, const char *options,
data/libcdio-paranoia-10.2+2.0.0/src/getopt1.c:125:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "abc:d:0123456789",
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:109:4:  [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 b[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:203:7:  [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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:204:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer, "jittering by %d, offset %ld\n", i_jitter,
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:223:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (p) memcpy(p, p_buf, i_sectors*CDIO_CD_FRAMESIZE_RAW);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:226:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (p) memcpy(p, p_buf+i_jitter_offset, i_sectors_orig*CDIO_CD_FRAMESIZE_RAW);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:353:4:  [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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:355:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf(buffer,"\tTrouble setting buffer size.  Defaulting to %d sectors.\n",
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:361:2:  [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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:362:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(buffer,"\tSetting read block size at %d sectors (%ld bytes).\n",
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:388: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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:390:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"\tSetting read block size at %d sectors (%ld bytes).\n",
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.c:163: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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.c:165:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buffer,"\tcertainty: %d%%\n",(int)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.c:171:7:  [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[256];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/common_interface.c:173:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(buffer,"\tcertainty: %d%%\n",(int)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c:129: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 resolved[PATH_MAX];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/toc.c:54:7:  [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[100];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/toc.c:110:7:  [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[100];
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/p_block.c:307: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(v->vector+pos,b,size*sizeof(int16_t));
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/p_block.c:335: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(v->vector+pos,b,size*sizeof(int16_t));
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/p_block.c:349: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(v->vector+vs,vector,sizeof(int16_t)*size);
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/paranoia.c:1516:4:  [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(buff,fv(v),fs(v)*sizeof(int16_t));
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/paranoia.c:1773:4:  [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(buff,fv(v),fs(v)*sizeof(int16_t));
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/paranoia.c:2139:7:  [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(buff,fv(v),fs(v)*sizeof(int16_t));
data/libcdio-paranoia-10.2+2.0.0/lib/paranoia/paranoia.c:2467:2:  [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(buff,cv(graft),cs(graft));
data/libcdio-paranoia-10.2+2.0.0/src/buffering_write.c:23:8:  [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 bw_outbuf[OUTBUFSZ];
data/libcdio-paranoia-10.2+2.0.0/src/buffering_write.c:64: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(&bw_outbuf[bw_pos], buffer, OUTBUFSZ - bw_pos);
data/libcdio-paranoia-10.2+2.0.0/src/buffering_write.c:75: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(&bw_outbuf[bw_pos], buffer, num);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:150:15:  [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).
      i_track=atoi(offset);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:167:11:  [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).
      val=atoi(sec+1);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:306:14:  [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 const char *callback_strings[16]={
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:335: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 buffer[256];
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:895:15:  [2] (misc) fopen:
  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).
      logfile=fopen(logfile_name,"w");
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:914:13:  [2] (misc) fopen:
  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).
	reportfile=fopen(reportfile_name,"w");
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1267: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.
        char outfile_name[PATH_MAX];
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1302:13:  [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 dirname[PATH_MAX];
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1339:17:  [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).
            out=open(outfile_name,O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0666);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1354:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(outfile_name,"track%02d.", batch_track);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1373:17:  [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).
          out = open(outfile_name, O_RDWR|O_CREAT|O_TRUNC|O_BINARY, 0666);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1505: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(offset_buffer,readbuf,CD_FRAMESIZE_RAW);
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:50: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 path[10];
data/libcdio-paranoia-10.2+2.0.0/test/testparanoia.c:131:4:  [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(audio_buf[i], p_readbuf, CDIO_CD_FRAMESIZE_RAW);
data/libcdio-paranoia-10.2+2.0.0/test/testutils.c:48: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 path[10];
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/cddap_interface.c:317:46:  [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(!strncmp(list[i].model,d->drive_model,strlen(list[i].model))){
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/drive_exceptions.h:34:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  long (*read)(cdrom_drive_t *,void *, long, long);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c:304: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).
      unsigned int i_len = strlen(hw_info.psz_vendor)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c:305:4:  [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(hw_info.psz_model)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c:306:4:  [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(hw_info.psz_revision) + 5;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/scan_devices.c:309:11:  [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).
	i_len += strlen(description);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:38:43:  [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).
      bytes_ret = write(STDERR_FILENO, s, strlen(s));
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:39:11:  [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 (strlen(s) != bytes_ret)
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:59:43:  [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).
      bytes_ret = write(STDERR_FILENO, s, strlen(s));
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:84: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).
      buffer=malloc(strlen(f)+strlen(s)+9);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:84: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).
      buffer=malloc(strlen(f)+strlen(s)+9);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:93:46:  [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).
      bytes_ret = write(STDERR_FILENO,buffer,strlen(buffer));
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:96:50:  [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).
	bytes_ret = write(STDERR_FILENO,strerror(errno),strlen(strerror(errno)));
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:131: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).
      const unsigned int i_buffer=strlen(f)+strlen(s)+2;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:131:45:  [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).
      const unsigned int i_buffer=strlen(f)+strlen(s)+2;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:134:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
      strncat(buffer,"\n",1);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:141:46:  [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).
      bytes_ret = write(STDERR_FILENO,buffer,strlen(buffer));
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:162:34:  [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).
    const unsigned int add_len = strlen(s) + 1;
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:164: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).
      buff = realloc(buff, strlen(buff) + add_len);
data/libcdio-paranoia-10.2+2.0.0/lib/cdda_interface/utils.c:168:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(buff, s, add_len - 1);
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:526:4:  [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(usec);
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:576:2:  [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(usec);
data/libcdio-paranoia-10.2+2.0.0/src/cachetest.c:654:2:  [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(usec);
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1312:12:  [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 (strlen(argv[optind+1]) - 10 > PATH_MAX) {
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1325:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
                strncat(outfile_name, "cdda.raw", sizeof("cdda.raw"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1328:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
                strncat(outfile_name, "cdda.wav", sizeof("cdda.wav"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1331:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
                strncat(outfile_name, "cdda.aifc", sizeof("cdda.aifc"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1334:17:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
                strncat(outfile_name, "cdda.aiff", sizeof("cdda.aiff"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1360:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(outfile_name, "cdda.raw", sizeof("cdda.raw"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1363:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(outfile_name, "cdda.wav", sizeof("cdda.wav"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1366:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(outfile_name, "cdda.aifc", sizeof("cdda.aifc"));
data/libcdio-paranoia-10.2+2.0.0/src/cd-paranoia.c:1369:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
            strncat(outfile_name, "cdda.aiff", sizeof("cdda.aiff"));
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:318:49:  [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).
	      int len = d->__nonoption_flags_max_len = strlen (orig_str);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:553:36:  [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 (namelen == (unsigned int) strlen (p->name))
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:638: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).
	  d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:711: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).
		  d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:751: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).
		  d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:756: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).
	  d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:949:56:  [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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:997:23:  [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).
	    d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:1041:24:  [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).
		    d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:1079:24:  [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).
		    d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/getopt.c:1085:23:  [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).
	    d->__nextchar += strlen (d->__nextchar);
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:18: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).
      buff=realloc(buff,strlen(buff)+strlen(s)+1);
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:18:38:  [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).
      buff=realloc(buff,strlen(buff)+strlen(s)+1);
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:20:19:  [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).
      buff=calloc(strlen(s)+1,1);
data/libcdio-paranoia-10.2+2.0.0/src/utils.h:37:12:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
  if (pos) strncat(path, fullpath, pos);

ANALYSIS SUMMARY:

Hits = 141
Lines analyzed = 14179 in approximately 0.48 seconds (29813 lines/second)
Physical Source Lines of Code (SLOC) = 8258
Hits@level = [0] 145 [1]  47 [2]  43 [3]  32 [4]  19 [5]   0
Hits@level+ = [0+] 286 [1+] 141 [2+]  94 [3+]  51 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 34.6331 [1+] 17.0744 [2+] 11.3829 [3+] 6.17583 [4+] 2.3008 [5+]   0
Dot directories skipped = 2 (--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.