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/imaptool-0.9/file2pixmap.c
Examining data/imaptool-0.9/file2pixmap.h
Examining data/imaptool-0.9/gif_err.c
Examining data/imaptool-0.9/gif_lib.h
Examining data/imaptool-0.9/gif_hash.h
Examining data/imaptool-0.9/dgif_lib.c
Examining data/imaptool-0.9/gifalloc.c
Examining data/imaptool-0.9/imaptool.c

FINAL RESULTS:

data/imaptool-0.9/imaptool.c:397:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  printf(PROGINFO,VERSION);
data/imaptool-0.9/imaptool.c:718:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(str, temp);
data/imaptool-0.9/imaptool.c:774:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(HTMLCOMMENT,VERSION);
data/imaptool-0.9/imaptool.c:779:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(HTMLCOMMENT,VERSION);
data/imaptool-0.9/dgif_lib.c:104: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).
    if ((FileHandle = open(FileName, O_RDONLY
data/imaptool-0.9/dgif_lib.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char Buf[GIF_STAMP_LEN+1];
data/imaptool-0.9/dgif_lib.c:324: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(&sp->ImageDesc, &GifFile->Image, sizeof(GifImageDesc));
data/imaptool-0.9/dgif_lib.c:517:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c[2];
data/imaptool-0.9/file2pixmap.c:39: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 *postfixes[2] = {".gif", ".jpg"};
data/imaptool-0.9/file2pixmap.c:160:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((jpegfile = fopen(filename, "rb")) == NULL) return 0;
data/imaptool-0.9/gifalloc.c:62: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((char *)Object->Colors,
data/imaptool-0.9/gifalloc.c:234: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(ep->Bytes, ExtData, Len);
data/imaptool-0.9/gifalloc.c:276:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((char *)sp, CopyFrom, sizeof(SavedImage));
data/imaptool-0.9/gifalloc.c:294:6:  [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(sp->RasterBits,
data/imaptool-0.9/gifalloc.c:306: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(sp->ExtensionBlocks,
data/imaptool-0.9/imaptool.c:123: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 areas[MAX_AREAS][MAX_AREA_TEXT_LEN];
data/imaptool-0.9/imaptool.c:573: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 infotext[80];
data/imaptool-0.9/imaptool.c:589:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(infotext, "%d,%d : %d,%d,%d,%d", event->xmotion.x,
data/imaptool-0.9/imaptool.c:602:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(infotext, "%d,%d : %d,%d,%d", event->xmotion.x, event->xmotion.y,
data/imaptool-0.9/imaptool.c:618:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(infotext, "%d,%d : %d,%d - %d,%d", event->xmotion.x, event->xmotion.y,
data/imaptool-0.9/imaptool.c:646:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char position[MAX_AREA_TEXT_LEN];
data/imaptool-0.9/imaptool.c:684:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    	sprintf(str,
data/imaptool-0.9/imaptool.c:689:6:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    	sprintf(str,
data/imaptool-0.9/imaptool.c:698:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(str, "<area shape=\"circle\" coords=\"%d,%d,%d\" href=\"\">", circle.x, circle.y, circle.r);
data/imaptool-0.9/imaptool.c:701:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(str, "<AREA SHAPE=\"CIRCLE\" COORDS=\"%d,%d,%d\" HREF=\"\">", circle.x, circle.y, circle.r);
data/imaptool-0.9/imaptool.c:707:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char temp[255];
data/imaptool-0.9/imaptool.c:711:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "<area shape=\"polygon\" coords=\"");
data/imaptool-0.9/imaptool.c:714:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str, "<AREA SHAPE=\"POLYGON\" COORDS=\"");
data/imaptool-0.9/imaptool.c:717:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(temp,"%d,%d,", polygon[i].x, polygon[i].y);
data/imaptool-0.9/imaptool.c:722:3:  [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(str+strlen(str)-1, "\" href=\"\">");
data/imaptool-0.9/imaptool.c:725:3:  [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(str+strlen(str)-1, "\" HREF=\"\">");
data/imaptool-0.9/imaptool.c:664: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).
		    strlen(position));
data/imaptool-0.9/imaptool.c:719:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (strlen(str)>1020) break;
data/imaptool-0.9/imaptool.c:722: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).
		strcpy(str+strlen(str)-1, "\" href=\"\">");
data/imaptool-0.9/imaptool.c:725: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).
		strcpy(str+strlen(str)-1, "\" HREF=\"\">");

ANALYSIS SUMMARY:

Hits = 35
Lines analyzed = 2853 in approximately 0.61 seconds (4714 lines/second)
Physical Source Lines of Code (SLOC) = 2119
Hits@level = [0]  40 [1]   4 [2]  27 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  75 [1+]  35 [2+]  31 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 35.3941 [1+] 16.5172 [2+] 14.6295 [3+] 1.88768 [4+] 1.88768 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.