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/langdrill-0.3/src/config.cc
Examining data/langdrill-0.3/src/main.cc

FINAL RESULTS:

data/langdrill-0.3/src/config.cc:364:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(section,"%s",buff+1);
data/langdrill-0.3/src/config.cc:368:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(message,
data/langdrill-0.3/src/config.cc:406:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(message,
data/langdrill-0.3/src/config.cc:417:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(message,
data/langdrill-0.3/src/main.cc:82:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf( _setup.quizzAnswerNr, _quizzAnswerNrEntry->Text);
data/langdrill-0.3/src/main.cc:153:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(_argv[1], R_OK)==0){
data/langdrill-0.3/src/main.cc:155:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(_setup.name,_argv[1]);
data/langdrill-0.3/src/main.cc:165:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(DRILL_DEF, R_OK)==0){
data/langdrill-0.3/src/main.cc:169:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(_setup.name,"%s/%s", getcwd(dirName,PATH_MAX), DRILL_DEF);
data/langdrill-0.3/src/main.cc:172:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    } else if ( access(DRILL_DIR "/" DRILL_DEF, R_OK)==0){
data/langdrill-0.3/src/main.cc:175:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(_setup.name, DRILL_DIR "/" DRILL_DEF);
data/langdrill-0.3/src/main.cc:202:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tempSetup.name, tempFile);
data/langdrill-0.3/src/main.cc:256:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpName, "%s > %s", _setup.directSenseName, _setup.reverseSenseName);
data/langdrill-0.3/src/main.cc:258:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpName, "%s > %s", _setup.reverseSenseName, _setup.directSenseName);
data/langdrill-0.3/src/main.cc:265:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf( _setup.quizzAnswerNr, _quizzAnswerNrEntry->Text );
data/langdrill-0.3/src/main.cc:346:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( exception->Message());
data/langdrill-0.3/src/main.cc:709:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(textWords[0],_setup.directSenseName);
data/langdrill-0.3/src/main.cc:710:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(textWords[1],_setup.reverseSenseName);
data/langdrill-0.3/src/main.cc:841:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpName, "%s > %s", _setup.directSenseName, _setup.reverseSenseName);
data/langdrill-0.3/src/main.cc:843:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tmpName, "%s > %s", _setup.reverseSenseName, _setup.directSenseName);
data/langdrill-0.3/src/main.cc:1013:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(selection, "%s/*.drill", DRILL_DIR);
data/langdrill-0.3/src/main.cc:1019:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if(access(selection, R_OK)==0){
data/langdrill-0.3/src/main.cc:1172:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(textWords[0],sect->operator[](j)->Name());
data/langdrill-0.3/src/main.cc:1173:11:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          sprintf(textWords[1],sect->operator[](j)->Get());
data/langdrill-0.3/src/main.cc:692:3:  [3] (random) srand:
  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.
  srand(time(NULL));
data/langdrill-0.3/src/config.cc:50: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(tmp,buff,len+1);
data/langdrill-0.3/src/config.cc:101:3:  [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( _value, "%i", value);
data/langdrill-0.3/src/config.cc:126: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).
  return atoi(_value);
data/langdrill-0.3/src/config.cc:134:3:  [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( _value, "%i", value);
data/langdrill-0.3/src/config.cc:342: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 buff[MAX_CHARS_FOR_STRING];
data/langdrill-0.3/src/config.cc:343: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 tmp1[MAX_CHARS_FOR_STRING];
data/langdrill-0.3/src/config.cc:344: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 tmp2[MAX_CHARS_FOR_STRING];
data/langdrill-0.3/src/config.cc:345: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 section[MAX_CHARS_FOR_STRING] = "";
data/langdrill-0.3/src/config.cc:347: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 message[MAX_CHARS_FOR_MESSAGE];
data/langdrill-0.3/src/main.cc:65: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).
  int newNr = atoi(_quizzAnswerNrEntry->Text);
data/langdrill-0.3/src/main.cc:66:19:  [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).
  int wQuizzTmp = atoi(_setup.wQuizz);
data/langdrill-0.3/src/main.cc:67:19:  [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).
  int hQuizzTmp = atoi(_setup.hQuizz);
data/langdrill-0.3/src/main.cc:74: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).
  int oldNr = atoi(_setup.quizzAnswerNr);
data/langdrill-0.3/src/main.cc:167: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 dirName[PATH_MAX];
data/langdrill-0.3/src/main.cc:228:20:  [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).
  int oldQuizzNr = atoi (_setup.quizzAnswerNr);
data/langdrill-0.3/src/main.cc:239:20:  [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).
  int newQuizzNr = atoi (_quizzAnswerNrEntry->Text);
data/langdrill-0.3/src/main.cc:240:19:  [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).
  int newWQuizz = atoi (_setup.wQuizz);
data/langdrill-0.3/src/main.cc:241:19:  [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).
  int newHQuizz = atoi (_setup.hQuizz);
data/langdrill-0.3/src/main.cc:380:35:  [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.
      tempSetup.lessonTitle = new char *[tempSetup.lessonNr];
data/langdrill-0.3/src/main.cc:405:14:  [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).
  int cols = atoi(_setup.quizzAnswerNr);
data/langdrill-0.3/src/main.cc:464:20:  [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).
  if (keyTotalNr < atoi(_setup.quizzAnswerNr))
data/langdrill-0.3/src/main.cc:467:12:  [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).
    cols = atoi(_setup.quizzAnswerNr);
data/langdrill-0.3/src/main.cc:537:12:  [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).
    temp = atoi(_timerEntry->Text);
data/langdrill-0.3/src/main.cc:567:3:  [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( _setup.quizzAnswerNr, "10");
data/langdrill-0.3/src/main.cc:568:3:  [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( _setup.wQuizz, "150");
data/langdrill-0.3/src/main.cc:569:3:  [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( _setup.hQuizz, "35");
data/langdrill-0.3/src/main.cc:570:3:  [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( _setup.directSenseName, "Japanese" );
data/langdrill-0.3/src/main.cc:571:3:  [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( _setup.reverseSenseName, "English" );
data/langdrill-0.3/src/main.cc:572:3:  [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( _setup.compatVersion, "00.00.00" );
data/langdrill-0.3/src/main.cc:573:3:  [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( _setup.timer, "10" ); // default to 10 minutes
data/langdrill-0.3/src/main.cc:574:3:  [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( _setup.limitedAnswerNr, "25" );
data/langdrill-0.3/src/main.cc:706:19:  [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.
  textWords = new char *[2];
data/langdrill-0.3/src/main.cc:748:12:  [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).
  int nr = atoi(_setup.quizzAnswerNr);
data/langdrill-0.3/src/main.cc:749: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).
  int w = atoi(_setup.wQuizz);
data/langdrill-0.3/src/main.cc:750: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).
  int h = atoi(_setup.hQuizz);
data/langdrill-0.3/src/main.cc:754:21:  [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).
  for(int i = 0; i< atoi(_setup.quizzAnswerNr); i++)
data/langdrill-0.3/src/main.cc:766:7:  [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).
  w = atoi(_setup.wQuizz);
data/langdrill-0.3/src/main.cc:767:6:  [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).
  h= atoi(_setup.wQuizz);
data/langdrill-0.3/src/main.cc:870:3:  [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(text,"Lessons");
data/langdrill-0.3/src/main.cc:1012: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 selection[FILENAME_MAX];
data/langdrill-0.3/src/main.cc:1066: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 message [255];
data/langdrill-0.3/src/main.cc:1087: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(message,
data/langdrill-0.3/src/main.cc:1095: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(message,
data/langdrill-0.3/src/main.cc:1105: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).
    int tmp = atoi ( _answerStepEntry->Text );
data/langdrill-0.3/src/main.cc:1107:13:  [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).
      tmp = atoi( _setup.limitedAnswerNr );
data/langdrill-0.3/src/main.cc:1135:21:  [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.
    textWords = new char *[2];
data/langdrill-0.3/src/config.cc:47:15:  [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 = strlen(buff) + 1;
data/langdrill-0.3/src/config.cc:387:32:  [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).
              size_t inbytes = strlen(buff_key), outbytes = 255;
data/langdrill-0.3/src/config.cc:395:32:  [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).
              size_t inbytes = strlen(buff_val), outbytes = 255;
data/langdrill-0.3/src/main.cc:253: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).
  tmpName = new char[ strlen(_setup.directSenseName)
data/langdrill-0.3/src/main.cc:254: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).
                    + strlen(_setup.reverseSenseName)
data/langdrill-0.3/src/main.cc:356:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.compatVersion, key->Get(), 9);
data/langdrill-0.3/src/main.cc:360:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.directSenseName, key->Get(), MAX_SENSE_NAME-1);
data/langdrill-0.3/src/main.cc:362:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.reverseSenseName, key->Get(), MAX_SENSE_NAME-1);
data/langdrill-0.3/src/main.cc:364:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.quizzAnswerNr, key->Get(), 2);
data/langdrill-0.3/src/main.cc:366:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.timer, key->Get(), 2);
data/langdrill-0.3/src/main.cc:368:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(tempSetup.limitedAnswerNr, key->Get(), 3);
data/langdrill-0.3/src/main.cc:838: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).
  tmpName = new char[ strlen(_setup.directSenseName)
data/langdrill-0.3/src/main.cc:839: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).
                    + strlen(_setup.reverseSenseName)

ANALYSIS SUMMARY:

Hits = 84
Lines analyzed = 1739 in approximately 0.23 seconds (7499 lines/second)
Physical Source Lines of Code (SLOC) = 1187
Hits@level = [0]  11 [1]  13 [2]  46 [3]   1 [4]  24 [5]   0
Hits@level+ = [0+]  95 [1+]  84 [2+]  71 [3+]  25 [4+]  24 [5+]   0
Hits/KSLOC@level+ = [0+] 80.0337 [1+] 70.7666 [2+] 59.8147 [3+] 21.0615 [4+] 20.219 [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.