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/esniper-2.35.0+git20190805.7930bb4/auction.c
Examining data/esniper-2.35.0+git20190805.7930bb4/auction.h
Examining data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c
Examining data/esniper-2.35.0+git20190805.7930bb4/auctionfile.h
Examining data/esniper-2.35.0+git20190805.7930bb4/auctioninfo.c
Examining data/esniper-2.35.0+git20190805.7930bb4/auctioninfo.h
Examining data/esniper-2.35.0+git20190805.7930bb4/buffer.c
Examining data/esniper-2.35.0+git20190805.7930bb4/buffer.h
Examining data/esniper-2.35.0+git20190805.7930bb4/esniper.c
Examining data/esniper-2.35.0+git20190805.7930bb4/esniper.h
Examining data/esniper-2.35.0+git20190805.7930bb4/history.c
Examining data/esniper-2.35.0+git20190805.7930bb4/history.h
Examining data/esniper-2.35.0+git20190805.7930bb4/html.c
Examining data/esniper-2.35.0+git20190805.7930bb4/html.h
Examining data/esniper-2.35.0+git20190805.7930bb4/http.c
Examining data/esniper-2.35.0+git20190805.7930bb4/http.h
Examining data/esniper-2.35.0+git20190805.7930bb4/options.c
Examining data/esniper-2.35.0+git20190805.7930bb4/options.h
Examining data/esniper-2.35.0+git20190805.7930bb4/util.c
Examining data/esniper-2.35.0+git20190805.7930bb4/util.h

FINAL RESULTS:

data/esniper-2.35.0+git20190805.7930bb4/auction.c:251:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(aip->query, HISTORY_URL, options.historyHost, aip->auction);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:300:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(url, PRE_BID_URL, options.prebidHost, aip->auction);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:304:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(data, PRE_BID_DATA, aip->bidPriceStr, quantityStr);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:445: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(pattern, searchdef->name);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:447:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(pattern, "name=\"%s\"", searchdef->name);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:449: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(pattern, searchdef->name);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:553:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(url, LOGIN_2_URL, options.loginHost);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:581:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(headerVals[transfercontent[i].dest].value, data);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:586:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(headerVals[transfercontent[i].dest].value, globalDfpContext[transfercontent[i].src].value);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:599:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(url, LOGIN_2_URL, options.loginHost);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:623:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(data, LOGIN_DATA,	headerVals[RQID].value,
data/esniper-2.35.0+git20190805.7930bb4/auction.c:633:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(logdata, LOGIN_DATA,	headerVals[RQID].value,
data/esniper-2.35.0+git20190805.7930bb4/auction.c:875:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(url, BID_URL, options.bidHost, aip->auction);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:879:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(data, BID_DATA, options.usernameEscape, aip->bidPriceStr, quantityStr, aip->biduiid, aip->bidstok, aip->bidsrt);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:884:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(logdata2, BID_DATA, tmpStars, tmpStars, tmpStars, tmpStars, tmpStars, tmpStars);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:887:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(logdata, BID_LOG, url, logdata2); 
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1232:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
							sprintf(buf, "(%s)", tmp2+strlen(converted));
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1276:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(url, MYITEMS_URL, options.myeBayHost);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:55:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#	define access(name, mode) _access((name), (mode))
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:440:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access((const char*)valueptr, R_OK)) {
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:579:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageSummary, getProgname());
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:581:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageLong1);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:582:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageLong2, DEFAULT_BIDTIME);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:583:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageLong3);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:586:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageConfig1, options.historyHost, options.prebidHost, options.bidHost, options.loginHost, options.myeBayHost, DEFAULT_BIDTIME);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:587:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, usageConfig2);
data/esniper-2.35.0+git20190805.7930bb4/history.c:374:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tmpTimeLeft, "%s days %s hours %s mins %s secs",
data/esniper-2.35.0+git20190805.7930bb4/util.c:121:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ret, "%s%s", s1, s2);
data/esniper-2.35.0+git20190805.7930bb4/util.c:130:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ret, "%s%s%s", s1, s2, s3);
data/esniper-2.35.0+git20190805.7930bb4/util.c:139:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(ret, "%s%s%s%s", s1, s2, s3, s4);
data/esniper-2.35.0+git20190805.7930bb4/util.c:252:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(logfile, fmt, arglist);
data/esniper-2.35.0+git20190805.7930bb4/util.c:284:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(fp, fmt, arglist);
data/esniper-2.35.0+git20190805.7930bb4/util.c:417:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stdout, fmt, arglist);
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:619:14:  [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 ((c = getopt(argc, argv, optionstring)) != EOF) {
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:674:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *homedir = getenv("HOME");
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:676:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char *profiledir = getenv("USERPROFILE");
data/esniper-2.35.0+git20190805.7930bb4/esniper.c:744:14:  [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 ((c = getopt(argc, argv, optionstring)) != EOF) {
data/esniper-2.35.0+git20190805.7930bb4/html.c:264:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* lang=(getenv("LANG") != NULL ? getenv("LANG") : "");
data/esniper-2.35.0+git20190805.7930bb4/html.c:264:39:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* lang=(getenv("LANG") != NULL ? getenv("LANG") : "");
data/esniper-2.35.0+git20190805.7930bb4/util.c:184:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				logfilename = myStrdup3(getenv("HOME"), "/", logfilename);
data/esniper-2.35.0+git20190805.7930bb4/util.c:186:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				logfilename = myStrdup4(getenv("HOME"), logdir+1, "/", logfilename);
data/esniper-2.35.0+git20190805.7930bb4/util.c:699:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(time(0));
data/esniper-2.35.0+git20190805.7930bb4/util.c:701:3:  [3] (random) srandom:
  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.
		srandom((unsigned int)(getpid() * time(0)));
data/esniper-2.35.0+git20190805.7930bb4/util.c:753:26:  [3] (random) random:
  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.
		passwordPad[i] = (char)random();
data/esniper-2.35.0+git20190805.7930bb4/util.c:891:1:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt(int argc, char *const *argv, const char *opts)
data/esniper-2.35.0+git20190805.7930bb4/util.h:81:12:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
extern int getopt(int argc, char *const *argv, const char *opts);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:289:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char quantityStr[12];	/* must hold an int */
data/esniper-2.35.0+git20190805.7930bb4/auction.c:296:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(quantityStr, "%d", quantity);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pattern[128];
data/esniper-2.35.0+git20190805.7930bb4/auction.c:441:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char res[4096];
data/esniper-2.35.0+git20190805.7930bb4/auction.c:863:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char quantityStr[12];	/* must hold an int */
data/esniper-2.35.0+git20190805.7930bb4/auction.c:870:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(quantityStr, "%d", quantity);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *tmp, *tmp2, buf[64];
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1211: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(buf, "%d", num);
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:50:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(filename, "r");
data/esniper-2.35.0+git20190805.7930bb4/history.c:320: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 days[12];
data/esniper-2.35.0+git20190805.7930bb4/history.c:321: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 hours[12];
data/esniper-2.35.0+git20190805.7930bb4/history.c:322: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 minutes[12];
data/esniper-2.35.0+git20190805.7930bb4/history.c:323: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 seconds[12];
data/esniper-2.35.0+git20190805.7930bb4/history.c:324: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 tmpTimeLeft[255];
data/esniper-2.35.0+git20190805.7930bb4/history.c:370:7:  [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(tmpTimeLeft, "0 days 0 hours 0 mins 0 secs");
data/esniper-2.35.0+git20190805.7930bb4/history.c:421: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 timestr[20];
data/esniper-2.35.0+git20190805.7930bb4/html.c:381:9:  [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(getNonTag(&buf));
data/esniper-2.35.0+git20190805.7930bb4/http.c:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char globalErrorbuf[CURL_ERROR_SIZE];
data/esniper-2.35.0+git20190805.7930bb4/http.c:298: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(&(mp->memory[mp->size]), ptr, realsize);
data/esniper-2.35.0+git20190805.7930bb4/options.c:74:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(filename, "r");
data/esniper-2.35.0+git20190805.7930bb4/options.c:352:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/esniper-2.35.0+git20190805.7930bb4/options.c:364: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(buf, "\t %2d x %.15s(%.15s) = \"%.900s\"\n",
data/esniper-2.35.0+git20190805.7930bb4/options.c:375: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(buf, "\t %2d x %.15s(%.15s) = %d\n",
data/esniper-2.35.0+git20190805.7930bb4/options.c:383: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(buf, "\t %2d x %.15s(%.15s) = (unknown type)\n",
data/esniper-2.35.0+git20190805.7930bb4/options.c:391: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(buf, "\t %2d x %.15s(%.15s) = ***\n",
data/esniper-2.35.0+git20190805.7930bb4/util.c:98: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(ret, s, len);
data/esniper-2.35.0+git20190805.7930bb4/util.c:111: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(ret, s, len);
data/esniper-2.35.0+git20190805.7930bb4/util.c:215:18:  [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 (!(logfile = fopen(logfilename, "a"))) {
data/esniper-2.35.0+git20190805.7930bb4/util.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char timebuf[80];	/* more than big enough */
data/esniper-2.35.0+git20190805.7930bb4/util.c:423: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 tmp[40], *bugname;
data/esniper-2.35.0+git20190805.7930bb4/util.c:426: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(tmp, ".%d.%d.bug.html", (int)getpid(), ++bugNum);
data/esniper-2.35.0+git20190805.7930bb4/util.c:428:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(bugname, "w"))) {
data/esniper-2.35.0+git20190805.7930bb4/util.c:508: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.
	static char buf[80];	/* much larger than needed */
data/esniper-2.35.0+git20190805.7930bb4/util.c:577: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(&tmp, &save, sizeof(struct termios));
data/esniper-2.35.0+git20190805.7930bb4/util.c:774: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(password, options.password, passwordLen);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:80:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
size_t placemakerLen = strlen("%s");
data/esniper-2.35.0+git20190805.7930bb4/auction.c:248: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).
			size_t urlLen = sizeof(HISTORY_URL) + strlen(options.historyHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:248: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).
			size_t urlLen = sizeof(HISTORY_URL) + strlen(options.historyHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:298: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).
	urlLen = sizeof(PRE_BID_URL) + strlen(options.prebidHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:298: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).
	urlLen = sizeof(PRE_BID_URL) + strlen(options.prebidHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:302: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).
	dataLen = sizeof(PRE_BID_DATA) + strlen(aip->bidPriceStr) + strlen(quantityStr) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:302: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).
	dataLen = sizeof(PRE_BID_DATA) + strlen(aip->bidPriceStr) + strlen(quantityStr) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:333: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).
		if(!getVals(mp->memory, mp->size, &bidVals[i], "parsePreBid") && strlen(bidVals[i].value) > 0) {
data/esniper-2.35.0+git20190805.7930bb4/auction.c:335: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).
			*bidInfo[i] = (char*)myMalloc(strlen(bidVals[i].value) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:336:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(*bidInfo[i], bidVals[i].value, strlen(bidVals[i].value) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:336:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncpy(*bidInfo[i], bidVals[i].value, strlen(bidVals[i].value) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:456:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
			strncpy(searchdef->value, "\0", 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:460: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).
		start += strlen(pattern);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:467:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       (searchfor == st_attribute ? strlen(id1) : (searchfor == st_value ? strlen(id2) : strlen(id3)) ) ) ) {
data/esniper-2.35.0+git20190805.7930bb4/auction.c:467:108:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       (searchfor == st_attribute ? strlen(id1) : (searchfor == st_value ? strlen(id2) : strlen(id3)) ) ) ) {
data/esniper-2.35.0+git20190805.7930bb4/auction.c:467:122:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                       (searchfor == st_attribute ? strlen(id1) : (searchfor == st_value ? strlen(id2) : strlen(id3)) ) ) ) {
data/esniper-2.35.0+git20190805.7930bb4/auction.c:468:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			search += (searchfor == st_attribute ? strlen(id1) : strlen(id2));
data/esniper-2.35.0+git20190805.7930bb4/auction.c:468:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			search += (searchfor == st_attribute ? strlen(id1) : strlen(id2));
data/esniper-2.35.0+git20190805.7930bb4/auction.c:471: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).
			searchdef->value = (char *)myMalloc(strlen(res) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:472:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(searchdef->value, (char*) &res, strlen(res) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:472: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).
			strncpy(searchdef->value, (char*) &res, strlen(res) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:483:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
            strncpy(searchdef->value, "\0", 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:551: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).
        urlLen = sizeof(LOGIN_2_URL) + strlen(options.loginHost) - (1*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:576: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).
		if( strlen(headerVals[transfercontent[i].dest].value) == 0 ) {
data/esniper-2.35.0+git20190805.7930bb4/auction.c:580: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).
				headerVals[transfercontent[i].dest].value = (char*)myMalloc(strlen(data) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:585: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).
				headerVals[transfercontent[i].dest].value = (char*)myMalloc(strlen(globalDfpContext[transfercontent[i].src].value) + 1);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:596: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).
	urlLen = sizeof(LOGIN_2_URL) + strlen(options.loginHost) - (1*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:602: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).
                                      + strlen(options.usernameEscape)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:603: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).
                                      + strlen(password)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:604: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).
                                      + strlen(headerVals[RQID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:605: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).
                                      + strlen(headerVals[GUID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:606: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).
                                      + strlen(headerVals[MID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:607: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).
                                      + strlen(headerVals[SRT].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:608: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).
                                      + strlen(headerVals[USID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:609: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).
                                      + strlen(headerVals[USID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:613: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).
                                      + strlen(options.usernameEscape)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:615: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).
                                      + strlen(headerVals[RQID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:616: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).
                                      + strlen(headerVals[GUID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:617: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).
                                      + strlen(headerVals[MID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:618: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).
                                      + strlen(headerVals[SRT].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:619: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).
                                      + strlen(headerVals[USID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:620: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).
                                      + strlen(headerVals[USID].value)
data/esniper-2.35.0+git20190805.7930bb4/auction.c:873: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).
	urlLen = sizeof(BID_URL) + strlen(options.bidHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:873: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).
	urlLen = sizeof(BID_URL) + strlen(options.bidHost) + strlen(aip->auction) - (2*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877: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).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877: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).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877: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).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877:113:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877:136:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:877:159:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dataLen = sizeof(BID_DATA) + strlen(options.usernameEscape) + strlen(aip->bidPriceStr) + strlen(quantityStr) + strlen(aip->biduiid) + strlen(aip->bidstok) + strlen(aip->bidsrt) - (6*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:882: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).
	logLen2 = sizeof(BID_DATA) + (6*strlen(tmpStars)) - (6*placemakerLen) + 1; 
data/esniper-2.35.0+git20190805.7930bb4/auction.c:885: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).
	logLen = strlen(BID_LOG) - (2*placemakerLen) + urlLen + logLen2 + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1077: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).
	tmpUsername = stars(strlen(options.username));
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1199: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).
			tmp+=strlen(watchsrc[i].search);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1228: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).
						tmp2+=strlen(clipped);
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1232: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).
							sprintf(buf, "(%s)", tmp2+strlen(converted));
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1274: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).
	urlLen = sizeof(MYITEMS_URL) + strlen(options.myeBayHost) - (1*placemakerLen) + 1;
data/esniper-2.35.0+git20190805.7930bb4/auction.c:1290: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).
		next = strstr(mp->memory + strlen(myitem), myitem);
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:61:35:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (numAuctions != -1 && (c = getc(fp)) != EOF) {
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:75:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			} while (isdigit(c = getc(fp)));
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:77:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:90:52:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				for (; isdigit(c) || c == '.' || c == ','; c = getc(fp))
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:93:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/auctionfile.c:107:18:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			} while ((c = getc(fp)) != EOF && c != '\n' && c != '\r');
data/esniper-2.35.0+git20190805.7930bb4/history.c:335:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(days, getNonTag(mp), 4);
data/esniper-2.35.0+git20190805.7930bb4/history.c:338: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(days, "0");
data/esniper-2.35.0+git20190805.7930bb4/history.c:342:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(hours, getNonTag(mp), 4);
data/esniper-2.35.0+git20190805.7930bb4/history.c:345: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(hours, "0");
data/esniper-2.35.0+git20190805.7930bb4/history.c:349:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(minutes, getNonTag(mp), 2);
data/esniper-2.35.0+git20190805.7930bb4/history.c:352: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(minutes, "0");
data/esniper-2.35.0+git20190805.7930bb4/history.c:356:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(seconds , getNonTag(mp), 2);
data/esniper-2.35.0+git20190805.7930bb4/history.c:359: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(seconds, "0");
data/esniper-2.35.0+git20190805.7930bb4/history.c:366:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			   strncpy(tmpTimeLeft, getNonTag(mp), 128);
data/esniper-2.35.0+git20190805.7930bb4/http.c:98: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).
	mp->size = s ? strlen(s) : 0;
data/esniper-2.35.0+git20190805.7930bb4/http.c:129:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF) {
data/esniper-2.35.0+git20190805.7930bb4/options.c:85:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((c = getc(fp)) != EOF) {
data/esniper-2.35.0+git20190805.7930bb4/options.c:98:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/options.c:105:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/options.c:109:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/options.c:117:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
						c = getc(fp);
data/esniper-2.35.0+git20190805.7930bb4/util.c:96: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).
	len = strlen(s);
data/esniper-2.35.0+git20190805.7930bb4/util.c:119: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:119: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:128: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:128: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:128: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:137: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + strlen(s4) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:137: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + strlen(s4) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:137: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + strlen(s4) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:137: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).
	char *ret = myMalloc(strlen(s1) + strlen(s2) + strlen(s3) + strlen(s4) + 1);
data/esniper-2.35.0+git20190805.7930bb4/util.c:195:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(username, logdir + 1, namelen);
data/esniper-2.35.0+git20190805.7930bb4/util.c:200: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).
					slash = logdir + strlen(logdir);
data/esniper-2.35.0+git20190805.7930bb4/util.c:529:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (c = getc(fp); c != EOF && c != '\n' && c != '\r'; c = getc(fp))
data/esniper-2.35.0+git20190805.7930bb4/util.c:529:61:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (c = getc(fp); c != EOF && c != '\n' && c != '\r'; c = getc(fp))
data/esniper-2.35.0+git20190805.7930bb4/util.c:585:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (c = getc(stdin); c != EOF && c != '\n' && c != '\r'; c = getc(stdin))
data/esniper-2.35.0+git20190805.7930bb4/util.c:585:64:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	for (c = getc(stdin); c != EOF && c != '\n' && c != '\r'; c = getc(stdin))
data/esniper-2.35.0+git20190805.7930bb4/util.c:645: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).
	len = strlen(price);
data/esniper-2.35.0+git20190805.7930bb4/util.c:727: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).
	options.usernameEscape = curl_escape(username, (int)strlen(username));
data/esniper-2.35.0+git20190805.7930bb4/util.c:737: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).
	len = strlen(password);
data/esniper-2.35.0+git20190805.7930bb4/util.c:747: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).
	passwordLen = strlen(password) + 1;
data/esniper-2.35.0+git20190805.7930bb4/util.c:802: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).
	len = strlen(name);
data/esniper-2.35.0+git20190805.7930bb4/util.c:834: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).
	len = strlen(name);

ANALYSIS SUMMARY:

Hits = 183
Lines analyzed = 7054 in approximately 0.29 seconds (24583 lines/second)
Physical Source Lines of Code (SLOC) = 4921
Hits@level = [0]  42 [1] 102 [2]  35 [3]  13 [4]  33 [5]   0
Hits@level+ = [0+] 225 [1+] 183 [2+]  81 [3+]  46 [4+]  33 [5+]   0
Hits/KSLOC@level+ = [0+] 45.7224 [1+] 37.1876 [2+] 16.4601 [3+] 9.34769 [4+] 6.70595 [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.