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/libisds-0.10.7/test/test-tools.h
Examining data/libisds-0.10.7/test/simline/win32.h
Examining data/libisds-0.10.7/test/simline/isds_find_box_by_fulltext.c
Examining data/libisds-0.10.7/test/simline/isds_change_password.c
Examining data/libisds-0.10.7/test/simline/server_types.h
Examining data/libisds-0.10.7/test/simline/server_cli.c
Examining data/libisds-0.10.7/test/simline/totp_authentication.c
Examining data/libisds-0.10.7/test/simline/server.c
Examining data/libisds-0.10.7/test/simline/isds_delete_message_from_storage.c
Examining data/libisds-0.10.7/test/simline/service.c
Examining data/libisds-0.10.7/test/simline/isds_ping.c
Examining data/libisds-0.10.7/test/simline/unix.c
Examining data/libisds-0.10.7/test/simline/isds_get_commercial_credit.c
Examining data/libisds-0.10.7/test/simline/http.h
Examining data/libisds-0.10.7/test/simline/unix.h
Examining data/libisds-0.10.7/test/simline/http.c
Examining data/libisds-0.10.7/test/simline/basic_authentication.c
Examining data/libisds-0.10.7/test/simline/service.h
Examining data/libisds-0.10.7/test/simline/hotp_isds_change_password.c
Examining data/libisds-0.10.7/test/simline/system.h
Examining data/libisds-0.10.7/test/simline/totp_isds_change_password.c
Examining data/libisds-0.10.7/test/simline/certificate_user_password_authentication.c
Examining data/libisds-0.10.7/test/simline/isds_resign_message.c
Examining data/libisds-0.10.7/test/simline/hotp_authentication.c
Examining data/libisds-0.10.7/test/simline/services.h
Examining data/libisds-0.10.7/test/simline/win32.c
Examining data/libisds-0.10.7/test/simline/server.h
Examining data/libisds-0.10.7/test/online/common.c
Examining data/libisds-0.10.7/test/online/login.c
Examining data/libisds-0.10.7/test/online/common.h
Examining data/libisds-0.10.7/test/offline/isds_credit_event_free.c
Examining data/libisds-0.10.7/test/offline/isds_Address_free.c
Examining data/libisds-0.10.7/test/offline/isds-hash_algorithm.c
Examining data/libisds-0.10.7/test/offline/b64encode.c
Examining data/libisds-0.10.7/test/offline/isds_pki_credentials_free.c
Examining data/libisds-0.10.7/test/offline/isds-usertype.c
Examining data/libisds-0.10.7/test/offline/isds-interpret_matches.c
Examining data/libisds-0.10.7/test/offline/utf82locale.c
Examining data/libisds-0.10.7/test/offline/isds_BirthInfo_free.c
Examining data/libisds-0.10.7/test/offline/isds_commercial_permission_free.c
Examining data/libisds-0.10.7/test/offline/isds_envelope_free.c
Examining data/libisds-0.10.7/test/offline/isds_init.c
Examining data/libisds-0.10.7/test/offline/isds-crediteventtype.c
Examining data/libisds-0.10.7/test/offline/isds_document_free.c
Examining data/libisds-0.10.7/test/offline/isds_credentials_delivery_free.c
Examining data/libisds-0.10.7/test/offline/isds_DbUserInfo_duplicate.c
Examining data/libisds-0.10.7/test/offline/context.c
Examining data/libisds-0.10.7/test/offline/isds_DbOwnerInfo_free.c
Examining data/libisds-0.10.7/test/offline/isds_Address_duplicate.c
Examining data/libisds-0.10.7/test/offline/compute_hash.c
Examining data/libisds-0.10.7/test/offline/isds_message_status_change_free.c
Examining data/libisds-0.10.7/test/offline/isds-datestring2tm.c
Examining data/libisds-0.10.7/test/offline/load_raw.c
Examining data/libisds-0.10.7/test/offline/isds_fulltext_result_free.c
Examining data/libisds-0.10.7/test/offline/soap-string2isds_otp_resolution.c
Examining data/libisds-0.10.7/test/offline/isds_DbUserInfo_free.c
Examining data/libisds-0.10.7/test/offline/isds_message_free.c
Examining data/libisds-0.10.7/test/offline/isds-uint2isds_message_status.c
Examining data/libisds-0.10.7/test/offline/isds_PersonName_duplicate.c
Examining data/libisds-0.10.7/test/offline/prepare_environment.c
Examining data/libisds-0.10.7/test/offline/isds_message_copy_free.c
Examining data/libisds-0.10.7/test/offline/isds-paymenttype.c
Examining data/libisds-0.10.7/test/offline/isds-sendertype.c
Examining data/libisds-0.10.7/test/offline/isds_event_free.c
Examining data/libisds-0.10.7/test/offline/isds_hash_free.c
Examining data/libisds-0.10.7/test/offline/isds_PersonName_free.c
Examining data/libisds-0.10.7/test/offline/isds_DbOwnerInfo_duplicate.c
Examining data/libisds-0.10.7/test/offline/isds-eventstring2event.c
Examining data/libisds-0.10.7/test/offline/isds-timestring2timeval.c
Examining data/libisds-0.10.7/test/offline/isds-tm2datestring.c
Examining data/libisds-0.10.7/test/offline/isds-filemetatype.c
Examining data/libisds-0.10.7/test/offline/isds-dbtype.c
Examining data/libisds-0.10.7/test/offline/isds_list_free.c
Examining data/libisds-0.10.7/test/offline/guess_raw_type.c
Examining data/libisds-0.10.7/test/offline/normalize_mime_type.c
Examining data/libisds-0.10.7/test/offline/init_crypto.c
Examining data/libisds-0.10.7/test/offline/isds-timeval2timestring.c
Examining data/libisds-0.10.7/test/offline/isds_approval_free.c
Examining data/libisds-0.10.7/test/offline/b64decode.c
Examining data/libisds-0.10.7/test/offline/soap-decode_header_value.c
Examining data/libisds-0.10.7/test/test.c
Examining data/libisds-0.10.7/test/test.h
Examining data/libisds-0.10.7/client/certauth.c
Examining data/libisds-0.10.7/client/changebox.c
Examining data/libisds-0.10.7/client/getsignedsentbyid.c
Examining data/libisds-0.10.7/client/loadreceivedmessage.c
Examining data/libisds-0.10.7/client/isdsclient.c
Examining data/libisds-0.10.7/client/common.c
Examining data/libisds-0.10.7/client/getreceivedsigneddelivery.c
Examining data/libisds-0.10.7/client/verifyreceivedhash.c
Examining data/libisds-0.10.7/client/logger.c
Examining data/libisds-0.10.7/client/getsenderbyid.c
Examining data/libisds-0.10.7/client/convertdocument.c
Examining data/libisds-0.10.7/client/markasread.c
Examining data/libisds-0.10.7/client/deleteuser.c
Examining data/libisds-0.10.7/client/getreceivedenvelope.c
Examining data/libisds-0.10.7/client/requestnewtestingbox.c
Examining data/libisds-0.10.7/client/getuserboxinfo.c
Examining data/libisds-0.10.7/client/loaddelivery.c
Examining data/libisds-0.10.7/client/addbox.c
Examining data/libisds-0.10.7/client/getreceived.c
Examining data/libisds-0.10.7/client/getsignedsent.c
Examining data/libisds-0.10.7/client/markasreceived.c
Examining data/libisds-0.10.7/client/activate.c
Examining data/libisds-0.10.7/client/authenticatemessage.c
Examining data/libisds-0.10.7/client/getreceiveddelivery.c
Examining data/libisds-0.10.7/client/switchcommercial.c
Examining data/libisds-0.10.7/client/changepassword.c
Examining data/libisds-0.10.7/client/getboxlist.c
Examining data/libisds-0.10.7/client/disableaccesibilityexternaly.c
Examining data/libisds-0.10.7/client/getchangedstates.c
Examining data/libisds-0.10.7/client/loadsentmessagewithxmldocuments.c
Examining data/libisds-0.10.7/client/sendxmldoc.c
Examining data/libisds-0.10.7/client/sendmultiple.c
Examining data/libisds-0.10.7/client/getsignedreceived.c
Examining data/libisds-0.10.7/client/resetpassword.c
Examining data/libisds-0.10.7/client/loadcmssignedsentmessage.c
Examining data/libisds-0.10.7/client/getsent.c
Examining data/libisds-0.10.7/client/computemessagehash.c
Examining data/libisds-0.10.7/client/downloadmessagehash.c
Examining data/libisds-0.10.7/client/progressbar.c
Examining data/libisds-0.10.7/client/changeuser.c
Examining data/libisds-0.10.7/client/switchaccessibility.c
Examining data/libisds-0.10.7/client/login.c
Examining data/libisds-0.10.7/client/version.c
Examining data/libisds-0.10.7/client/common.h
Examining data/libisds-0.10.7/src/crypto_openssl.c
Examining data/libisds-0.10.7/src/win32.h
Examining data/libisds-0.10.7/src/isds_priv.h
Examining data/libisds-0.10.7/src/soap.h
Examining data/libisds-0.10.7/src/cdecode.h
Examining data/libisds-0.10.7/src/validator.c
Examining data/libisds-0.10.7/src/soap.c
Examining data/libisds-0.10.7/src/gettext.h
Examining data/libisds-0.10.7/src/utils.h
Examining data/libisds-0.10.7/src/physxml.h
Examining data/libisds-0.10.7/src/isds.c
Examining data/libisds-0.10.7/src/unix.c
Examining data/libisds-0.10.7/src/crypto_gpg.c
Examining data/libisds-0.10.7/src/utils.c
Examining data/libisds-0.10.7/src/validator.h
Examining data/libisds-0.10.7/src/cencode.c
Examining data/libisds-0.10.7/src/unix.h
Examining data/libisds-0.10.7/src/physxml.c
Examining data/libisds-0.10.7/src/crypto.h
Examining data/libisds-0.10.7/src/cdecode.c
Examining data/libisds-0.10.7/src/system.h
Examining data/libisds-0.10.7/src/cencode.h
Examining data/libisds-0.10.7/src/isds.h
Examining data/libisds-0.10.7/src/win32.c

FINAL RESULTS:

data/libisds-0.10.7/client/common.c:173:17:  [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(
data/libisds-0.10.7/src/isds.c:959:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buffer, message);
data/libisds-0.10.7/src/isds.c:987:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buffer + old_length, message);
data/libisds-0.10.7/src/isds.c:1061:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stderr, message, ap);
data/libisds-0.10.7/src/isds.c:1159:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pointer, string); \
data/libisds-0.10.7/src/utils.c:31:20:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        if (first) strcpy(buf, first);
data/libisds-0.10.7/src/utils.c:32:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        if (second) strcpy(buf + first_len, second);
data/libisds-0.10.7/src/utils.c:56:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(next, first);
data/libisds-0.10.7/src/utils.c:60:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(next, second);
data/libisds-0.10.7/src/utils.c:64:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(next, third);
data/libisds-0.10.7/src/utils.c:91:14:  [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.
    length = vsnprintf(NULL, 0, format, aq) + 1;
data/libisds-0.10.7/src/utils.c:107:18:  [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.
    new_length = vsnprintf(*buffer, length, format, ap);
data/libisds-0.10.7/src/utils.h:20:26:  [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 (stderr != NULL ) fprintf(stderr, \
data/libisds-0.10.7/test/simline/http.c:506:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(&header->value[old_length], line);
data/libisds-0.10.7/test/simline/http.c:534:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(new_header->value, p);
data/libisds-0.10.7/test/test.c:39:14:  [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.
    length = vsnprintf(NULL, 0, format, aq) + 1;
data/libisds-0.10.7/test/test.c:55:18:  [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.
    new_length = vsnprintf(*buffer, length, format, ap);
data/libisds-0.10.7/client/common.c:62:20:  [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.
        username = getenv("ISDS_USERNAME");
data/libisds-0.10.7/client/common.c:73:20:  [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.
        password = getenv("ISDS_PASSWORD");
data/libisds-0.10.7/src/unix.c:39:10:  [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.
    tz = getenv("TZ");
data/libisds-0.10.7/test/offline/prepare_environment.c:20:12:  [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.
    home = getenv("HOME");
data/libisds-0.10.7/test/online/common.c:52:20:  [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.
        username = getenv("ISDS_USERNAME");
data/libisds-0.10.7/test/online/common.c:63:20:  [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.
        password = getenv("ISDS_PASSWORD");
data/libisds-0.10.7/test/simline/server_cli.c:91:28:  [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.
    while (-1 != (option = getopt(argc, argv, "h:p:t:u:a:s:S:c:"))) {
data/libisds-0.10.7/client/common.c:27:12:  [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).
    file = fopen(credentials_file, "r");
data/libisds-0.10.7/client/common.c:393: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[128];
data/libisds-0.10.7/client/common.c:726:11:  [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).
    *fd = open(file, O_RDONLY);
data/libisds-0.10.7/client/common.c:797:10:  [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).
    fd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0666);
data/libisds-0.10.7/client/sendxmldoc.c:46:13:  [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(node, result->nodesetval->nodeTab[i], sizeof(*node));
data/libisds-0.10.7/src/crypto_gpg.c:216: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 gpg_error_string[128];
data/libisds-0.10.7/src/crypto_gpg.c:306: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 gpgme_error_string[128];
data/libisds-0.10.7/src/crypto_openssl.c:237: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(*data, (*pos)->data, (*pos)->length);
data/libisds-0.10.7/src/gettext.h:210: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/libisds-0.10.7/src/gettext.h:212: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[1024];
data/libisds-0.10.7/src/gettext.h:220: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/libisds-0.10.7/src/gettext.h:222: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/libisds-0.10.7/src/gettext.h:256: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 msg_ctxt_id[msgctxt_len + msgid_len];
data/libisds-0.10.7/src/gettext.h:258: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[1024];
data/libisds-0.10.7/src/gettext.h:266: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 (msg_ctxt_id, msgctxt, msgctxt_len - 1);
data/libisds-0.10.7/src/gettext.h:268: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 (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
data/libisds-0.10.7/src/isds.c:475:9:  [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((new), (template), sizeof(*(template))); \
data/libisds-0.10.7/src/isds.c:2279: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 subseconds[subsecond_resolution + 1];
data/libisds-0.10.7/src/isds.c:10143:13:  [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((*message)->raw, buffer, length);
data/libisds-0.10.7/src/isds.c:10439: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((*message)->raw, xml_stream + phys_start, (*message)->raw_length);
data/libisds-0.10.7/src/isds.c:10637:13:  [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((*message)->raw, buffer, length);
data/libisds-0.10.7/src/isds.c:12136:27:  [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.
            return (const char *) extension_map_mime[offset + 1];
data/libisds-0.10.7/src/soap.c:144:9:  [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(b64_stream, encoding + 2, encoding_length);
data/libisds-0.10.7/src/soap.c:210: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(*output, utf_stream, utf_length);
data/libisds-0.10.7/src/soap.c:380: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(new_data + body->length, buffer, size * nmemb);
data/libisds-0.10.7/src/soap.c:483:9:  [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(headers->last_header, buffer, length);
data/libisds-0.10.7/src/soap.c:973:13:  [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(*mime_type, content_type, offset);
data/libisds-0.10.7/src/win32.c:100: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, buf, sizeof(struct tm));
data/libisds-0.10.7/src/win32.c:140: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(&broken, broken_utc, sizeof(struct tm));
data/libisds-0.10.7/test/offline/prepare_environment.c:17:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    char tmpfile[] = "XXXXXX";
data/libisds-0.10.7/test/offline/prepare_environment.c:45:24:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    if (-1 == (tmpfd = mkstemp(tmpfile))) {
data/libisds-0.10.7/test/offline/prepare_environment.c:45:32:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    if (-1 == (tmpfd = mkstemp(tmpfile))) {
data/libisds-0.10.7/test/offline/prepare_environment.c:53:12:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    unlink(tmpfile);
data/libisds-0.10.7/test/online/common.c:17:12:  [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).
    file = fopen(credentials_file, "r");
data/libisds-0.10.7/test/simline/http.c:278:13:  [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, p, *buffer + *buffer_used - p);
data/libisds-0.10.7/test/simline/http.c:394:13:  [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, *buffer + data_length, *buffer_used - data_length);
data/libisds-0.10.7/test/simline/http.c:606:42:  [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.
            if (isprint(((const unsigned char *)data)[i])) 
data/libisds-0.10.7/test/simline/http.c:607:56:  [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.
                fprintf(stderr, "%c", ((const unsigned char *)data)[i]);
data/libisds-0.10.7/test/simline/isds_resign_message.c:103: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 expected[32];
data/libisds-0.10.7/test/simline/isds_resign_message.c:104: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 returned[32];
data/libisds-0.10.7/test/simline/server.c:113: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 host[NI_MAXHOST];
data/libisds-0.10.7/test/simline/server.c:114: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 service[NI_MAXSERV];
data/libisds-0.10.7/test/test.c:89:11:  [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).
    *fd = open(file, O_RDONLY);
data/libisds-0.10.7/test/test.c:156:11:  [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).
    *fd = open(file, O_RDONLY);
data/libisds-0.10.7/client/isdsclient.c:276: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).
        minor_document.data_length = strlen(minor_document.data);
data/libisds-0.10.7/client/isdsclient.c:290:37:  [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).
        main_document.data_length = strlen(main_document.data);
data/libisds-0.10.7/client/sendmultiple.c:98: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).
        minor_document.data_length = strlen(minor_document.data);
data/libisds-0.10.7/client/sendmultiple.c:108:37:  [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).
        main_document.data_length = strlen(main_document.data);
data/libisds-0.10.7/src/gettext.h:206: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/libisds-0.10.7/src/gettext.h:207: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).
  size_t msgid_len = strlen (msgid) + 1;
data/libisds-0.10.7/src/gettext.h:252: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).
  size_t msgctxt_len = strlen (msgctxt) + 1;
data/libisds-0.10.7/src/gettext.h:253: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).
  size_t msgid_len = strlen (msgid) + 1;
data/libisds-0.10.7/src/isds.c:123:39:  [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).
        memset((*pki)->passphrase, 0, strlen((*pki)->passphrase));
data/libisds-0.10.7/src/isds.c:879: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).
        memset(context->username, 0, strlen(context->username));
data/libisds-0.10.7/src/isds.c:883: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).
        memset(context->password, 0, strlen(context->password));
data/libisds-0.10.7/src/isds.c:888:44:  [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).
        memset(context->saved_username, 0, strlen(context->saved_username));
data/libisds-0.10.7/src/isds.c:954: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).
    length = 1 + ((message) ? strlen(message) : 0);
data/libisds-0.10.7/src/isds.c:981:18:  [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).
    old_length = strlen(context->long_message);
data/libisds-0.10.7/src/isds.c:983: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).
    length = 1 + old_length + strlen(message);
data/libisds-0.10.7/src/isds.c:1157: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).
        pointer = realloc((destination), 1 + strlen(string)); \
data/libisds-0.10.7/src/physxml.c:105: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).
    elements = malloc(sizeof(elements[0]) * (strlen(path) + 1));
data/libisds-0.10.7/src/soap.c:229: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).
    content_length = strlen(encoded_value);
data/libisds-0.10.7/src/soap.c:418:33:  [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 old_length = strlen(headers->last_header);
data/libisds-0.10.7/src/soap.c:424:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(longer_header + old_length, (char*)buffer + 1, length - 1);
data/libisds-0.10.7/src/soap.c:965: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).
        else offset = strlen(content_type);
data/libisds-0.10.7/src/utils.c:26:27:  [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).
    first_len = (first) ? strlen(first) : 0;
data/libisds-0.10.7/src/utils.c:27:29:  [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).
    second_len = (second) ? strlen(second) : 0;
data/libisds-0.10.7/src/utils.c:48:27:  [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).
    first_len = (first) ? strlen(first) : 0;
data/libisds-0.10.7/src/utils.c:49:29:  [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).
    second_len = (second) ? strlen(second) : 0;
data/libisds-0.10.7/src/utils.c:50:27:  [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).
    third_len = (third) ? strlen(third) : 0;
data/libisds-0.10.7/src/utils.c:207:64:  [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).
    length = _isds_any2any("UTF-8", nl_langinfo(CODESET), utf, strlen(utf),
data/libisds-0.10.7/src/utils.c:283: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).
    encoded_length = strlen(encoded);
data/libisds-0.10.7/src/win32.c:38: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).
            && tmp == strlen((const char*)string)) {
data/libisds-0.10.7/src/win32.c:48: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).
            && tmp == strlen((const char*)string)) {
data/libisds-0.10.7/src/win32.c:56: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).
    len = strlen((const char*)string);
data/libisds-0.10.7/src/win32.c:108: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).
    len = strlen(s);
data/libisds-0.10.7/src/win32.c:116:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ret, s, len);
data/libisds-0.10.7/src/win32.c:179: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).
            pos = strlen(*bufptr);
data/libisds-0.10.7/test/simline/http.c:207:20:  [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).
    plain = malloc(strlen(coded) + 1);
data/libisds-0.10.7/test/simline/http.c:347:52:  [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 ((error = http_write_bulk(connection, line, strlen(line))))
data/libisds-0.10.7/test/simline/http.c:501:29:  [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 old_length = strlen(header->value);
data/libisds-0.10.7/test/simline/http.c:503:58:  [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).
                sizeof(header->value[0]) * (old_length + strlen(line) + 1));
data/libisds-0.10.7/test/simline/http.c:524:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(new_header->name, line, length);
data/libisds-0.10.7/test/simline/http.c:528:18:  [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).
        length = strlen(p);
data/libisds-0.10.7/test/simline/http.c:1085:13:  [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(basic_cookie_plain), 1);
data/libisds-0.10.7/test/simline/http.c:1133:14:  [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).
    length = strlen(name);
data/libisds-0.10.7/test/simline/server.c:180:44:  [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 required_base_path_length = strlen(required_base_path);
data/libisds-0.10.7/test/simline/server.c:317:30:  [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).
                    location[strlen(as_path_dontsendsms) + (uri - terminator)] = '\0';
data/libisds-0.10.7/test/simline/server.c:582:54:  [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).
                !strncmp(request->uri, as_path_hotp, strlen(as_path_hotp))) {
data/libisds-0.10.7/test/simline/server.c:586: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).
                    strlen(as_path_sendsms))) {
data/libisds-0.10.7/test/simline/server.c:590: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).
                    strlen(as_path_dontsendsms))) {
data/libisds-0.10.7/test/simline/server.c:593: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).
                    strlen(as_path_logout))) {
data/libisds-0.10.7/test/simline/server.c:631:47:  [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).
    http_send_response_503(connection, fault, strlen(fault),
data/libisds-0.10.7/test/simline/service.c:1078:14:  [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).
    length = strlen(new_password);
data/libisds-0.10.7/test/simline/service.c:1148: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).
                        strlen(forbidden_prefix[i]))) {
data/libisds-0.10.7/test/simline/win32.c:38: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).
            && tmp == strlen(string)) {
data/libisds-0.10.7/test/simline/win32.c:48: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).
            && tmp == strlen(string)) {
data/libisds-0.10.7/test/simline/win32.c:56: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).
    len = strlen(string);
data/libisds-0.10.7/test/test.c:118:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ret = read(*fd, *buffer + pos, *length - pos);

ANALYSIS SUMMARY:

Hits = 123
Lines analyzed = 36917 in approximately 1.02 seconds (36246 lines/second)
Physical Source Lines of Code (SLOC) = 26825
Hits@level = [0] 1128 [1]  55 [2]  44 [3]   7 [4]  17 [5]   0
Hits@level+ = [0+] 1251 [1+] 123 [2+]  68 [3+]  24 [4+]  17 [5+]   0
Hits/KSLOC@level+ = [0+] 46.6356 [1+] 4.58527 [2+] 2.53495 [3+] 0.894688 [4+] 0.633737 [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.