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/bb-1.3rc1/acconfig.h
Examining data/bb-1.3rc1/autopilo.c
Examining data/bb-1.3rc1/backconv.c
Examining data/bb-1.3rc1/credits.c
Examining data/bb-1.3rc1/credits2.c
Examining data/bb-1.3rc1/ctrl87.c
Examining data/bb-1.3rc1/fk1.c
Examining data/bb-1.3rc1/fk2.c
Examining data/bb-1.3rc1/fk3.c
Examining data/bb-1.3rc1/fk4.c
Examining data/bb-1.3rc1/formulas.c
Examining data/bb-1.3rc1/hh1.c
Examining data/bb-1.3rc1/hh2.c
Examining data/bb-1.3rc1/hh3.c
Examining data/bb-1.3rc1/hh4.c
Examining data/bb-1.3rc1/image.c
Examining data/bb-1.3rc1/kt1.c
Examining data/bb-1.3rc1/kt2.c
Examining data/bb-1.3rc1/kt3.c
Examining data/bb-1.3rc1/kt4.c
Examining data/bb-1.3rc1/messager.c
Examining data/bb-1.3rc1/minilzo.c
Examining data/bb-1.3rc1/ms1.c
Examining data/bb-1.3rc1/ms2.c
Examining data/bb-1.3rc1/ms3.c
Examining data/bb-1.3rc1/ms4.c
Examining data/bb-1.3rc1/print.c
Examining data/bb-1.3rc1/scene1.c
Examining data/bb-1.3rc1/scene2.c
Examining data/bb-1.3rc1/scene3.c
Examining data/bb-1.3rc1/scene4.c
Examining data/bb-1.3rc1/scene5.c
Examining data/bb-1.3rc1/scene7.c
Examining data/bb-1.3rc1/scene8.c
Examining data/bb-1.3rc1/scene9.c
Examining data/bb-1.3rc1/uncompfn.c
Examining data/bb-1.3rc1/zeb.c
Examining data/bb-1.3rc1/autopilo.h
Examining data/bb-1.3rc1/bb.h
Examining data/bb-1.3rc1/complex.h
Examining data/bb-1.3rc1/config.h
Examining data/bb-1.3rc1/ctrl87.h
Examining data/bb-1.3rc1/formulas.h
Examining data/bb-1.3rc1/image.h
Examining data/bb-1.3rc1/minilzo.h
Examining data/bb-1.3rc1/mylzo.h
Examining data/bb-1.3rc1/patnik.h
Examining data/bb-1.3rc1/tex.h
Examining data/bb-1.3rc1/timers.h
Examining data/bb-1.3rc1/torus.h
Examining data/bb-1.3rc1/ui.h
Examining data/bb-1.3rc1/zoom.h
Examining data/bb-1.3rc1/julia.c
Examining data/bb-1.3rc1/tex.c
Examining data/bb-1.3rc1/timers.c
Examining data/bb-1.3rc1/zoom.c
Examining data/bb-1.3rc1/textform.c
Examining data/bb-1.3rc1/bb.c
Examining data/bb-1.3rc1/main.c

FINAL RESULTS:

data/bb-1.3rc1/main.c:59:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(name2, "%s/%s",SOUNDDIR, name);
data/bb-1.3rc1/bb.c:251:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(time(NULL));
data/bb-1.3rc1/bb.c:238:10:  [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).
	stage = atol(argv[1]);
data/bb-1.3rc1/credits2.c:64:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(source, context->imagebuffer + aa_imgwidth(context) * 2 * YSTART, aa_imgwidth(context) * (aa_imgheight(context) - YSTART * 2));
data/bb-1.3rc1/credits2.c:70:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(target, context->imagebuffer + aa_imgwidth(context) * 2 * YSTART, aa_imgwidth(context) * (aa_imgheight(context) - YSTART * 2));
data/bb-1.3rc1/credits2.c:137: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 s[2] =
data/bb-1.3rc1/formulas.h:54: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 *name[2];
data/bb-1.3rc1/julia.c:46: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 *queue[QMAX];
data/bb-1.3rc1/messager.c:43: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(context->textbuffer + start * aa_scrwidth(context), context->textbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
data/bb-1.3rc1/messager.c:44: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(context->attrbuffer + start * aa_scrwidth(context), context->attrbuffer + (start + 1) * aa_scrwidth(context), aa_scrwidth(context) * (aa_scrheight(context) - start - 1));
data/bb-1.3rc1/messager.c:157:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bckup, context->imagebuffer, aa_imgwidth(context) * aa_imgheight(context));
data/bb-1.3rc1/messager.c:160:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(bckup1, context->imagebuffer, aa_imgwidth(context) * aa_imgheight(context));
data/bb-1.3rc1/minilzo.c:434:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(dest,src,len); \
data/bb-1.3rc1/minilzo.c:702:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    return memcpy(dest,src,len);
data/bb-1.3rc1/minilzo.c:886: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 _wrkmem[10 * sizeof(lzo_byte *) + sizeof(lzo_align_t)];
data/bb-1.3rc1/minilzo.c:889: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 x[4 * sizeof(lzo_align_t)];
data/bb-1.3rc1/minilzo.c:967: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.
	unsigned char x[4*sizeof(lzo_align_t)];
data/bb-1.3rc1/scene1.c:96: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 a[2];
data/bb-1.3rc1/scene5.c:207:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(helpbuffer, context->imagebuffer, aa_imgwidth(context) * aa_imgheight(context));
data/bb-1.3rc1/scene7.c:205: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 zoomed[256];
data/bb-1.3rc1/scene7.c:210: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(zoomed, "%.2f", times);
data/bb-1.3rc1/tex.c:300: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 table[256];
data/bb-1.3rc1/tex.c:313:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rot, &obj, sizeof(obj));
data/bb-1.3rc1/tex.c:320: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 table[256];
data/bb-1.3rc1/tex.c:333:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&rot, &obj, sizeof(obj));
data/bb-1.3rc1/textform.c:294: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 *line[MAXLINES];
data/bb-1.3rc1/timers.c:192:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[20];			/* ish */
data/bb-1.3rc1/timers.c:194:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open ("/dev/msec", OREAD);
data/bb-1.3rc1/timers.c:198:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi (buf);
data/bb-1.3rc1/zoom.c:657: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(vbuff, vline + *startptr, *siz), vbuff += *siz;
data/bb-1.3rc1/zoom.c:946: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(vbuff, d->vbuff + d->scanline * ry->symto, d->width * sizeof(*vbuff));
data/bb-1.3rc1/zoom.c:992: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(d->vbuff + d->scanline * (ry - d->reallocy), d->vbuff + d->scanline * (rs - d->reallocy), d->width * sizeof(*vbuff));
data/bb-1.3rc1/zoom.c:1499: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 co[3][MAXCOLORS];
data/bb-1.3rc1/zoom.h:44: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 dummy[((32 - sizeof(int) * 5 - ((int) (sizeof(number_t) + sizeof(int) - 1) / sizeof(int)) * sizeof(int)) < 0 ? 0 :
data/bb-1.3rc1/zoom.h:76: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 colors[MAXCOLORS];
data/bb-1.3rc1/zoom.h:77: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 cmap[3][MAXCOLORS];
data/bb-1.3rc1/bb.c:64: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).
	print(x - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/bb.c:70: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).
	    print(x / 2 - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/bb.c:75: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).
	    print(aa_imgwidth(context) / 2 + x / 2 - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/bb.c:85: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).
	print(x - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/bb.c:91: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).
	    print(x / 2 - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/bb.c:96: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).
	    print(aa_imgwidth(context) / 2 + x / 2 - (width * strlen(text)) / 2, y - height / 2, width, height, font, color, text);
data/bb-1.3rc1/credits2.c:148: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).
	    for (x1 = x = 0; x < strlen(line[i]); x++, x1++) {
data/bb-1.3rc1/credits2.c:151: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 (x < strlen(line[i])) {
data/bb-1.3rc1/credits2.c:168: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).
		for (x1 = x = 0; x < strlen(line[i + sh]); x++, x1++) {
data/bb-1.3rc1/credits2.c:171: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).
		    if (x < strlen(line[i + sh])) {
data/bb-1.3rc1/main.c:58: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).
      name2 = malloc (strlen (name) + strlen(SOUNDDIR)+2);
data/bb-1.3rc1/main.c:58: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).
      name2 = malloc (strlen (name) + strlen(SOUNDDIR)+2);
data/bb-1.3rc1/messager.c:73: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).
    int i, s = strlen(c);
data/bb-1.3rc1/scene1.c:51: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).
    aa_puts(context, (aa_scrwidth(context) - strlen(text)) / 2, aa_scrheight(context) / 2, AA_SPECIAL, text);
data/bb-1.3rc1/scene1.c:90: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).
    aa_puts(context, (aa_scrwidth(context) - strlen(text)) / 2, aa_scrheight(context) / 2, AA_SPECIAL, text);
data/bb-1.3rc1/scene1.c:140: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).
    aa_puts(context, (aa_scrwidth(context) - strlen(text)) / 2, aa_scrheight(context) / 2, AA_SPECIAL, text);
data/bb-1.3rc1/scene2.c:51: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).
    int pos = (getwidth(2) * strlen(text1) + 1);
data/bb-1.3rc1/scene2.c:53: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).
    pos = (getwidth(2) * strlen(text2) + 1);
data/bb-1.3rc1/scene2.c:59: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).
    int pos = (getwidth(2) * strlen(text1) + 1);
data/bb-1.3rc1/scene2.c:61: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).
    pos = (getwidth(2) * strlen(text2) + 1);
data/bb-1.3rc1/scene2.c:108:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    print(0, xpos1 * aa_imgheight(context), aa_imgwidth(context) / (double) strlen(mesg), aa_imgheight(context) * xpos, font, 255, mesg);
data/bb-1.3rc1/scene2.c:127: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).
	print(0, 0, aa_imgwidth(context) / (double) strlen(mesg) * ((float) STATE / ETIME2), aa_imgheight(context), font, 255, mesg);
data/bb-1.3rc1/scene2.c:128:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	print(aa_imgwidth(context) * ((float) STATE / ETIME2), 0, aa_imgwidth(context) / (double) strlen(mesg1) * (1 - (float) STATE / ETIME2), aa_imgheight(context), font, 255, mesg1);
data/bb-1.3rc1/scene2.c:131: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).
	print(0, 0, aa_imgwidth(context) / (double) strlen(mesg), aa_imgheight(context), font, 255, mesg);
data/bb-1.3rc1/scene2.c:137: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).
	print(0, 0, aa_imgwidth(context) / (double) strlen(mesg1) * (1 - (float) STATE / ETIME2), aa_imgheight(context), font, 255, mesg1);
data/bb-1.3rc1/scene2.c:138:96:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	print(aa_imgwidth(context) * (1 - (float) STATE / ETIME2), 0, aa_imgwidth(context) / (double) strlen(mesg) * ((float) STATE / ETIME2), aa_imgheight(context), font, 255, mesg);
data/bb-1.3rc1/scene2.c:141: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).
	print(0, 0, aa_imgwidth(context) / (double) strlen(mesg), aa_imgheight(context), font, 255, mesg);
data/bb-1.3rc1/scene2.c:147: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).
	print(0, 0, aa_imgwidth(context) / strlen(mesg), aa_imgheight(context) * ((float) STATE / ETIME2), font, 255, mesg);
data/bb-1.3rc1/scene2.c:148:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	print(0, aa_imgheight(context) * ((float) STATE / ETIME2), aa_imgwidth(context) / strlen(mesg1), aa_imgheight(context) * (1 - (float) STATE / ETIME2), font, 255, mesg1);
data/bb-1.3rc1/scene2.c:151: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).
	print(0, 0, aa_imgwidth(context) / strlen(mesg), aa_imgheight(context), font, 255, mesg);
data/bb-1.3rc1/textform.c:373: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).
    int size = strlen(text);
data/bb-1.3rc1/timers.c:197:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  read (fd, buf, sizeof (buf));
data/bb-1.3rc1/timers.c:358:3:  [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 (time);

ANALYSIS SUMMARY:

Hits = 69
Lines analyzed = 34846 in approximately 2.51 seconds (13904 lines/second)
Physical Source Lines of Code (SLOC) = 32494
Hits@level = [0]  19 [1]  33 [2]  34 [3]   1 [4]   1 [5]   0
Hits@level+ = [0+]  88 [1+]  69 [2+]  36 [3+]   2 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.70819 [1+] 2.12347 [2+] 1.1079 [3+] 0.0615498 [4+] 0.0307749 [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.