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/iroffer-1.4.b03/src/convertxdccfile.c
Examining data/iroffer-1.4.b03/src/iroffer_admin.c
Examining data/iroffer-1.4.b03/src/iroffer_display.c
Examining data/iroffer-1.4.b03/src/iroffer_md5.c
Examining data/iroffer-1.4.b03/src/iroffer_misc.c
Examining data/iroffer-1.4.b03/src/iroffer_statefile.c
Examining data/iroffer-1.4.b03/src/iroffer_transfer.c
Examining data/iroffer-1.4.b03/src/iroffer_upload.c
Examining data/iroffer-1.4.b03/src/iroffer_utilities.c
Examining data/iroffer-1.4.b03/src/iroffer_defines.h
Examining data/iroffer-1.4.b03/src/iroffer_globals.h
Examining data/iroffer-1.4.b03/src/iroffer_headers.h
Examining data/iroffer-1.4.b03/src/iroffer_md5.h
Examining data/iroffer-1.4.b03/src/iroffer_main.c
Examining data/iroffer-1.4.b03/src/iroffer_dccchat.c

FINAL RESULTS:

data/iroffer-1.4.b03/src/convertxdccfile.c:229:56:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
           gdata.totalsent += ((unsigned long long)xd->gets)*((unsigned long long)xd->st_size);
data/iroffer-1.4.b03/src/iroffer_admin.c:617:23:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
       s = max2(s,xd->gets);
data/iroffer-1.4.b03/src/iroffer_admin.c:638:24:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
                s, xd->gets,
data/iroffer-1.4.b03/src/iroffer_admin.c:1242:42:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
  u_respond(u, " Gets           %d", xd->gets);
data/iroffer-1.4.b03/src/iroffer_admin.c:2223:21:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
            num,xd->gets,atoi(u->arg2));
data/iroffer-1.4.b03/src/iroffer_headers.h:145:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
   int gets;
data/iroffer-1.4.b03/src/iroffer_main.c:3173:47:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
  notice_slow(nick, " Gets           %d", xd->gets);
data/iroffer-1.4.b03/src/iroffer_misc.c:2155:21:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
      gcount += xd->gets;
data/iroffer-1.4.b03/src/iroffer_misc.c:2157:29:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
      scount += ((float)xd->gets)*((float)xd->st_size);
data/iroffer-1.4.b03/src/iroffer_statefile.c:523:34:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
        g_int->g_int = htonl(xd->gets);
data/iroffer-1.4.b03/src/iroffer_utilities.c:1642:17:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
          iter->gets,
data/iroffer-1.4.b03/src/convertxdccfile.c:168:7:  [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(xd->file,templine1+8);
data/iroffer-1.4.b03/src/convertxdccfile.c:172:7:  [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(xd->desc,templine2+8);
data/iroffer-1.4.b03/src/convertxdccfile.c:175:7:  [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(xd->note,templine3+8);
data/iroffer-1.4.b03/src/convertxdccfile.c:320:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vprintf(format, args);
data/iroffer-1.4.b03/src/iroffer_admin.c:26:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_admin.c:196:7:  [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(u->arg1e, line + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:206:7:  [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(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:238:7:  [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(u->arg1e, line + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:248:7:  [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(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:269:7:  [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(u->snick, n);
data/iroffer-1.4.b03/src/iroffer_admin.c:292:7:  [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(u->arg1e, line + len + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:302:7:  [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(u->arg2e, line + len + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:358:16:  [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.
        llen = vsnprintf(tempstr,maxtextlength-3,format,args);
data/iroffer-1.4.b03/src/iroffer_admin.c:1361:3:  [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(thedir, u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1708:4:  [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(xd->file, tempstr[0] ? tempstr : u->arg2e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1752:4:  [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(xd->file,u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1758:4:  [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(xd->desc,getfilename(u->arg1e));
data/iroffer-1.4.b03/src/iroffer_admin.c:1772:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(xd->file,"%s/%s",gdata.filedir,u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1876:3:  [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(thedir, u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1918:11:  [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(thefile, tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:1978:3:  [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(thedir, u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:2035:15:  [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(thefile, tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:2090:4:  [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(xd->desc,u->arg2e);
data/iroffer-1.4.b03/src/iroffer_admin.c:2126:8:  [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(xd->note,u->arg2e);
data/iroffer-1.4.b03/src/iroffer_admin.c:2934:7:  [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(ignore->hostmask,u->arg2);
data/iroffer-1.4.b03/src/iroffer_admin.c:3545:11:  [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(thefile, f->d_name);
data/iroffer-1.4.b03/src/iroffer_admin.c:3707:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tempstr,"%s/%s",gdata.uploaddir,u->arg1e);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:110:3:  [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(chat->nick, nick);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:312:3:  [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(chat->nick, nick);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:371:3:  [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(linec,line);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:453:9:  [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.
  len = vsnprintf(tempstr, maxtextlength, format, ap);
data/iroffer-1.4.b03/src/iroffer_display.c:246:7:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
      vprintf(format,ap);
data/iroffer-1.4.b03/src/iroffer_display.c:251:13:  [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.
      len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_headers.h:439:24:  [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.
__attribute__ ((format(printf, 1, 2)))
data/iroffer-1.4.b03/src/iroffer_headers.h:459:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:467:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:477:24:  [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.
__attribute__ ((format(printf, 4, 5)))
data/iroffer-1.4.b03/src/iroffer_headers.h:485:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:493:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:501:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:509:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:517:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:525:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:566:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/iroffer-1.4.b03/src/iroffer_headers.h:568:1:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
snprintf(char *str, size_t n, const char *format, ... );
data/iroffer-1.4.b03/src/iroffer_headers.h:570:5:  [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.
int vsnprintf(char *str, size_t n, const char *format, va_list ap );
data/iroffer-1.4.b03/src/iroffer_headers.h:633:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_headers.h:684:24:  [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.
__attribute__ ((format(printf, 3, 4)))
data/iroffer-1.4.b03/src/iroffer_main.c:1800:8:  [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(gdata.user_nick,part3);
data/iroffer-1.4.b03/src/iroffer_main.c:1801:8:  [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(gdata.caps_nick,part3);
data/iroffer-1.4.b03/src/iroffer_main.c:2136:12:  [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(gdata.user_nick,part3a);
data/iroffer-1.4.b03/src/iroffer_main.c:2137:12:  [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(gdata.caps_nick,part3a);
data/iroffer-1.4.b03/src/iroffer_main.c:2394:12:  [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(ignore->hostmask,wildhost);
data/iroffer-1.4.b03/src/iroffer_main.c:2597:15:  [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(ul->file,msg3);
data/iroffer-1.4.b03/src/iroffer_main.c:2602:15:  [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(ul->nick,nick);
data/iroffer-1.4.b03/src/iroffer_main.c:2604:15:  [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(ul->hostname,hostname);
data/iroffer-1.4.b03/src/iroffer_main.c:2746:22:  [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(user,nick);
data/iroffer-1.4.b03/src/iroffer_main.c:2869:15:  [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(ml->hostmask, hostmask);
data/iroffer-1.4.b03/src/iroffer_main.c:2871:15:  [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(ml->message, begin);
data/iroffer-1.4.b03/src/iroffer_main.c:2946:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
       snprintf(tempstr, strlen(gdata.autosend.message) + strlen(format) - 1,
data/iroffer-1.4.b03/src/iroffer_main.c:3061:8:  [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(tr->nick,nick);
data/iroffer-1.4.b03/src/iroffer_main.c:3063:8:  [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(tr->caps_nick,nick);
data/iroffer-1.4.b03/src/iroffer_main.c:3066:8:  [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(tr->hostname,hostname);
data/iroffer-1.4.b03/src/iroffer_main.c:3248:10:  [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(tempq->nick,nick);
data/iroffer-1.4.b03/src/iroffer_main.c:3250:10:  [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(tempq->hostname,hostname);
data/iroffer-1.4.b03/src/iroffer_main.c:3339:7:  [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(tr->nick,pq->nick);
data/iroffer-1.4.b03/src/iroffer_main.c:3341:7:  [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(tr->caps_nick,pq->nick);
data/iroffer-1.4.b03/src/iroffer_main.c:3344:7:  [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(tr->hostname,pq->hostname);
data/iroffer-1.4.b03/src/iroffer_misc.c:314:16:  [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(ss->password, var+passoffset);
data/iroffer-1.4.b03/src/iroffer_misc.c:331:8:  [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(pi, var);
data/iroffer-1.4.b03/src/iroffer_misc.c:338:8:  [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(cjr, var);
data/iroffer-1.4.b03/src/iroffer_misc.c:345:8:  [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(cjr, var);
data/iroffer-1.4.b03/src/iroffer_misc.c:352:8:  [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(cjr, var);
data/iroffer-1.4.b03/src/iroffer_misc.c:372:7:  [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(cptr->name,tname);
data/iroffer-1.4.b03/src/iroffer_misc.c:406:17:  [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(cptr->key,tptr2);
data/iroffer-1.4.b03/src/iroffer_misc.c:520:12:  [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(gdata.autosend.message, var + strlen(a) + strlen(b) + 2);
data/iroffer-1.4.b03/src/iroffer_misc.c:730:12:  [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(gdata.connectionmethod.host,targ1);
data/iroffer-1.4.b03/src/iroffer_misc.c:735:12:  [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(gdata.connectionmethod.password,targ3);
data/iroffer-1.4.b03/src/iroffer_misc.c:740:16:  [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(gdata.connectionmethod.vhost,targ4);
data/iroffer-1.4.b03/src/iroffer_misc.c:748:12:  [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(gdata.connectionmethod.host,targ1);
data/iroffer-1.4.b03/src/iroffer_misc.c:757:12:  [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(gdata.connectionmethod.host,targ1);
data/iroffer-1.4.b03/src/iroffer_misc.c:801:4:  [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(gdata.curserver.hostname, tserver->hostname);
data/iroffer-1.4.b03/src/iroffer_misc.c:806:8:  [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(gdata.curserver.password, tserver->password);
data/iroffer-1.4.b03/src/iroffer_misc.c:1141:24:  [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.
__attribute__ ((format(printf, 2, 3)))
data/iroffer-1.4.b03/src/iroffer_misc.c:1159:9:  [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.
  len = vsnprintf(msg,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_misc.c:1205:15:  [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(item, msg);
data/iroffer-1.4.b03/src/iroffer_misc.c:1229:15:  [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(item, msg);
data/iroffer-1.4.b03/src/iroffer_misc.c:1253:15:  [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(item, msg);
data/iroffer-1.4.b03/src/iroffer_misc.c:1406:3:  [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(copy, full + lastslash + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:1457:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(xdcclistfile_tmp,  "%s.tmp", gdata.xdcclistfile);
data/iroffer-1.4.b03/src/iroffer_misc.c:1458:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(xdcclistfile_bkup, "%s~",    gdata.xdcclistfile);
data/iroffer-1.4.b03/src/iroffer_misc.c:2210:3:  [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(tempstr+len, user);
data/iroffer-1.4.b03/src/iroffer_misc.c:2218:7:  [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(tempstr+len, user);
data/iroffer-1.4.b03/src/iroffer_misc.c:2687:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(newname, "%s.%04i-%02i-%02i",
data/iroffer-1.4.b03/src/iroffer_misc.c:2782:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   pwout = crypt(pw1,salt);
data/iroffer-1.4.b03/src/iroffer_misc.c:3058:11:  [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(tr->nick, newnick);
data/iroffer-1.4.b03/src/iroffer_misc.c:3068:11:  [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(pq->nick, newnick);
data/iroffer-1.4.b03/src/iroffer_statefile.c:198:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(statefile_tmp,  "%s.tmp", gdata.statefile);
data/iroffer-1.4.b03/src/iroffer_statefile.c:199:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(statefile_bkup, "%s~",    gdata.statefile);
data/iroffer-1.4.b03/src/iroffer_statefile.c:383: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, ignore->hostmask);
data/iroffer-1.4.b03/src/iroffer_statefile.c:435: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(next, msglog->hostmask);
data/iroffer-1.4.b03/src/iroffer_statefile.c:443: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(next, msglog->message);
data/iroffer-1.4.b03/src/iroffer_statefile.c:500: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(next, xd->file);
data/iroffer-1.4.b03/src/iroffer_statefile.c:508: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(next, xd->desc);
data/iroffer-1.4.b03/src/iroffer_statefile.c:516: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(next, xd->note);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1032:25:  [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(ignore->hostmask,hostmask);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1107:25:  [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(msglog->hostmask,hostmask);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1122:25:  [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(msglog->message,message);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1176:25:  [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(xd->file,file);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1191:25:  [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(xd->desc,desc);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1206:25:  [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(xd->note,note);
data/iroffer-1.4.b03/src/iroffer_transfer.c:862:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       sprintf(ignore->hostmask,"*!*@%s",t->hostname);
data/iroffer-1.4.b03/src/iroffer_upload.c:46:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fullfile, "%s/%s", gdata.uploaddir, l->file);
data/iroffer-1.4.b03/src/iroffer_utilities.c:32:3:  [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(str,str1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:34:3:  [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(match,match1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:141:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(str, SIZESTR_SIZE,
data/iroffer-1.4.b03/src/iroffer_utilities.c:155:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(str, SIZESTR_SIZE,
data/iroffer-1.4.b03/src/iroffer_utilities.c:162:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(str, SIZESTR_SIZE,
data/iroffer-1.4.b03/src/iroffer_utilities.c:167:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(str,SIZESTR_SIZE,
data/iroffer-1.4.b03/src/iroffer_utilities.c:188:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(gdata.osstring, "%s %s",
data/iroffer-1.4.b03/src/iroffer_utilities.c:290:10:  [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.
   len = vsnprintf(tempstr, maxtextlength, format, args);
data/iroffer-1.4.b03/src/iroffer_utilities.c:414:9:  [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.
  len = vsnprintf(tempstr, maxtextlength, format, args);
data/iroffer-1.4.b03/src/iroffer_utilities.c:479:10:  [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.
   len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:571:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:597:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:623:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:649:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:675:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:701:9:  [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.
  len = vsnprintf(tempstr,maxtextlength,format,ap);
data/iroffer-1.4.b03/src/iroffer_utilities.c:800:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
   pwout = crypt(testpass,gdata.adminpass);
data/iroffer-1.4.b03/src/iroffer_utilities.c:1874:7:  [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(member->nick, nick);
data/iroffer-1.4.b03/src/iroffer_utilities.c:1996:3:  [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(newmember->nick, newnick);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2040:11:  [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(gdata.loginname,gdata.runasuser);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2053:7:  [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(gdata.loginname,p->pw_name);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2117:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
int snprintf(char *str, size_t n, const char *format, ... )
data/iroffer-1.4.b03/src/iroffer_utilities.c:2124:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  actlen = vsprintf(mysnprintf_buff,format,args);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2133:5:  [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.
int vsnprintf(char *str, size_t n, const char *format, va_list ap )
data/iroffer-1.4.b03/src/iroffer_utilities.c:2138:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  actlen = vsprintf(mysnprintf_buff,format,ap);
data/iroffer-1.4.b03/src/convertxdccfile.c:270:23:  [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 ((callval_i = getopt(argc, argv, "vx:s:")) >= 0)
data/iroffer-1.4.b03/src/iroffer_main.c:116:20:  [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( (retval = getopt( argc, argv, options )) != -1 )
data/iroffer-1.4.b03/src/iroffer_misc.c:2434:4:  [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((unsigned int)( (getpid()*5000) + (gdata.curtime%5000) ));
data/iroffer-1.4.b03/src/iroffer_misc.c:2516:11:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
      if( chroot( gdata.chrootdir ) < 0 ) {
data/iroffer-1.4.b03/src/iroffer_misc.c:2776:4:  [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((unsigned int)( (getpid()*5000) + (time(NULL)%5000) ));
data/iroffer-1.4.b03/src/convertxdccfile.c:50:19:  [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).
   filedescriptor=open(filename, O_RDONLY | O_CREAT | ADDED_OPEN_FLAGS, CREAT_PERMISSIONS);
data/iroffer-1.4.b03/src/convertxdccfile.c:85:28:  [2] (integer) atol:
  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).
         gdata.totaluptime=atol(msg);
data/iroffer-1.4.b03/src/convertxdccfile.c:102:28:  [2] (integer) atol:
  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).
         gdata.totaluptime=atol(msg);
data/iroffer-1.4.b03/src/convertxdccfile.c:177:22:  [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).
      xd->gets     = atoi(templine4+8);
data/iroffer-1.4.b03/src/convertxdccfile.c:187:23:  [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).
      xfiledescriptor=open(xd->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:355: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_admin.c:1078:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1097:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1118:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1138:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1160: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).
      num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1203: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 tempstr[maxtextlengthshort];
data/iroffer-1.4.b03/src/iroffer_admin.c:1207:24:  [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 (u->arg1) { num = atoi(u->arg1); }
data/iroffer-1.4.b03/src/iroffer_admin.c:1268:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1412:15:  [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 tempstr2[8];
data/iroffer-1.4.b03/src/iroffer_admin.c:1463:23:  [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 (u->arg2) num = atoi(u->arg2);
data/iroffer-1.4.b03/src/iroffer_admin.c:1633: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_admin.c:1639:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1656:20:  [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).
   xfiledescriptor=open(u->arg2e, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:1662:23:  [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).
      xfiledescriptor=open(tempstr, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:1766:20:  [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).
   xfiledescriptor=open(xd->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:1774:24:  [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).
       xfiledescriptor=open(xd->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:2071:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2103:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2140:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2171:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2205: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).
      num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2223:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            num,xd->gets,atoi(u->arg2));
data/iroffer-1.4.b03/src/iroffer_admin.c:2225: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).
  xd->gets = atoi(u->arg2);
data/iroffer-1.4.b03/src/iroffer_admin.c:2329:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2384:22:  [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).
      filedescriptor=open(gdata.configfile[h], O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_admin.c:2902:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3008:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3020:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3032:23:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3046:23:  [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 (u->arg1) oldp = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3047:23:  [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 (u->arg2) newp = atoi(u->arg2);
data/iroffer-1.4.b03/src/iroffer_admin.c:3206: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(meminfo, gdata.meminfo,
data/iroffer-1.4.b03/src/iroffer_admin.c:3320:18:  [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).
   gdata.debug = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3346: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).
      num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3405:22:  [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 (u->arg1) num = atoi(u->arg1);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:259:29:  [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).
  remoteip.sin_port = htons(atoi(port));
data/iroffer-1.4.b03/src/iroffer_dccchat.c:442: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_display.c:242: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 tempstr[maxtextlength+1];
data/iroffer-1.4.b03/src/iroffer_display.c:268:10:  [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 console_escape_seq[maxtextlengthshort] = {};
data/iroffer-1.4.b03/src/iroffer_display.c:270: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 tempbuffa[INPUT_BUFFER_LENGTH];
data/iroffer-1.4.b03/src/iroffer_display.c:311:41:  [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).
                                  count=atoi(&console_escape_seq[2]);
data/iroffer-1.4.b03/src/iroffer_display.c:339:41:  [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).
                                  count=atoi(&console_escape_seq[2]);
data/iroffer-1.4.b03/src/iroffer_display.c:375:41:  [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).
                                  count=atoi(&console_escape_seq[2]);
data/iroffer-1.4.b03/src/iroffer_display.c:389:41:  [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).
                                  count=atoi(&console_escape_seq[2]);
data/iroffer-1.4.b03/src/iroffer_globals.h:141:1:  [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 chanmodes[MAX_CHANMODES];
data/iroffer-1.4.b03/src/iroffer_headers.h:119: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[IR_BOUTPUT_SEGMENT_SIZE];
data/iroffer-1.4.b03/src/iroffer_headers.h:182: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 hostmask[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_headers.h:292: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 dcc_input_line[INPUT_BUFFER_LENGTH];
data/iroffer-1.4.b03/src/iroffer_headers.h:364: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 prefixes[MAX_PREFIX];
data/iroffer-1.4.b03/src/iroffer_headers.h:365: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 nick[1]; /* last, make this bigger on alloc */
data/iroffer-1.4.b03/src/iroffer_main.c:203:11:  [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 server_input_line[INPUT_BUFFER_LENGTH];
data/iroffer-1.4.b03/src/iroffer_main.c:574:10:  [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 tempbuffa[INPUT_BUFFER_LENGTH];
data/iroffer-1.4.b03/src/iroffer_main.c:877:15:  [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 tempbuffa[INPUT_BUFFER_LENGTH];
data/iroffer-1.4.b03/src/iroffer_main.c:1562: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_main.c:1563: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 tempstr2[maxtextlengthshort];
data/iroffer-1.4.b03/src/iroffer_main.c:1655:44:  [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).
                  gdata.md5build.file_fd = open(xd->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_main.c:2503:77:  [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).
                  (strstrnocase(tr->xpack->file,msg3) || (tr->listenport == atoi(msg4))))
data/iroffer-1.4.b03/src/iroffer_main.c:2539:46:  [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).
                              tr->listenport,atoi(msg4));
data/iroffer-1.4.b03/src/iroffer_main.c:2599:32:  [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).
              ul->remoteport = atoi(msg5);
data/iroffer-1.4.b03/src/iroffer_main.c:2640:38:  [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 ((ul->remoteport == atoi(msg4)) && !strcmp(ul->nick, nick))
data/iroffer-1.4.b03/src/iroffer_main.c:3122: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 tempstr[maxtextlengthshort];
data/iroffer-1.4.b03/src/iroffer_md5.c:86: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((md5byte *)ctx->in + 64 - t, buf, len);
data/iroffer-1.4.b03/src/iroffer_md5.c:90: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((md5byte *)ctx->in + 64 - t, buf, t);
data/iroffer-1.4.b03/src/iroffer_md5.c:98: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(ctx->in, buf, 64);
data/iroffer-1.4.b03/src/iroffer_md5.c:106: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(ctx->in, buf, len);
data/iroffer-1.4.b03/src/iroffer_md5.c:141: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(digest, ctx->buf, 16);
data/iroffer-1.4.b03/src/iroffer_misc.c:36:23:  [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).
       filedescriptor=open(gdata.configfile[h], O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_misc.c:317:23:  [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).
           ss->port = atoi(portstr);
data/iroffer-1.4.b03/src/iroffer_misc.c:378:34:  [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).
               cptr->plisttime = atoi(tptr2);
data/iroffer-1.4.b03/src/iroffer_misc.c:397:35:  [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).
              cptr->plistoffset = atoi(tptr2);
data/iroffer-1.4.b03/src/iroffer_misc.c:464:34:  [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).
      gdata.slotsmax = between(1,atoi(var),MAXTRANS);
data/iroffer-1.4.b03/src/iroffer_misc.c:465:29:  [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 (gdata.slotsmax != atoi(var))
data/iroffer-1.4.b03/src/iroffer_misc.c:467:89:  [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).
          outerror(OUTERROR_TYPE_WARN,"unable to have slotsmax of %d, using %d instead",atoi(var),gdata.slotsmax);
data/iroffer-1.4.b03/src/iroffer_misc.c:482:56:  [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).
         gdata.overallmaxspeeddaytimestart = between(0,atoi(a),23);
data/iroffer-1.4.b03/src/iroffer_misc.c:483:56:  [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).
         gdata.overallmaxspeeddaytimeend   = between(0,atoi(b),23);
data/iroffer-1.4.b03/src/iroffer_misc.c:503:56:  [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).
               gdata.transferlimits[ii].limit = max2(0,atoi(part));
data/iroffer-1.4.b03/src/iroffer_misc.c:514:44:  [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).
           gdata.autosend.pack = between(0,atoi(a),100000);
data/iroffer-1.4.b03/src/iroffer_misc.c:559: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).
      i = open(gdata.statefile, O_RDWR | O_CREAT | ADDED_OPEN_FLAGS, CREAT_PERMISSIONS );
data/iroffer-1.4.b03/src/iroffer_misc.c:589:42:  [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).
         gdata.periodicmsg_time = max2(1,atoi(tnum));
data/iroffer-1.4.b03/src/iroffer_misc.c:732:42:  [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).
           gdata.connectionmethod.port = atoi(targ2);
data/iroffer-1.4.b03/src/iroffer_misc.c:750:42:  [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).
           gdata.connectionmethod.port = atoi(targ2);
data/iroffer-1.4.b03/src/iroffer_misc.c:759:42:  [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).
           gdata.connectionmethod.port = atoi(targ2);
data/iroffer-1.4.b03/src/iroffer_misc.c:983: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(&ircserverip.sin_addr, remote, sizeof(struct in_addr));
data/iroffer-1.4.b03/src/iroffer_misc.c:1050: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 portstr[maxtextlengthshort];
data/iroffer-1.4.b03/src/iroffer_misc.c:1460:8:  [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(xdcclistfile_tmp,
data/iroffer-1.4.b03/src/iroffer_misc.c:1524:19:  [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).
   filedescriptor=open(filename, O_WRONLY | O_TRUNC | O_CREAT | ADDED_OPEN_FLAGS, CREAT_PERMISSIONS);
data/iroffer-1.4.b03/src/iroffer_misc.c:1579:8:  [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).
   s = open("/dev/null", O_RDWR); /* stdin */
data/iroffer-1.4.b03/src/iroffer_misc.c:2486:34:  [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( (pw_ent = getpwuid( atoi( gdata.runasuser ) )) == NULL)
data/iroffer-1.4.b03/src/iroffer_misc.c:2737: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 pw1[maxtextlengthshort], pw2[maxtextlengthshort];
data/iroffer-1.4.b03/src/iroffer_misc.c:2739: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 salt[3], *pwout;
data/iroffer-1.4.b03/src/iroffer_statefile.c:148:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char dummy[4] = {};
data/iroffer-1.4.b03/src/iroffer_statefile.c:207:8:  [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(statefile_tmp,
data/iroffer-1.4.b03/src/iroffer_statefile.c:567: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(md5sum_info->md5sum, xd->md5sum, sizeof(MD5Digest));
data/iroffer-1.4.b03/src/iroffer_statefile.c:752:8:  [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(gdata.statefile,
data/iroffer-1.4.b03/src/iroffer_statefile.c:1270:25:  [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(xd->md5sum, md5sum_info->md5sum, sizeof(MD5Digest));
data/iroffer-1.4.b03/src/iroffer_statefile.c:1299:23:  [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).
                xfd = open(xd->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_transfer.c:116:28:  [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).
       t->xpack->file_fd = open(t->xpack->file, O_RDONLY | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_upload.c:48:23:  [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).
  l->filedescriptor = open(fullfile,
data/iroffer-1.4.b03/src/iroffer_upload.c:73:31:  [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).
          l->filedescriptor = open(fullfile, O_WRONLY | O_APPEND | ADDED_OPEN_FLAGS);
data/iroffer-1.4.b03/src/iroffer_utilities.c:87: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(part, line+li, plen);
data/iroffer-1.4.b03/src/iroffer_utilities.c:275: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:381: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:392:21:  [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).
      gdata.logfd = open(gdata.logfile,
data/iroffer-1.4.b03/src/iroffer_utilities.c:475: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:501:15:  [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 tempstr2[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:566: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:592: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:618: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:644: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:670: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:696: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 tempstr[maxtextlength];
data/iroffer-1.4.b03/src/iroffer_utilities.c:875: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).
   return atoi(a);
data/iroffer-1.4.b03/src/iroffer_utilities.c:1186:14:  [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).
   if ((fd = open(f,O_RDONLY | O_CREAT | O_EXCL | ADDED_OPEN_FLAGS, CREAT_PERMISSIONS)) < 0 && errno == EEXIST)
data/iroffer-1.4.b03/src/iroffer_utilities.c:1827: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 prefixes[MAX_PREFIX] = {};
data/iroffer-1.4.b03/src/iroffer_utilities.c:1875: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(member->prefixes, prefixes, sizeof(prefixes));
data/iroffer-1.4.b03/src/iroffer_utilities.c:2000: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(newmember->prefixes, oldmember->prefixes, sizeof(oldmember->prefixes));
data/iroffer-1.4.b03/src/iroffer_utilities.c:2047:11:  [2] (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). Risk is low because the source is a constant string.
          strcpy(gdata.loginname,"UNKNOWN");
data/iroffer-1.4.b03/src/iroffer_utilities.c:2121: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 mysnprintf_buff[1024*10];   
data/iroffer-1.4.b03/src/iroffer_utilities.c:2136: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 mysnprintf_buff[1024*10];   
data/iroffer-1.4.b03/src/iroffer_utilities.c:2818: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(segment->buffer+segment->end, buffer_c+cur, len);
data/iroffer-1.4.b03/src/convertxdccfile.c:142: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).
      for (i=strlen(templine1)-1; i>7 && templine1[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:144: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).
      for (i=strlen(templine2)-1; i>7 && templine2[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:146: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).
      for (i=strlen(templine3)-1; i>7 && templine3[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:148: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).
      for (i=strlen(templine4)-1; i>7 && templine4[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:150: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).
      for (i=strlen(templine5)-1; i>7 && templine5[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:152: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).
      for (i=strlen(templine6)-1; i>7 && templine6[i] == ' '; i--)
data/iroffer-1.4.b03/src/convertxdccfile.c:155: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(templine1) < 8) || strncmp(templine1+3,"file ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:156: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(templine2) < 8) || strncmp(templine2+3,"desc ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:157: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(templine3) < 8) || strncmp(templine3+3,"note ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:158: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(templine4) < 8) || strncmp(templine4+3,"gets ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:159: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(templine5) < 8) || strncmp(templine5+3,"mins ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:160: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(templine6) < 8) || strncmp(templine6+3,"maxs ",5)) ok++;
data/iroffer-1.4.b03/src/convertxdccfile.c:167: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).
      xd->file = mycalloc(strlen(templine1+8)+1);
data/iroffer-1.4.b03/src/convertxdccfile.c:171: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).
      xd->desc = mycalloc(strlen(templine2+8)+1);
data/iroffer-1.4.b03/src/convertxdccfile.c:174: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).
      xd->note = mycalloc(strlen(templine3+8)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:179: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).
  if (line[0] && (line[strlen(line)-1] == '\n'))
data/iroffer-1.4.b03/src/iroffer_admin.c:181: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).
      line[strlen(line)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_admin.c:195: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).
      u->arg1e = mymalloc(strlen(line) - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:195:42:  [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).
      u->arg1e = mymalloc(strlen(line) - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:196: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).
      strcpy(u->arg1e, line + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:205: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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:205:42:  [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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:205:59:  [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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:206: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).
      strcpy(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:206:48:  [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).
      strcpy(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:221: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 (line[strlen(line)-1] == '\n')
data/iroffer-1.4.b03/src/iroffer_admin.c:223: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).
      line[strlen(line)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_admin.c:237: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).
      u->arg1e = mymalloc(strlen(line) - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:237:42:  [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).
      u->arg1e = mymalloc(strlen(line) - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:238: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).
      strcpy(u->arg1e, line + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:247: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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:247:42:  [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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:247:59:  [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).
      u->arg2e = mymalloc(strlen(line) - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:248: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).
      strcpy(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:248:48:  [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).
      strcpy(u->arg2e, line + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:268: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).
      u->snick = mymalloc(strlen(n)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:287:9:  [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(t1) + strlen(t2) + strlen(t3) + strlen(t4) + strlen(t5) + 5;
data/iroffer-1.4.b03/src/iroffer_admin.c:287: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).
  len = strlen(t1) + strlen(t2) + strlen(t3) + strlen(t4) + strlen(t5) + 5;
data/iroffer-1.4.b03/src/iroffer_admin.c:287: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).
  len = strlen(t1) + strlen(t2) + strlen(t3) + strlen(t4) + strlen(t5) + 5;
data/iroffer-1.4.b03/src/iroffer_admin.c:287:48:  [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(t1) + strlen(t2) + strlen(t3) + strlen(t4) + strlen(t5) + 5;
data/iroffer-1.4.b03/src/iroffer_admin.c:287:61:  [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(t1) + strlen(t2) + strlen(t3) + strlen(t4) + strlen(t5) + 5;
data/iroffer-1.4.b03/src/iroffer_admin.c:291: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).
      u->arg1e = mymalloc(strlen(line) - len - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:291:48:  [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).
      u->arg1e = mymalloc(strlen(line) - len - strlen(u->cmd) - 1 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:292: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).
      strcpy(u->arg1e, line + len + strlen(u->cmd) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:301: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).
      u->arg2e = mymalloc(strlen(line) - len - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:301:48:  [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).
      u->arg2e = mymalloc(strlen(line) - len - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:301:65:  [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).
      u->arg2e = mymalloc(strlen(line) - len - strlen(u->cmd) - strlen(u->arg1) - 2 + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:302: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).
      strcpy(u->arg2e, line + len + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:302: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).
      strcpy(u->arg2e, line + len + strlen(u->cmd) + strlen(u->arg1) + 2);
data/iroffer-1.4.b03/src/iroffer_admin.c:377:40:  [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).
        retval = write(u->fd, tempstr, strlen(tempstr));
data/iroffer-1.4.b03/src/iroffer_admin.c:409: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).
   if (!u->cmd || !strlen(u->cmd)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:524: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).
       len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:532: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:540: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:548: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:556: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:570: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).
       len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:577: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:585: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:641: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).
       len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:649: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:657: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:662: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).
       if (xd->note && strlen(xd->note))
data/iroffer-1.4.b03/src/iroffer_admin.c:1188: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1341: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1349:16:  [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 (u->arg1e[strlen(u->arg1e)-1] == '/')
data/iroffer-1.4.b03/src/iroffer_admin.c:1351:16:  [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).
      u->arg1e[strlen(u->arg1e)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_admin.c:1354: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).
  thedirlen = strlen(u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1357: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).
      thedirlen += strlen(gdata.filedir) + 1;
data/iroffer-1.4.b03/src/iroffer_admin.c:1382:17:  [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(f->d_name);
data/iroffer-1.4.b03/src/iroffer_admin.c:1465: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).
   if (!u->arg1 || !strlen(u->arg1)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:1488: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).
  if (!u->arg1 || !strlen(u->arg1))
data/iroffer-1.4.b03/src/iroffer_admin.c:1494: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).
  if (!u->arg2 || !strlen(u->arg2))
data/iroffer-1.4.b03/src/iroffer_admin.c:1542: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).
  if (!u->arg1 || !strlen(u->arg1))
data/iroffer-1.4.b03/src/iroffer_admin.c:1548: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).
  if (!u->arg2e || !strlen(u->arg2e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1564: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1588: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1646: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).
   if (!u->arg2e || !strlen(u->arg2e)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:1706: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).
   xd->file = mycalloc(strlen(tempstr[0] ? tempstr : u->arg2e) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1744: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).
   if (!u->arg1e || !strlen(u->arg1e)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:1751: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).
   xd->file = mymalloc(strlen(u->arg1e)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1755:4:  [1] (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). Risk is low because the source is a constant character.
   strcpy(xd->note,"");
data/iroffer-1.4.b03/src/iroffer_admin.c:1757: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).
   xd->desc = mymalloc(strlen(getfilename(u->arg1e)) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1771: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).
       xd->file = mymalloc(strlen(gdata.filedir)+1+strlen(u->arg1e)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1771: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).
       xd->file = mymalloc(strlen(gdata.filedir)+1+strlen(u->arg1e)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:1856: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1864:16:  [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 (u->arg1e[strlen(u->arg1e)-1] == '/')
data/iroffer-1.4.b03/src/iroffer_admin.c:1866:16:  [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).
      u->arg1e[strlen(u->arg1e)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_admin.c:1869: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).
  thedirlen = strlen(u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1872: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).
      thedirlen += strlen(gdata.filedir) + 1;
data/iroffer-1.4.b03/src/iroffer_admin.c:1897:17:  [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(f->d_name);
data/iroffer-1.4.b03/src/iroffer_admin.c:1958: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).
  if (!u->arg1e || !strlen(u->arg1e))
data/iroffer-1.4.b03/src/iroffer_admin.c:1966:16:  [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 (u->arg1e[strlen(u->arg1e)-1] == '/')
data/iroffer-1.4.b03/src/iroffer_admin.c:1968:16:  [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).
      u->arg1e[strlen(u->arg1e)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_admin.c:1971: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).
  thedirlen = strlen(u->arg1e);
data/iroffer-1.4.b03/src/iroffer_admin.c:1974: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).
      thedirlen += strlen(gdata.filedir) + 1;
data/iroffer-1.4.b03/src/iroffer_admin.c:1999:17:  [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(f->d_name);
data/iroffer-1.4.b03/src/iroffer_admin.c:2077: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).
   if (!u->arg2e || !strlen(u->arg2e)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:2088: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).
   xd->desc = mymalloc(strlen(u->arg2e) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2121:8:  [1] (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). Risk is low because the source is a constant character.
       strcpy(xd->note,"");
data/iroffer-1.4.b03/src/iroffer_admin.c:2125: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).
       xd->note = mymalloc(strlen(u->arg2e) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:2146: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).
   if (!u->arg2 || !strlen(u->arg2)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:2177: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).
   if (!u->arg2 || !strlen(u->arg2)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:2214: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).
  if (!u->arg2 || !strlen(u->arg2))
data/iroffer-1.4.b03/src/iroffer_admin.c:2586:72:  [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 ( irlist_size(&gdata.uploadhost) && ( gdata.uploaddir == NULL || strlen(gdata.uploaddir) < 2 ) )
data/iroffer-1.4.b03/src/iroffer_admin.c:2691: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).
       len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:2698: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).
           len = strlen(tempstr);
data/iroffer-1.4.b03/src/iroffer_admin.c:2910: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).
  if (!u->arg2 || strlen(u->arg2) < 4)
data/iroffer-1.4.b03/src/iroffer_admin.c:2933: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).
      ignore->hostmask = mymalloc(strlen(u->arg2)+1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3530: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).
  thedirlen = strlen(gdata.uploaddir);
data/iroffer-1.4.b03/src/iroffer_admin.c:3544:42:  [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).
          thefile = irlist_add(&dirlist, strlen(f->d_name) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3565: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).
          int len = strlen(thefile);
data/iroffer-1.4.b03/src/iroffer_admin.c:3694: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).
   if (!u->arg1e || !strlen(u->arg1e)) {
data/iroffer-1.4.b03/src/iroffer_admin.c:3706: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).
   tempstr = mymalloc(strlen(gdata.uploaddir) + 1 + strlen(u->arg1e) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3706:53:  [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).
   tempstr = mymalloc(strlen(gdata.uploaddir) + 1 + strlen(u->arg1e) + 1);
data/iroffer-1.4.b03/src/iroffer_admin.c:3754: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).
          snprintf(tempstr + strlen(tempstr),
data/iroffer-1.4.b03/src/iroffer_admin.c:3755:40:  [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).
                   maxtextlength - 1 - strlen(tempstr),
data/iroffer-1.4.b03/src/iroffer_dccchat.c:109: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).
  chat->nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:256:8:  [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).
  port[strlen(port)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_dccchat.c:311: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).
  chat->nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:370: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).
  linec = mymalloc(strlen(line)+1);
data/iroffer-1.4.b03/src/iroffer_dccchat.c:513:7:  [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(100*1000);
data/iroffer-1.4.b03/src/iroffer_display.c:150:9:  [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(gdata.console_input_line);
data/iroffer-1.4.b03/src/iroffer_display.c:152:51:  [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).
  maxlen = gdata.termcols - (gdata.user_nick ? 17+strlen(gdata.user_nick) : 17);
data/iroffer-1.4.b03/src/iroffer_display.c:169: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).
           gdata.termcols - (int)(gdata.user_nick ? 16+strlen(gdata.user_nick) : 16),
data/iroffer-1.4.b03/src/iroffer_display.c:175:91:  [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).
           ((gdata.curcol > maxlen) ? maxlen : gdata.curcol) + (gdata.user_nick ? 16+(int)strlen(gdata.user_nick) : 16));
data/iroffer-1.4.b03/src/iroffer_display.c:194:51:  [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).
  maxlen = gdata.termcols - (gdata.user_nick ? 17+strlen(gdata.user_nick) : 17);
data/iroffer-1.4.b03/src/iroffer_display.c:197:91:  [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).
           ((gdata.curcol > maxlen) ? maxlen : gdata.curcol) + (gdata.user_nick ? 16+(int)strlen(gdata.user_nick) : 16));
data/iroffer-1.4.b03/src/iroffer_display.c:281:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      length = read (fileno(stdin), &tempbuffa, INPUT_BUFFER_LENGTH);
data/iroffer-1.4.b03/src/iroffer_display.c:288: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).
      linelength = strlen(gdata.console_input_line);
data/iroffer-1.4.b03/src/iroffer_display.c:293: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).
              int esc_len = strlen(console_escape_seq);
data/iroffer-1.4.b03/src/iroffer_display.c:323:39:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                      strncpy(gdata.console_input_line,
data/iroffer-1.4.b03/src/iroffer_display.c:327: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).
                                      linelength = strlen(gdata.console_input_line);
data/iroffer-1.4.b03/src/iroffer_display.c:351:39:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                      strncpy(gdata.console_input_line,
data/iroffer-1.4.b03/src/iroffer_display.c:355: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).
                                      linelength = strlen(gdata.console_input_line);
data/iroffer-1.4.b03/src/iroffer_display.c:423:19:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                  strncpy(hist, gdata.console_input_line, linelength);
data/iroffer-1.4.b03/src/iroffer_main.c:374:15:  [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(10000); /* prevent fast spinning */
data/iroffer-1.4.b03/src/iroffer_main.c:577:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         length = read (gdata.ircserver, &tempbuffa, INPUT_BUFFER_LENGTH);
data/iroffer-1.4.b03/src/iroffer_main.c:598:16:  [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).
             j=strlen(server_input_line);
data/iroffer-1.4.b03/src/iroffer_main.c:695:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          length = read(gdata.serv_resolv.sp_fd[0],
data/iroffer-1.4.b03/src/iroffer_main.c:887:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                  length = read(chat->fd, &tempbuffa, INPUT_BUFFER_LENGTH);
data/iroffer-1.4.b03/src/iroffer_main.c:900: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).
                      j=strlen(chat->dcc_input_line);
data/iroffer-1.4.b03/src/iroffer_main.c:1251: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).
                int        len       = 6 + strlen(servname);
data/iroffer-1.4.b03/src/iroffer_main.c:1367:29:  [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(tchanm,",",maxtextlength-strlen(tchanm)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1367:62:  [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).
                            strncat(tchanm,",",maxtextlength-strlen(tchanm)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1368:29:  [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(tchanm,ch->name,maxtextlength-strlen(tchanm)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1368:67:  [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).
                            strncat(tchanm,ch->name,maxtextlength-strlen(tchanm)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1373:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(tchanm,ch->name,maxtextlength-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1380:29:  [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(tchans,",",maxtextlength-strlen(tchans)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1380:62:  [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).
                            strncat(tchans,",",maxtextlength-strlen(tchans)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1381:29:  [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(tchans,ch->name,maxtextlength-strlen(tchans)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1381:67:  [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).
                            strncat(tchans,ch->name,maxtextlength-strlen(tchans)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1386:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(tchans,ch->name,maxtextlength-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1393:29:  [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(tchanf,",",maxtextlength-strlen(tchanf)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1393:62:  [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).
                            strncat(tchanf,",",maxtextlength-strlen(tchanf)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1394:29:  [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(tchanf,ch->name,maxtextlength-strlen(tchanf)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1394:67:  [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).
                            strncat(tchanf,ch->name,maxtextlength-strlen(tchanf)-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1399:29:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                            strncpy(tchanf,ch->name,maxtextlength-1);
data/iroffer-1.4.b03/src/iroffer_main.c:1598:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              howmuch = read(gdata.md5build.file_fd, gdata.sendbuff, BUFFERSIZE);
data/iroffer-1.4.b03/src/iroffer_main.c:1798: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).
       gdata.user_nick = mymalloc(strlen(part3)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:1799: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).
       gdata.caps_nick = mymalloc(strlen(part3)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:1806: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).
       if (gdata.user_modes && strlen(gdata.user_modes))
data/iroffer-1.4.b03/src/iroffer_main.c:1938: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).
   if (strncmp(line, "ERROR :Closing Link", strlen("ERROR :Closing Link")) == 0) {
data/iroffer-1.4.b03/src/iroffer_main.c:1967: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).
      nick = mycalloc(strlen(line)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2031: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).
       nick = mycalloc(strlen(line)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2078: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).
       nick = mycalloc(strlen(line)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2112: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).
       oldnick = mycalloc(strlen(line)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2134: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).
           gdata.user_nick = mymalloc(strlen(part3a)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2135: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).
           gdata.caps_nick = mymalloc(strlen(part3a)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2219:41:  [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 (nick[strlen(nick)-1] == '\1')
data/iroffer-1.4.b03/src/iroffer_main.c:2221:41:  [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).
                                   nick[strlen(nick)-1] == '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2325:51:  [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).
   snprintf(wildhost,line_len+2,"*!%s",hostmask + strlen(nick) + 1);
data/iroffer-1.4.b03/src/iroffer_main.c:2393:40:  [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).
           ignore->hostmask = mymalloc(strlen(wildhost)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2437: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).
      if (msg2 && (msg2[strlen(msg2)-1] == '\1'))
data/iroffer-1.4.b03/src/iroffer_main.c:2439:16:  [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).
          msg2[strlen(msg2)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2441: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).
      if (msg3 && (msg3[strlen(msg3)-1] == '\1'))
data/iroffer-1.4.b03/src/iroffer_main.c:2443:16:  [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).
          msg3[strlen(msg3)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2496: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).
          if (msg5[strlen(msg5)-1] == '\1') msg5[strlen(msg5)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2496: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).
          if (msg5[strlen(msg5)-1] == '\1') msg5[strlen(msg5)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2563: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).
          if (msg6[strlen(msg6)-1] == '\1')
data/iroffer-1.4.b03/src/iroffer_main.c:2565: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).
              msg6[strlen(msg6)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2596: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).
              ul->file = mymalloc(strlen(msg3)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2601: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).
              ul->nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2603: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).
              ul->hostname = mymalloc(strlen(hostname)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2614: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).
          if (msg5[strlen(msg5)-1] == '\1')
data/iroffer-1.4.b03/src/iroffer_main.c:2616: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).
              msg5[strlen(msg5)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2699: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).
      if (msg3 && msg3[strlen(msg3)-1] == '\1')
data/iroffer-1.4.b03/src/iroffer_main.c:2700: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).
         msg3[strlen(msg3)-1] = '\0';
data/iroffer-1.4.b03/src/iroffer_main.c:2745:59:  [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).
                     user = irlist_add(&gdata.xlistqueue, strlen(nick) + 1);
data/iroffer-1.4.b03/src/iroffer_main.c:2865: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).
              begin = line + 5 + strlen(hostmask) + strlen(type) + strlen(dest);
data/iroffer-1.4.b03/src/iroffer_main.c:2865:53:  [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).
              begin = line + 5 + strlen(hostmask) + strlen(type) + strlen(dest);
data/iroffer-1.4.b03/src/iroffer_main.c:2865:68:  [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).
              begin = line + 5 + strlen(hostmask) + strlen(type) + strlen(dest);
data/iroffer-1.4.b03/src/iroffer_main.c:2868: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).
              ml->hostmask = mymalloc(strlen(hostmask)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2870: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).
              ml->message = mymalloc(strlen(begin)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:2945: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).
       tempstr = mycalloc(strlen(gdata.autosend.message) + strlen(format) - 1);
data/iroffer-1.4.b03/src/iroffer_main.c:2945:60:  [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).
       tempstr = mycalloc(strlen(gdata.autosend.message) + strlen(format) - 1);
data/iroffer-1.4.b03/src/iroffer_main.c:2946:26:  [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).
       snprintf(tempstr, strlen(gdata.autosend.message) + strlen(format) - 1,
data/iroffer-1.4.b03/src/iroffer_main.c:2946:59:  [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).
       snprintf(tempstr, strlen(gdata.autosend.message) + strlen(format) - 1,
data/iroffer-1.4.b03/src/iroffer_main.c:3060: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).
       tr->nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3062: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).
       tr->caps_nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3065: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).
       tr->hostname = mymalloc(strlen(hostname)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3247: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).
         tempq->nick = mymalloc(strlen(nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3249: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).
         tempq->hostname = mymalloc(strlen(hostname)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3338: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).
      tr->nick = mymalloc(strlen(pq->nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3340: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).
      tr->caps_nick = mymalloc(strlen(pq->nick)+1);
data/iroffer-1.4.b03/src/iroffer_main.c:3343: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).
      tr->hostname = mymalloc(strlen(pq->hostname)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:60:72:  [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 ( irlist_size(&gdata.uploadhost) && ( gdata.uploaddir == NULL || strlen(gdata.uploaddir) < 2 ) )
data/iroffer-1.4.b03/src/iroffer_misc.c:155:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  i = strlen(line);
data/iroffer-1.4.b03/src/iroffer_misc.c:307: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).
           int totallen = strlen(var);
data/iroffer-1.4.b03/src/iroffer_misc.c:308: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).
           int passoffset = strlen(ss->hostname) + strlen(portstr) + 2;
data/iroffer-1.4.b03/src/iroffer_misc.c:308: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).
           int passoffset = strlen(ss->hostname) + strlen(portstr) + 2;
data/iroffer-1.4.b03/src/iroffer_misc.c:330:42:  [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).
       pi = irlist_add(&gdata.proxyinfo, strlen(var) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:337: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).
       cjr = irlist_add(&gdata.channel_join_raw, strlen(var) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:344: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).
       cjr = irlist_add(&gdata.server_join_raw, strlen(var) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:351: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).
       cjr = irlist_add(&gdata.server_connected_raw, strlen(var) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:371: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).
      cptr->name = mymalloc(strlen(tname)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:405: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).
                cptr->key = mymalloc(strlen(tptr2)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:434: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).
       for (i=strlen(var)-1; i>=0; i--)
data/iroffer-1.4.b03/src/iroffer_misc.c:519: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).
           gdata.autosend.message = mymalloc(strlen(var) - 2 - strlen(a) - strlen(b) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:519: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).
           gdata.autosend.message = mymalloc(strlen(var) - 2 - strlen(a) - strlen(b) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:519:76:  [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).
           gdata.autosend.message = mymalloc(strlen(var) - 2 - strlen(a) - strlen(b) + 1);
data/iroffer-1.4.b03/src/iroffer_misc.c:520: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).
           strcpy(gdata.autosend.message, var + strlen(a) + strlen(b) + 2);
data/iroffer-1.4.b03/src/iroffer_misc.c:520:61:  [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).
           strcpy(gdata.autosend.message, var + strlen(a) + strlen(b) + 2);
data/iroffer-1.4.b03/src/iroffer_misc.c:591: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).
         offset = strlen(gdata.periodicmsg_nick) + strlen(tnum) + 2;
data/iroffer-1.4.b03/src/iroffer_misc.c:591: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).
         offset = strlen(gdata.periodicmsg_nick) + strlen(tnum) + 2;
data/iroffer-1.4.b03/src/iroffer_misc.c:592: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).
         for (i=offset; i<=strlen(var); i++)
data/iroffer-1.4.b03/src/iroffer_misc.c:729:51:  [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).
           gdata.connectionmethod.host = mymalloc(strlen(targ1)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:734:55:  [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).
           gdata.connectionmethod.password = mymalloc(strlen(targ3)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:739: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).
               gdata.connectionmethod.vhost = mymalloc(strlen(targ4)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:747:51:  [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).
           gdata.connectionmethod.host = mymalloc(strlen(targ1)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:756:51:  [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).
           gdata.connectionmethod.host = mymalloc(strlen(targ1)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:800:40:  [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).
   gdata.curserver.hostname = mymalloc(strlen(tserver->hostname)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:805: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).
       gdata.curserver.password = mymalloc(strlen(tserver->password)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:1055: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).
      len = strlen(pi) + strlen(gdata.curserver.hostname) + strlen(portstr);
data/iroffer-1.4.b03/src/iroffer_misc.c:1055:26:  [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(pi) + strlen(gdata.curserver.hostname) + strlen(portstr);
data/iroffer-1.4.b03/src/iroffer_misc.c:1055:61:  [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(pi) + strlen(gdata.curserver.hostname) + strlen(portstr);
data/iroffer-1.4.b03/src/iroffer_misc.c:1310: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).
  while (item && (strlen(item) < gdata.serverbucket))
data/iroffer-1.4.b03/src/iroffer_misc.c:1317: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).
      write(gdata.ircserver, item, strlen(item));
data/iroffer-1.4.b03/src/iroffer_misc.c:1320: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).
      gdata.serverbucket -= strlen(item);
data/iroffer-1.4.b03/src/iroffer_misc.c:1333: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).
  while (item && (strlen(item) < gdata.serverbucket))
data/iroffer-1.4.b03/src/iroffer_misc.c:1340: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).
      write(gdata.ircserver, item, strlen(item));
data/iroffer-1.4.b03/src/iroffer_misc.c:1343: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).
      gdata.serverbucket -= strlen(item);
data/iroffer-1.4.b03/src/iroffer_misc.c:1356: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).
  while (item && (strlen(item) < gdata.serverbucket))
data/iroffer-1.4.b03/src/iroffer_misc.c:1363: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).
      write(gdata.ircserver, item, strlen(item));
data/iroffer-1.4.b03/src/iroffer_misc.c:1366: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).
      gdata.serverbucket -= strlen(item);
data/iroffer-1.4.b03/src/iroffer_misc.c:1454: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).
  xdcclistfile_tmp = mycalloc(strlen(gdata.xdcclistfile)+5);
data/iroffer-1.4.b03/src/iroffer_misc.c:1455: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).
  xdcclistfile_bkup = mycalloc(strlen(gdata.xdcclistfile)+2);
data/iroffer-1.4.b03/src/iroffer_misc.c:1528: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).
   write(filedescriptor,tempstr2,strlen(tempstr2));
data/iroffer-1.4.b03/src/iroffer_misc.c:2202: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).
      len += strlen(user) + 1;
data/iroffer-1.4.b03/src/iroffer_misc.c:2211:10:  [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(tempstr+len);
data/iroffer-1.4.b03/src/iroffer_misc.c:2216:7:  [1] (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). Risk is low because the source is a constant character.
      strcpy(tempstr+len, ",");
data/iroffer-1.4.b03/src/iroffer_misc.c:2217: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).
      len += strlen(tempstr+len);
data/iroffer-1.4.b03/src/iroffer_misc.c:2219: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).
      len += strlen(tempstr+len);
data/iroffer-1.4.b03/src/iroffer_misc.c:2686: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).
  newname = mymalloc(strlen(gdata.logfile) + 12);
data/iroffer-1.4.b03/src/iroffer_misc.c:2755:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ( (len = read(0,pw1,maxtextlengthshort-1)) < 0 )
data/iroffer-1.4.b03/src/iroffer_misc.c:2768:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   if ( (len = read(0,pw2,maxtextlengthshort-1)) < 0 )
data/iroffer-1.4.b03/src/iroffer_misc.c:2784:17:  [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 (pwout && strlen(pwout) == 13)
data/iroffer-1.4.b03/src/iroffer_misc.c:3057: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).
          tr->nick = mymalloc(strlen(newnick)+1);
data/iroffer-1.4.b03/src/iroffer_misc.c:3067: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).
          pq->nick = mymalloc(strlen(newnick)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:195: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).
  statefile_tmp = mymalloc(strlen(gdata.statefile)+5);
data/iroffer-1.4.b03/src/iroffer_statefile.c:196: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).
  statefile_bkup = mymalloc(strlen(gdata.statefile)+2);
data/iroffer-1.4.b03/src/iroffer_statefile.c:347: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).
              sizeof(statefile_hdr_t) + ceiling(strlen(ignore->hostmask) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:381:59:  [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).
            hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(ignore->hostmask) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:384: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).
            next += ceiling(strlen(ignore->hostmask) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:412: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).
          sizeof(statefile_hdr_t) + ceiling(strlen(msglog->hostmask) + 1, 4) +
data/iroffer-1.4.b03/src/iroffer_statefile.c:413: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).
          sizeof(statefile_hdr_t) + ceiling(strlen(msglog->message) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:433:55:  [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).
        hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(msglog->hostmask) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:436: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).
        next += ceiling(strlen(msglog->hostmask) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:441:55:  [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).
        hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(msglog->message) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:444: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).
        next += ceiling(strlen(msglog->message) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:475: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).
          sizeof(statefile_hdr_t) + ceiling(strlen(xd->file) + 1, 4) +
data/iroffer-1.4.b03/src/iroffer_statefile.c:476: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).
          sizeof(statefile_hdr_t) + ceiling(strlen(xd->desc) + 1, 4) +
data/iroffer-1.4.b03/src/iroffer_statefile.c:477: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).
          sizeof(statefile_hdr_t) + ceiling(strlen(xd->note) + 1, 4) +
data/iroffer-1.4.b03/src/iroffer_statefile.c:498:55:  [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).
        hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(xd->file) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:501: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).
        next += ceiling(strlen(xd->file) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:506:55:  [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).
        hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(xd->desc) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:509: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).
        next += ceiling(strlen(xd->desc) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:514:55:  [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).
        hdr->length = htonl(sizeof(statefile_hdr_t) + strlen(xd->note) + 1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:517: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).
        next += ceiling(strlen(xd->note) + 1, 4);
data/iroffer-1.4.b03/src/iroffer_statefile.c:774:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  callval = read(fd, buffer, buffer_len);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1031:53:  [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).
                        ignore->hostmask = mymalloc(strlen(hostmask)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1106:53:  [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).
                        msglog->hostmask = mymalloc(strlen(hostmask)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1121: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).
                        msglog->message = mymalloc(strlen(message)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1175: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).
                        xd->file = mymalloc(strlen(file)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1190: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).
                        xd->desc = mymalloc(strlen(desc)+1);
data/iroffer-1.4.b03/src/iroffer_statefile.c:1205: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).
                        xd->note = mymalloc(strlen(note)+1);
data/iroffer-1.4.b03/src/iroffer_transfer.c:323:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          howmuch = read(t->xpack->file_fd, dataptr, attempt);
data/iroffer-1.4.b03/src/iroffer_transfer.c:535:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  i = read(t->clientsocket, gdata.sendbuff, BUFFERSIZE);
data/iroffer-1.4.b03/src/iroffer_transfer.c:634: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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:634:55:  [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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:640: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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:640:55:  [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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:644: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).
  snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:644:51:  [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).
  snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_transfer.c:861: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).
       ignore->hostmask = mycalloc(strlen(t->hostname)+5);
data/iroffer-1.4.b03/src/iroffer_upload.c:45: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).
  fullfile = mymalloc(strlen(gdata.uploaddir) + strlen(l->file) + 2);
data/iroffer-1.4.b03/src/iroffer_upload.c:45: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).
  fullfile = mymalloc(strlen(gdata.uploaddir) + strlen(l->file) + 2);
data/iroffer-1.4.b03/src/iroffer_upload.c:170:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
         howmuch  = read(l->clientsocket, gdata.sendbuff, BUFFERSIZE);
data/iroffer-1.4.b03/src/iroffer_upload.c:226: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).
          snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_upload.c:226:59:  [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).
          snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_upload.c:232: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).
          snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_upload.c:232:59:  [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).
          snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_upload.c:236: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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_upload.c:236:55:  [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).
      snprintf(tempstr+strlen(tempstr), maxtextlength-strlen(tempstr)-1,
data/iroffer-1.4.b03/src/iroffer_utilities.c:29: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).
  str   = mymalloc(strlen(str1)+1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:30: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).
  match = mymalloc(strlen(match1)+1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:186: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).
   gdata.osstring = mymalloc(strlen(u1.sysname) + strlen(u1.release) + 2);
data/iroffer-1.4.b03/src/iroffer_utilities.c:186:51:  [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).
   gdata.osstring = mymalloc(strlen(u1.sysname) + strlen(u1.release) + 2);
data/iroffer-1.4.b03/src/iroffer_utilities.c:409: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).
      write(gdata.logfd,tempstr,strlen(tempstr));
data/iroffer-1.4.b03/src/iroffer_utilities.c:424: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).
  write(gdata.logfd,tempstr,strlen(tempstr));
data/iroffer-1.4.b03/src/iroffer_utilities.c:442: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).
   for (i=strlen(str)-1; i>=0; i--) {
data/iroffer-1.4.b03/src/iroffer_utilities.c:444: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).
      for (j=strlen(str)-1; j>i; j--)
data/iroffer-1.4.b03/src/iroffer_utilities.c:458: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).
   for (i=strlen(str)-1; i>=0; i--) {
data/iroffer-1.4.b03/src/iroffer_utilities.c:460: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).
      for (j=strlen(str)-1; j>i; j--)
data/iroffer-1.4.b03/src/iroffer_utilities.c:721: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).
   maxlen = 2 + (strlen(str) * 11);
data/iroffer-1.4.b03/src/iroffer_utilities.c:794:6:  [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(gdata.adminpass) != 13
data/iroffer-1.4.b03/src/iroffer_utilities.c:795:9:  [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(testpass) < 5
data/iroffer-1.4.b03/src/iroffer_utilities.c:796:9:  [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(testpass) > 8
data/iroffer-1.4.b03/src/iroffer_utilities.c:826:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while((len = read(descr,tempbuf,slen)) > 0)
data/iroffer-1.4.b03/src/iroffer_utilities.c:882: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).
   return ((int)(strlen(p)));
data/iroffer-1.4.b03/src/iroffer_utilities.c:1118:16:  [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).
   for (i=0; i<strlen(str); i++) {
data/iroffer-1.4.b03/src/iroffer_utilities.c:1141:16:  [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).
   for (i=0; i<strlen(str); i++) {
data/iroffer-1.4.b03/src/iroffer_utilities.c:1156:16:  [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).
   for (i=0; i<strlen(str); i++) {
data/iroffer-1.4.b03/src/iroffer_utilities.c:1205:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (!gdata.adminpass || strlen(gdata.adminpass) != 13) err++;
data/iroffer-1.4.b03/src/iroffer_utilities.c:1873:59:  [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).
      member = irlist_add(&c->members, sizeof(member_t) + strlen(nick));
data/iroffer-1.4.b03/src/iroffer_utilities.c:1995: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).
  newmember = irlist_add(&c->members, sizeof(member_t) + strlen(newnick));
data/iroffer-1.4.b03/src/iroffer_utilities.c:2039: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).
          gdata.loginname = mymalloc(strlen(gdata.runasuser)+1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2046: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).
          gdata.loginname = mymalloc(strlen("UNKNOWN")+1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2052: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).
      gdata.loginname = mymalloc(strlen(p->pw_name)+1);
data/iroffer-1.4.b03/src/iroffer_utilities.c:2127:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str,mysnprintf_buff,min2(n-1,actlen));
data/iroffer-1.4.b03/src/iroffer_utilities.c:2140:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(str,mysnprintf_buff,min2(n-1,actlen));

ANALYSIS SUMMARY:

Hits = 611
Lines analyzed = 18967 in approximately 0.51 seconds (37170 lines/second)
Physical Source Lines of Code (SLOC) = 15074
Hits@level = [0] 117 [1] 331 [2] 126 [3]   5 [4] 138 [5]  11
Hits@level+ = [0+] 728 [1+] 611 [2+] 280 [3+] 154 [4+] 149 [5+]  11
Hits/KSLOC@level+ = [0+] 48.2951 [1+] 40.5334 [2+] 18.575 [3+] 10.2163 [4+] 9.88457 [5+] 0.729733
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.