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/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c
Examining data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.h

FINAL RESULTS:

data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:341:2:  [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.
	vsnprintf(p->path, sizeof(p->path), fmt, args);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:907:2:  [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.
	vsnprintf(t->message, sizeof(t->message), fmt, args);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14459:2:  [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.
	vsnprintf(message, sizeof(message), fmt, args);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14571:2:  [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.
	vsnprintf(e->error + len, sizeof(e->error) - len, fmt, args);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15397:18:  [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.
		v.valuesize  = snprintf(buf, sizeof(buf), "%" PRIu32, sscastu32(m->value));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15402:18:  [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.
		v.valuesize  = snprintf(buf, sizeof(buf), "%" PRIu64, sscastu64(m->value));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15407:18:  [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.
		v.valuesize  = snprintf(buf, sizeof(buf), "%" PRIi64, sscasti64(m->value));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25956:2:  [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(newpath, sizeof(newpath), "%s/%" PRIu32,
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:327: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 path[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:471:12:  [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).
	int     (*open)(ssvfs*, char*, int, int);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:490: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 priv[48];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:516:59:  [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).
#define ss_vfsopen(fs, path, flags, mode)        (fs)->i->open(fs, path, flags, mode)
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:761: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).
	int   (*open)(ssa*, va_list);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:770: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 priv[128];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:778: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).
	int rc = i->open(a, args);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:809: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(s, str, sz);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:818: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(s, ptr, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:872: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 message[100];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:1185: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(p, b->s, ss_bufused(b));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:1226: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(b->p, buf, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:1246: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(b->s + size * i, buf, bufsize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:1891: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 priv[90];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:2032: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 priv[150];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:2168: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 sz[32];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:3551: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,size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:4581:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&val16, memPtr, 2);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:4593:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&val32, memPtr, 4);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:4605:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&val64, memPtr, 8);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:4626: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(dstPtr, srcPtr, 4);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:4642: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(dstPtr, srcPtr, 8);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:5061:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(op, anchor, iend - anchor);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:5378: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(op, ip, length);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:5414:17:  [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(op, match, length);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:5421:17:  [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(op, dictEnd - copySize, copySize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:5432:21:  [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(op, lowPrefix, copySize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:6237:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(op, anchor, iend - anchor);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:6399: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(safeBuffer, streamPtr->end - dictSize, dictSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:6898:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cSizePtr+4, src, srcSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:6979: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(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, srcSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:6988: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(cctxPtr->tmpIn + cctxPtr->tmpInSize, srcBuffer, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7042:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(cctxPtr->tmpIn, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7240: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(dctxPtr->header, srcPtr, srcSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7371:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dctxPtr->tmpOutBuffer + preserveSize - copySize, oldDictEnd - copySize, copySize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7383: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(dctxPtr->dict, dctxPtr->dict + dctxPtr->dictSize - preserveSize, preserveSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7386:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dctxPtr->dict + dctxPtr->dictSize, dstPtr, dstSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7395:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dctxPtr->tmpOutBuffer, dctxPtr->dict + dctxPtr->dictSize - preserveSize, preserveSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7396:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dctxPtr->tmpOutBuffer + preserveSize, dstPtr, dstSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7476:17:  [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(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7510:17:  [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(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7551:17:  [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(dstPtr, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7589:17:  [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(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7653:29:  [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(dctxPtr->dict, dctxPtr->dict + dctxPtr->dictSize - 64 KB, 64 KB);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7680:17:  [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(dstPtr, dctxPtr->tmpOut + dctxPtr->tmpOutStart, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7727:17:  [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(dctxPtr->tmpIn + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7771:17:  [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(dctxPtr->header + dctxPtr->tmpInSize, srcPtr, sizeToCopy);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7822: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(dctxPtr->tmpOutBuffer + preserveSize - copySize, oldDictEnd - copySize, copySize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:7833: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(dctxPtr->tmpOutBuffer, oldDictEnd - newDictSize, newDictSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:8584:9:  [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).
	return open(path, flags, mode);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:8778: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(p, m->p, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:8925: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).
	return ss_stdvfs.open(f, path, flags, mode);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:9815: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(&val32, memPtr, 4);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:9834:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(memPtr, &val32, 4);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:9849: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(&val64, memPtr, 8);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:9869:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(memPtr, &val64, 8);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:11428:56:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
static void   ZSTD_copy4(void* dst, const void* src) { memcpy(dst, src, 4); }
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:11430:56:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
static void   ZSTD_copy8(void* dst, const void* src) { memcpy(dst, src, 8); }
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:11457:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(memPtr, &val32, 4);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:11764: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(ostart + ZSTD_blockHeaderSize, src, srcSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:11978:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(op, seqStorePtr->dumpsStart, dumpsLength);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:12233: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(seqStorePtr->lit, anchor, lastLLSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:12480: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(dst, src, srcSize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:12837:21:  [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(saved, litPtr, qutt);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:12868:21:  [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((void*)litPtr, saved, qutt);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:13512: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 + f->fixed_offset, v[i].pointer, v[i].size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:13520: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(dest + var_value_offset, v[i].pointer, v[i].size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:13559: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(dest, src, s->var_offset);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:13571: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(dest + var_value_offset, ptr, var->size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14004: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(fields, s->fields, size - sizeof(sffield*));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14154: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 opts[256];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14279: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(buf->p, &v, sizeof(v));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14281: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(buf->p, field->name, v);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14288: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(buf->p, &v, sizeof(v));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14290: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(buf->p, field->options, v);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14456: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 message[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14491: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 error[256];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15249: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(*result, string, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15266: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(*result, *string, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15328: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(sz, s->value, s->valuesize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15388: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[128];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15445: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 name[128];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15453: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(p->p, &v, sizeof(v));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15454: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(p->p + sizeof(v), name, v.keysize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15455: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(p->p + sizeof(v) + v.keysize, value, v.valuesize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15463: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 path[256];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15490: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 path[256];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15553:13:  [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).
	int      (*open)(so*);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15620:33:  [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).
#define so_open(o)      (o)->i->open(o)
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15902: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(sv_vpointer(v), src, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:16065: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(n->buf.p, pointer, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:16089: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     *src[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:16094: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     *upsert[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:16096: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     *result[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:19818: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(i->i.s, start, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:19833: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(i->i.s, v->s, ss_bufused(v));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:19835: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(i->i.p, m->s, ss_bufused(m));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:20400: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(arg->buf->p, page_pointer, sizeof(sdpageheader));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:20426: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(arg->buf->s, arg->mmap->p + ref->offset, ref->sizeorigin);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:20742: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(b->v.p, v, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:20850: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(b->c.s, h, sizeof(sdpageheader));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:20939: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(i->m.p, &i->build, sizeof(sdindexheader));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:21719: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(buf->p, b->c.s, ss_bufused(&b->c));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:21728: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(buf->p, b->m.s, ss_bufused(&b->m));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:21730: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(buf->p, b->v.s, ss_bufused(&b->v));
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:22204:15:  [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).
	int          open;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:22721: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 src[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:22724: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 dst[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:22796: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 dst[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:24348:9:  [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 (c->open) {
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:24414: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  upsert_stream_reserve[sizeof(char**)];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25124: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 path[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25139: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 path[PATH_MAX];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25543: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 name[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25882: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 path[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25945: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 path[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25955: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 newpath[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:26656: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     version[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:26657: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     version_storage[16];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:26658: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     build[32];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:27281: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  error[128];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:27349: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 tracesz[128];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28097: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 path[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28231: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(v->key.s, sr_confkey(vp), vp->keysize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28232: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(v->value.s, sr_confvalue(vp), vp->valuesize);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28491: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(scheme->name, name, size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28572: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 path[1024];
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28959: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(copy, o->prefix, o->prefix_size);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:30068:17:  [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).
	int rc = o->i->open(o);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:209:5:  [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(0);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:805: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).
	int sz = strlen(str) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:10461:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14275: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).
		v = strlen(field->name) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:14284: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).
		v = strlen(field->options) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15244: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).
		int size = strlen(string) + 1; 
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15261: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).
		int size = strlen(*string) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15414: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).
			v.valuesize = strlen(string) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:15424: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).
			v.valuesize = strlen(*string) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25086: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).
	                  strlen(s->name) + 1);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:25114: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).
	                  strlen(s->compression_if->name) + 1);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28020: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).
		size = strlen(string) + 1;
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:28487: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).
		size = strlen(name);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:29073: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).
		size = strlen(pointer);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:29160: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).
			size = strlen(pointer);
data/golang-github-pzhin-go-sophia-0.0~git20191015.0.afcd224/sophia.c:29243: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).
			*size = strlen(order) + 1;

ANALYSIS SUMMARY:

Hits = 153
Lines analyzed = 30328 in approximately 0.69 seconds (44110 lines/second)
Physical Source Lines of Code (SLOC) = 23001
Hits@level = [0]  32 [1]  16 [2] 129 [3]   0 [4]   8 [5]   0
Hits@level+ = [0+] 185 [1+] 153 [2+] 137 [3+]   8 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 8.04313 [1+] 6.65188 [2+] 5.95626 [3+] 0.347811 [4+] 0.347811 [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.