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/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/config/now.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/config/pathsub.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/config/prdepend.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/argpin.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/argpin.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/convutf8.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcompare.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapdelete.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodrdn.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ntuserpin.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ntuserpin.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/add.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/asearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/authzid.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/compare.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/csearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/del.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/effright.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/examples.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getattrs.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getfilt.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modattrs.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modrdn.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/nsprio.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/nsprsasl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/nsprsaslsearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/passwordpolicy.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ppolicy.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/psearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/pwdextop.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/rdentry.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/realattr.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/sasl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/saslsearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/search.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/srvrsort.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ssearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ssnoauth.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/starttls.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/userstatus.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/virtattr.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/whoami.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/ConnDlg.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/ConnDlg.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/LdapDoc.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/LdapDoc.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/LdapView.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/LdapView.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/MainFrm.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/MainFrm.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/PropDlg.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/PropDlg.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/Resource.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/SrchDlg.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/SrchDlg.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/StdAfx.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/StdAfx.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/winldap.cpp
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/winldap.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/disptmpl.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/iutil.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/lber.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/lcache.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap-deprecated.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap-extension.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap-platform.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap-standard-tmpl.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap-to-be-deprecated.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldap_ssl.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldaplog.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldappr.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldaprot.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldif.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/proto-ntutil.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/regex.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/srchpref.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libiutil/iutil-lock.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/dtest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/idtest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/abandon.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/add.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/authzidctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/bind.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cache.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charray.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charset.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/compare.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/compat.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/control.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/countvalues.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/delete.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/disptmpl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dllmain.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dsparse.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/error.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/extendop.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/free.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/freevalues.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/friendly.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getattr.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getdn.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getdxbyname.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/geteffectiverightsctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getentry.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c
Parsing failed to find end of parameter list; semicolon terminated it in ( msg, sizeof(msg),
#else
		sprintf( msg,
#endif
			"bad regular expression \"%s\" - %s\n",
			nextflp->lfl_pattern, errmsg );
		ber_err_print( msg );
		nsldapi_free_strarray( tok );
		return( NULL );
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getoption.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getvalues.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ldap-int.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/message.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/modify.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/open.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/os-ip.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/proxyauthctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/psearch.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pwmodext.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pwpctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/referral.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/regex.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/rename.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/reslist.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/result.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslio.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sbind.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/search.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/setoption.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sort.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sortctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/srchpref.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmpltest.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ufn.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/unbind.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/unescape.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/userstatusctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/utf8.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/vlistctrl.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/whoami.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-dns.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-error.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-int.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-io.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-public.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-threads.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/clientinit.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/errormap.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/ldapsinit.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/prerrstrs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/secerrstrs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/sslerrstrs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libutil/getopt.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/LDAPClientDebugDefs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/LDAPClientDefs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/getopt.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/kerberos-macos.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos-defs.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/macos-ip.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/strings.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/tcp-univhdrs/tcp.c
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/tcp-univhdrs/tcp.h
Examining data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/msdos/winsock/mozock.c
Examining data/ldapjdk-4.21.0+dfsg1/ds-plugins/lulu.c
Examining data/ldapjdk-4.21.0+dfsg1/ds-plugins/lulu.h
Examining data/ldapjdk-4.21.0+dfsg1/ds-plugins/rex_filt.c
Examining data/ldapjdk-4.21.0+dfsg1/ds-plugins/url_filt.c
Examining data/ldapjdk-4.21.0+dfsg1/perldap/constant.h
Examining data/ldapjdk-4.21.0+dfsg1/tools/ldap/ldaperr2string/ldaperr2string.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/ldap/unfoldldif/unfoldldif.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/demangle/demangle.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/getdate.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/numberlines.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/physmem.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c
Examining data/ldapjdk-4.21.0+dfsg1/tools/misc/winkill/winkill.c

FINAL RESULTS:

data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:306:30:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	    if ((owner || group) && chown(toname, uid, gid) < 0)
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:340:4:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		 readlink(toname, buf, sizeof buf) != len ||
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:391:10:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	    if (chmod(toname, mode) < 0)
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getfilt.c:67:5:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
    gets( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h:113:5:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    crypt_r(pass,salt,&r_cryptd_r)
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:101:17:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    FILE *pwd = popen("pwd", "r");
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:295:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(toname, "%s/%s", todir, base);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:317:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(linkname, "%s/%s", linkprefix, name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:325:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(linkname + lplen, name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:361:47:  [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 (exists && (!S_ISREG(tosb.st_mode) || access(toname, W_OK) < 0))
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:432:5:  [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(stderr, format, ap);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:513:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    return strcpy((char*)xmalloc(strlen(s) + 1), s);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:549:15:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	len = strlen(strcpy(outpath, to));
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:561:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(outpath + len, "%s/", buf);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:575:10:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    cp = strcpy(outpath + PATH_MAX - (len + 1), name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:586:6:  [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(cp, name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:596: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(outpath, cp);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:387:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( optstring, "%s%s", common_opts, extra_opts );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:953: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( buf, numaddr );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2309:2:  [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(result, tokenName);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2312:2:  [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(result+tokenlen, certName);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2659:20:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
    pass = (char *)getpass(prompt);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:189: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( url, prefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:375:10:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	        sprintf(partial, "\ndifferent: %s(*)", head1->name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:376:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:378:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(partial,"\n\t1: %s", head1->vals[i]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:379:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:402:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		        sprintf(partial, "\n\t1: %s", head1->vals[i]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:403:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(res, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:408:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		        sprintf(partial, "\n\t2: %s", tmp->vals[j]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:409:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(res, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:413:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(partial, "\ndifferent: %s%s", name, res);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:415:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:444:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf(partial, "\ndifferent: %s(*)", name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:446:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		    strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:448:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		        sprintf(partial, "\n\t1: %s", head1->vals[i]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:449:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:460:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(partial, "\ndifferent: %s(*)", head2->name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:462:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
       	strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:464:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
       	    sprintf(partial, "\n\t2: %s", head2->vals[i]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:465:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
       	    strcat(result, partial);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:566:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf( tmpfname, "%s/ldapcmp-%s-XXXXXX",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:654: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( p - 1, p );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:1021:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy( buf + lcur, line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:606:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	if ( snprintf( filterp, length, filtpatt, value ) < 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:611:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf( filterp, filtpatt, value );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:996:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf( tmpfname, "%s/ldapsearch-%s-XXXXXX",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:69:14:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
static char *getlogin()
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:101:15:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
	if ((login = getlogin()) == NULL) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool.h:78:30:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
#define LDAPTOOL_MKTEMP( p )	mktemp( p )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool.h:149:77:  [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.
#define LDAPToolDebug(lvl,fmt,arg1,arg2,arg3) if (lvl & ldaptool_dbg_lvl) { fprintf(stderr,fmt,arg1,arg2,arg3); }
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:114:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf( prompt, defaultval );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:121:6:  [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( resultbuf, defaultval );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:124:2:  [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( resultbuf, inbuf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modattrs.c:74:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf( buf, "This entry was modified with the modattrs program on %s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldaplog.h:95:4:  [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( msg, sizeof(msg), fmt, arg1, arg2, arg3 ); \
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:158:9:  [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.
#define snprintf _snprintf
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:158: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.
#define snprintf _snprintf
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:383:5:  [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.
int fprintf(FILE *, char *, ...);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c:60:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( msg, "\t%s\n", ( i == 0 ) ? "(end)" : out );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c:82:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( msg, "\t%s\n", out );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c:488:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( msg, "ber_scanf fmt (%s) ber:\n", fmt );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c:586:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( msg, "ber_printf fmt (%s)\n", fmt );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:399:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( msg, "ber_flush: %d bytes to sd %ld%s\n", (int)towrite,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:520: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( p, dn );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:521: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( p + slen - 1, base );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dllmain.c:156:3:  [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 (debugBuf, sizeof(debugBuf), fmt, ap);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:153:3:  [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( msg, sizeof(msg),
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:155:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( msg,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:657:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(keystr, "%s\n%s\n%s\n%s\n%s\n", binddn, tmpbase,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:663:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat(keystr, NSLDAPI_STR_NONNULL(attrs[i]));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:922:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(pCh, "%s\n", NSLDAPI_STR_NONNULL(ctrls[i]->ldctl_oid));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:428:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:473:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/open.c:909:2:  [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( p, s );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:575:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:669:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:710:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:755:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf( dn, "cn=%s, " BASE, name );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/regex.c:821:19:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
static int LDAP_C printf( const char* pszFormat, ...)
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/regex.c:826:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(buf, pszFormat, arglist);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:126:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf( msg,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:869:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( msg, "** Connection%s:\n", all ? "s" : "" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:873:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf( msg, "* 0x%p - host: %s  port: %d  secure: %s%s\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:883:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf( msg, "  refcnt: %d  pending: %d  status: %s\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:890:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( msg, "  last used: %s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:920:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf( msg, " * 0x%p - msgid %d,  origid %d, status %s\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:931:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf( msg, "   pending bind DN: <%s>\n", lr->lr_binddn );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1376: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( *referralsp, LDAP_REF_STR );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1380:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat( *referralsp, s );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:115:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(prompt);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:317:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:610: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, usage, argv[ 0 ] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:671:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:715:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:764:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:805:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:953:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:966:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1019:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1035:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1088:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1169:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy( dnsuffix, line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1351:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( dn, dnsuffix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:200:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "<HTML>%s<HEAD>%s<TITLE>%s%s - ", eol, eol, eol,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:204:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "%s</TITLE>%s</HEAD>%s<BODY>%s<H3>%s - ", eol, eol,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:208:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "</H3>%s", eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:219:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "<A HREF=\"%s", urlprefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:231:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf + strlen( buf ),
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:241:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, "<A HREF=\"%s", urlprefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:243:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf + strlen( buf ), "??one?(!(objectClass=dsa))\">Browse Below <EM>%s</EM></A>%s%s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:254:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "\"%s", eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:379:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "</BODY>%s</HTML>%s", eol, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:694:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf + strlen( buf ), "\">%s</A><BR>%s", outval, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:719:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf( buf, "<DD>%s<BR>%s", p, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:721:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		    sprintf( buf, "%-*s%s%s", labelwidth, " ", p, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:763:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "<DD><A HREF=\"%s\">%s</A><BR>%s", p, s, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:765:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "%-*s%s%s%-*s%s%s", labelwidth, " ",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:772:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf( buf, " Can't display item type %ld%s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:779:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "<DD>%s<BR>%s", outval, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:781:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf( buf, "%-*s%s%s", labelwidth, " ", outval, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:824:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "<DT><B>%s</B>", label );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:827:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, " %s:", label );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:835:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat( buf, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:854:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "<DD><A HREF=\"%s", urlprefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:858:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "%-*s", width, " " );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:868:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat( buf, dnrdns[ i ] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:877:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat( buf, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:969:2:  [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( timestr + 11, timestr + 20 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1087:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf, "<DT><A HREF=\"%s", urlprefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1093:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( buf + strlen( buf ), "\"><B>%s</B></A><DD><BR>%s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ufn.c:138:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy( ufncomp[ncomp], ufncomp[ncomp] + 1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ufn.c:329:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat( pbuf, prefixcomp[j] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-io.c:366:2:  [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, fmtstr, p, PR_ntohs( addrp->ipv6.port ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/ldapsinit.c:1330:6:  [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( s2, s1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/kerberos-macos.c:90:2:  [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( (char *)svcps, service );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/kerberos-macos.c:92:2:  [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( (char *)instps, ld->ld_defconn->lconn_krbinstance );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/strings.c:128: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( r, p );
data/ldapjdk-4.21.0+dfsg1/tools/misc/numberlines.c:73:2:  [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, usage, argv[0] );
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:84: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( at, ctime( &stbuf.st_atim.tv_sec ) + 4 );
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:85: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( mt, ctime( &stbuf.st_mtim.tv_sec ) + 4 );
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:86: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( ct, ctime( &stbuf.st_ctim.tv_sec ) + 4 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:213:19:  [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 ((opt = getopt(argc, argv, "C:DdlL:Rm:o:g:t")) != EOF) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:398:18:  [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 ( (i = getopt( argc, argv, optstring )) != EOF ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2136:15:  [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.
    if (( p = getenv( "TEMP" )) == NULL && ( p = getenv( "TMP" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2136:50:  [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.
    if (( p = getenv( "TEMP" )) == NULL && ( p = getenv( "TMP" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:117:15:  [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.
	if (( base = getenv( "LDAP_BASEDN" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:190:15:  [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.
	if (( base = getenv( "LDAP_BASEDN" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool.h:70: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 *optstring);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/proto-ntutil.h:61: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 *optstring);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:203:4:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
			InitializeCriticalSection(&sc);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:207:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&sc);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:276:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	MyHandle = LoadLibrary(SZWINSOCK);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:110:15:  [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, "abcdmrsERi:n:o:S:" )) != EOF ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:158:5:  [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( seed );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:161:5:  [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( atoi( optarg ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:484:14:  [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.
		modentry = random() % num_entries;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:756:36:  [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.
		sprintf( cmpval, "%d", randval + random() % 3 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:1017:10:  [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.
	return( random() % maxid );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:547:15:  [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, "uh:d:s:p:t:T:V:" )) != -1 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libutil/getopt.c:81:5:  [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.
int getopt(int nargc, char *const *nargv, const char *ostr)
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/getopt.c:77: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 nargc, char **nargv, char *ostr)
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos.h:86:5:  [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.
int getopt(int nargc, char **nargv, char *ostr);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/msdos/winsock/mozock.c:249:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	hWinsock = LoadLibrary(SZWINSOCK);
data/ldapjdk-4.21.0+dfsg1/tools/misc/numberlines.c:61:18:  [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, "s:" )) != EOF ) {
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:55:17:  [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, "n" )) != EOF ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h:72: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 r_strerror_r[R_MAX_STRERROR_LEN_R]
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h:81: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 r_asctime_r[26]
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h:87: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 r_ctime_r[26]
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/libc_r.h:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char r_getpwnam_line_r[R_MAX_PW_LEN_R]; \
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:203: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 *linkprefix, *owner, *group, *cp, *cwd, *todir, *toname, *name, *base, *linkname, *bp, buf[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:358: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).
	    fromfd = open(name, O_RDONLY);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:363: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).
	    tofd = open(toname, O_CREAT | O_WRONLY, 0666);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:539:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NAME_MAX];
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:557:6:  [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(outpath + len, "../");
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:572:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[NAME_MAX];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:408:25:  [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).
	    ldaptool_dbg_lvl = atoi( optarg );	/* */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:453:19:  [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).
		ldaptool_port = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:456:20:  [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).
		ldaptool_port2 = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:563:25:  [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 ((password_fp = fopen( optarg, "r" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:570:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    refhoplim = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:573:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    ldversion = atoi (optarg);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1000: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 tmpbuf[PR_NETDB_BUF_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1038: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	hname[MAXHOSTNAMELEN];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1041: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	hname[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1749:27:  [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).
                pw_secs = atoi(ctrls[i]->ldctl_value.bv_val);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2596: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 pbuf[257];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2618: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 pbuf[257];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2743:9:  [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).
	return fopen(filename, mode);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/convutf8.cpp:303:13:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    wclen = MultiByteToWideChar(bFromUTF8 ? CP_UTF8 : CP_ACP, 0, instr,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:361: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	mode[20] = "r+b";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:363: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	mode[20] = "r";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:183:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timelimit = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:186:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	sizelimit = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:361:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char result[5000];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:362: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 res[1000], partial[1000], *name = "";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:523: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, *dn, *ufn, tmpfname[ 256 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:529: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	mode[20] = "w+b";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:531: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	mode[20] = "w";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcompare.c:74:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[ 4096 ], *typeval = NULL, *type = NULL;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcompare.c:180: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	*valuestr, tmpbuf[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcompare.c:189: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( tmpbuf, "NOT ASCII (%d bytes)",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapdelete.c:64:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buf[ 4096 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:379:21:  [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).
		    replicaport = atoi( p );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:394:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		ldif_version = atoi( value );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:983:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char        *buf, line[ LDAPMOD_MAXLINE ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodrdn.c:65: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	*entrydn, *rdn, buf[ 4096 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:172:26:  [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 ((old_password_fp = fopen( optarg, "r" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:191:26:  [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 ((new_password_fp = fopen( optarg, "r" )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:432:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	timelimit = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:438:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	sizelimit = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:452:19:  [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).
	    vlv_before = atoi(optarg);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:454:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	    vlv_after = atoi( s );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:479:16:  [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).
			vlv_index = atoi( s );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:480:16:  [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).
			vlv_count = atoi( strchr( s, VLV_PARAM_SEP) + 1);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:689:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(s, sortattr[i], strlen(sortattr[i]));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:922: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, *dn, *ufn, tmpfname[ BUFSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:928: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	mode[20] = "w+b";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:930: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	mode[20] = "w";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:948: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		*prevdn, longbuf[ 128 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:957:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		    sprintf( longbuf, "%d", chgnum );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1091: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	versionbuf[ 64 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1094: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( versionbuf, "%d", LDIF_VERSION_ONE );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:73:9:  [2] (buffer) TCHAR:
  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 TCHAR tchBuffer[UNLEN + 1]; /* buffer for expanded string */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ntuserpin.c:67: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 loclpwd[SZ_LOCAL_PWD] = "";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:61: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		patbuf[ FILT_BUFSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:62: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		attrbuf[ FILT_BUFSIZ ], valuebuf[ FILT_BUFSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:63: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		filtbuf[ FILT_BUFSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:111: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 inbuf[ FILT_BUFSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/effright.c:86:46:  [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.
    if ( !( attrlist = (char**)malloc(sizeof(char * [ 2 ]) ) ) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getattrs.c:50: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		**vals, *attrs[ 5 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getfilt.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[ 80 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modattrs.c:51: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	*vals0[ 2 ], *vals1[ 2 ], buf[ 128 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ppolicy.c:54: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[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ppolicy.c:62: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, ctrls[ i ]->ldctl_value.bv_val,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ppolicy.c:69:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			status = atoi( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/ppolicy.c:122: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).
		port = atoi( argv[2] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/psearch.c:207:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[ 25 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/psearch.c:224: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( s, "unknown (%d)", chgtype );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/realattr.c:75:46:  [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.
    if ( !( attrlist = (char**)malloc(sizeof(char * [ 3 ]) ) ) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/virtattr.c:75:46:  [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.
    if ( !( attrlist = (char**)malloc(sizeof(char * [ 3 ]) ) ) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/windows/winldap/winldap.cpp:276: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 *attrs[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/ldaplog.h:94:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char msg[1024]; \
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:291: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.
typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:299: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.
typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:304: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.
typedef char GETHOSTBYNAME_buf_t [NSLDAPI_NETDB_BUF_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:417:31:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define SAFEMEMCPY( d, s, n )	bcopy( s, d, n )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/include/portable.h:458:41:  [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).
#define NSLDAPI_FOPEN( filename, mode )	fopen( filename, mode )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c:53: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	out[ BPLEN ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c:59: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 msg[BPLEN + 80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/bprint.c:81: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 msg[BPLEN + 80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c:175: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	buffer[sizeof(ber_int_t)];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c:487: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c:652: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/decode.c:653: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( msg, "unknown fmt %c\n", *p );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c:585: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c:682: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c:683: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( msg, "unknown fmt %c\n", *fmt );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:112: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		fmt[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:113: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[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:139:20:  [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).
			arg1 = (void *) atoi( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:141:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:142:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf( msg, "ber_filbuf udp_read %d bytes\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:398: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:669: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 msg[128];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:670: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( msg, "ber_dump: buf 0x%p, ptr 0x%p, rwptr 0x%p, end 0x%p\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:674: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( msg, "          current len %ld, contents:\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:679: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( msg, "          current len %ld, contents:\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:689: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:692: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( msg, "ber_sos_dump: clen %d first 0x%p ptr 0x%p\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:695: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( msg, "              current len %ld contents:\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:903:6:  [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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:904: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( msg, "ber_get_next: tag 0x%x len %d contents:\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h:156: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          ber_tag_contents[MAX_TAG_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h:157: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          ber_len_contents[MAX_LEN_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h:158: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          ber_pre_contents[MAX_VALUE_PREFIX_SIZE];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h:159: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          ber_suf_contents[MAX_LEN_SIZE+1];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/lber-int.h:275:30:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define THEMEMCPY( d, s, n )	bcopy( s, d, n )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cache.c:82: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[50];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cache.c:133: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( buf, "%ld", time( NULL ) );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:547: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 msg[80];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:548: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( msg, "cldap_parsemsg add message id %d type %d:\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/disptmpl.c:175:15:  [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).
    version = atoi( toks[ 1 ] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dllmain.c:150: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 debugBuf[1024];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dllmain.c:173: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/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/error.c:152: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    msg[1024];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/free.c:125:18:  [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.
		NSLDAPI_FREE( (char *) mods[i] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/friendly.c:60: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[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getdxbyname.c:101: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	buf[ PACKETSZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getdxbyname.c:135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[ 256 ], **dxs;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:150: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    msg[512];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:366:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    auto char x[4];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:385: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( x, "\\%02x", (unsigned)*v );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getvalues.c:379: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( baseTarget, target, len );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ldap-int.h:610: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			lfd_filter[ LDAP_FILT_MAXSIZ ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:289: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(&((*cachep)->ldmemc_lock_fns), thread_fns, 
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:596:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[50];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:624: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, "%i\n%i\n%i\n", defport, scope, (attrsonly ? 1 : 0));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:925: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(pCh, (ctrls[i]->ldctl_value).bv_val, 
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:929: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(pCh, "\n%i\n", (ctrls[i]->ldctl_iscritical ? 1 : 0));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:1223:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(p->ber_buf, pBer->ber_buf, p->ber_len);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:1259: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(*ppCurNew, pCur, sizeof(LDAPMessage));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:107: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 *spName[(int)sp_MaxProcs] =	{
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:330:17:  [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(lpWSAData->szDescription, "Mozock DLL internal implementation.");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/mozock.c:331:17:  [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(lpWSAData->szSystemStatus, "Winsock running, allowing no network access.");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:107:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if ( (ld = ldap_init( argv[1], atoi( argv[2] ) )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:321: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		*vals[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:400: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	dn[BUFSIZ], name[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:401: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	*cnvals[2], *snvals[2], *ocvals[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:427: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( name, "%d", rand() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:447: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		dn[BUFSIZ], name[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/nsprthreadtest.c:472: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( name, "%d", rand() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/open.c:834:12:  [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).
		*portp = atoi( q );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/os-ip.c:673:20:  [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.
			    ( use_hp ? (char *) addrlist[ i ] :
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:140:12:  [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).
			maxid = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:143:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (( each_thread_count = atoi( optarg )) < 1 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:149:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if (( maxops = atoi( optarg )) < 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:161:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				srandom( atoi( optarg ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:224:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (( ld = ldap_init( argv[optind], atoi( argv[optind+1] ))) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:408: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		*vals[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:538: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	dn[BUFSIZ], name[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:539: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	*cnvals[2], *snvals[2], *pwdvals[2], *ocvals[3];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:574: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( name, "%d", get_random_id() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:611: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		dn[BUFSIZ], name[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:668: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( name, "%d", get_random_id() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:700: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		dn[BUFSIZ], name[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:709: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( name, "%d", get_random_id() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:743: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		dn[BUFSIZ], name[40], cmpval[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:754: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( name, "%d", randval );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:756: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( cmpval, "%d", randval + random() % 3 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:801: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		*dn, filter[40];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:813: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( filter, "(cn>=%d)", get_random_id());
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:816: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( filter, "(cn<=%d)", get_random_id());
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:819: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( filter, "(&(cn>=%d)(cn<=%d))",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:824:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf( filter, "cn=%d", get_random_id() );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:1024: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	idstr[ 10 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:1026: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( idstr, "%d", id );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/regex.c:608: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 chrtyp[MAXCHR] = {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/regex.c:823:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[1024];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:122:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char    msg[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.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        msg[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:866: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[26];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:912: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        msg[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:927: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( msg, "   outstanding referrals %d, parent count %d\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:943:17:  [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( msg, " * 0x%p - msgid %d,  type %d\n",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:949: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( msg,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1611:12:  [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).
				port = atoi( p );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:247:43:  [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).
                                min_ssf = atoi( &props[i][sizeof("minssf")] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:256:43:  [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).
                                max_ssf = atoi( &props[i][sizeof("maxssf")] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:265:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                                maxbufsize = atoi( &props[i][sizeof("maxbufsize")] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sort.c:317: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	*attrs[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sortctrl.c:351: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(new_key->sk_attrtype,attrdesc_source,attrdesc_size);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sortctrl.c:354: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(new_key->sk_matchruleoid,matchrule_source,matchrule_size);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/srchpref.c:134:15:  [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).
    version = atoi( toks[ 1 ] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:129: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[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:223: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[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:236:17:  [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).
			tmp.mod_op = atoi( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:301: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	dn[256], passwd[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:307:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (( *authmethodp = atoi( dn )) == 3 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:472: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, ptr, mmip->mmi_actualsize );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:491: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		line[256], command1, command2, command3;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:492: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		passwd[64], dn[256], rdn[64], attr[64], value[256];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:493: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		filter[256], *host, **types;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:560:17:  [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).
			ldap_debug = atoi( optarg ) | LDAP_DEBUG_ANY;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:580:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			port = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:596:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ldapversion = atoi( optarg );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:642:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ( (fd = open( copyfname, O_WRONLY | O_CREAT, 0600 ))
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:684: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).
				id = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:698:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			version = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:708:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			method = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:732: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		mechanism[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:757:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			method = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:782: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		mechanism[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:817:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char		oid[100];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:848:8:  [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).
			i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:851: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		**basedns, *dnarray[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:856:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				ttl = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:859:12:  [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).
				size = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:894: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).
					i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:904: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).
					i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:923:17:  [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).
			ldap_debug = atoi( line ) | LDAP_DEBUG_ANY;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:971: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).
				    atoi(line) )) == -1 )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:999:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					id = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1005:12:  [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).
					all = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1038:12:  [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).
			scope = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1044:16:  [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).
			attrsonly = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1073:21:  [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).
			timeout.tv_sec = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1092:16:  [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).
			attrsonly = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1115:16:  [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).
			attrsonly = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1195:36:  [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).
			    newctrl->ldctl_iscritical = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1209:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			changetypes = atoi(line);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1212:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			changesonly = atoi(line);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1215:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			return_echg_ctls = atoi(line);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1220:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			    (char)atoi(line), &newctrl ) != LDAP_SUCCESS ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1235:8:  [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).
			i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1238:8:  [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).
			i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1241:8:  [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).
			i = atoi( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1247: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).
			if ( atoi( line ) == 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1254: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).
				if ( atoi( line ) != 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1266:15:  [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).
			optval = ( atoi( line ) != 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1272:15:  [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).
			optval = ( atoi( line ) != 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1278: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).
				if ( atoi( line ) != 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1286:15:  [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).
			optval = ( atoi( line ) != 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1307:15:  [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).
			optval = ( atoi( line ) != 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1314:17:  [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).
			    sslopt = atoi(line);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1320:15:  [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).
			    on = ( atoi( line ) != 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1329: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).
			    ( atoi( line ) == 0 ) ? LDAP_OPT_OFF :
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1334: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).
			    ( atoi( line ) == 0 ) ? LDAP_OPT_OFF :
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1374: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	filtbuf[ 512 ], pattern[ 512 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1375: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	prefix[ 512 ], suffix[ 512 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1376: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	attr[ 512 ], value[ 512 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1685:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[ 25 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1703: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( s, "unknown (%d)", chgtype );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1863: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	out[ BPLEN ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:502:6:  [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	*ocattrs[2];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:692:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy( buf, "<DD><A HREF=\"mailto:" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:856:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat( buf, "\">" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:866:6:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	    strcat( buf, ", " );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:872:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat( buf, "</A><BR>" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:922:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char		buf[26];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1047: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		*retattrs[2], filter[ 256 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1091:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat( buf, "??sub?" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c:268:21:  [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).
			ludp->lud_port = atoi( p );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/utf8.c:41: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 UTF8len[64]
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:67: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 nib2b64[0x40f] =
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:70:17:  [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 unsigned char b642nib[0x80] = {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:441: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	buf[3];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:557: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	line[BUFSIZ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:607: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 + cur, line, len + 1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-io.c:353: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[ 256 ], *p, *fmtstr;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-io.c:356:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy( buf, "conversion failed!" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libprldap/ldappr-threads.c:598:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy( newdataitems, tsdhdr->ptpdh_dataitems,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/clientinit.c:85: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  tokDes[34] = "Internal (Software) Database     ";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/clientinit.c:86: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 ptokDes[34] = "Internal (Software) Token        ";
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/kerberos-macos.c:77: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		*cred, ticket[ MAX_KTXT_LEN ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/kerberos-macos.c:108: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( cred, (char *)ticket, ticketlen );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos.h:106:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char			sin_zero[8];
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/msdos/winsock/mozock.c:101: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 *spName[(int)sp_MaxProcs] =	{
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/msdos/winsock/mozock.c:301:17:  [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(lpWSAData->szDescription, "Mozock DLL internal implementation.");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/msdos/winsock/mozock.c:302:17:  [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(lpWSAData->szSystemStatus, "Winsock running, allowing no network access.");
data/ldapjdk-4.21.0+dfsg1/ds-plugins/url_filt.c:103: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.
PRIVATE char *urlAttrs[2] = { "dn", NULLCP };
data/ldapjdk-4.21.0+dfsg1/ds-plugins/url_filt.c:142:8:  [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, val, valLen);
data/ldapjdk-4.21.0+dfsg1/tools/ldap/unfoldldif/unfoldldif.c:46:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char	buf[ 4096 ];
data/ldapjdk-4.21.0+dfsg1/tools/misc/demangle/demangle.c:71: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[512];
data/ldapjdk-4.21.0+dfsg1/tools/misc/numberlines.c:57: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	line[ 8192 ];
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:48: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	at[ 255 ];
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:49: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	mt[ 255 ];
data/ldapjdk-4.21.0+dfsg1/tools/misc/stat.c:50: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	ct[ 255 ];
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:105: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).
        buf[strlen(buf)-1] = '\0';
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:136: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).
	program, (int)strlen(program), "");
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:229: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).
	    lplen = strlen(linkprefix);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:282: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).
    tdlen = strlen(todir);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:284: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).
    tdlen = strlen(todir);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:291: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/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:293: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).
	bnlen = strlen(base);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:332:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    len = strlen(linkname);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:368:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((cc = read(fromfd, bp, sizeof buf)) > 0) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:513: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).
    return strcpy((char*)xmalloc(strlen(s) + 1), s);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:549: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(strcpy(outpath, to));
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:562:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len += strlen(outpath + len);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:584: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).
	    len = strlen(name);
data/ldapjdk-4.21.0+dfsg1/c-sdk/config/nsinstall.c:592:6:  [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 string.
	    strncpy(cp, "../", 3);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/argpin.c:129: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).
    memset(obj->password, 0, strlen(obj->password));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:381: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).
    if (( optstring = (char *) malloc( strlen( extra_opts ) + strlen( common_opts )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:381:63:  [1] (buffer) strlen:
  Does not handle 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 (( optstring = (char *) malloc( strlen( extra_opts ) + strlen( common_opts )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:390: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).
		if ( ((strncmp( argv[1], "/?", strlen("/?") + 1 )) == 0 ) ||
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:391: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).
			 ((strncmp( argv[1], "-help", strlen("-help") + 1 )) == 0 ) ||
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:392: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).
			 ((strncmp( argv[1], "--help", strlen("--help") + 1 )) == 0 ) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:940: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).
			mylen = strlen( hostp );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:945:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    strncpy( buf, hostp, mylen );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:950: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).
		if ( strlen(numaddr) >= blen ) { /* address too long */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1507: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).
    bv.bv_len = ( passwd == NULL ? 0 : strlen( passwd ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:1994: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).
	*vlen = (int)strlen(*ctrl_value);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2149: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).
    offset = strlen( p ) - 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2304: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).
    int tokenlen = strlen(tokenName);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2305: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).
    int len = tokenlen + strlen(certName) +2;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2563:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
         int len = strlen(attr);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/common.c:2686:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((c = fgetc( mod_password_fp )) != '\n' && c != EOF) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/convutf8.cpp:221:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    inbytesleft = strlen( src );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/convutf8.cpp:293: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).
    if ((inlen = strlen(instr)) <= 0)
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:185:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (( url = malloc( strlen( prefix ) + 3 * strlen( path ) + 1 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:185:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (( url = malloc( strlen( prefix ) + 3 * strlen( path ) + 1 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:190: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).
    p = url + strlen( prefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:249:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(url) < 6 || strncasecmp(url, "file:/", 6) != 0) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:417: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).
    prefix_len = strlen( prefix );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:418: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).
    if ( strlen( s ) < prefix_len ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/fileurl.c:490: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).
    p = s1 + strlen( s1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:370:5:  [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(result, "");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:392:10:  [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(res, "");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:500: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).
	write_ldif_value( "dn", dn, strlen( dn ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:507:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    write_ldif_value( "ufn", ufn, strlen( ufn ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:536: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).
	write_ldif_value( "dn", dn, strlen( dn ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:543:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    write_ldif_value( "ufn", ufn, strlen( ufn ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcmp.c:578: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).
			write_ldif_value( a, tmpfname, strlen( tmpfname ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapcompare.c:138: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).
	    buf[ strlen( buf ) - 1 ] = '\0';	/* remove trailing newline */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapdelete.c:116: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).
	    buf[ strlen( buf ) - 1 ] = '\0';	/* remove trailing newline */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:177: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).
	bv.bv_len = strlen(bulkimport_suffix);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:670: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).
		p = line + strlen( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:688: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).
		for ( q = value + strlen( value ) - 1; q > value &&
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:722:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    ( value == NULL ) ? 0 : strlen( value ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:991: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).
	if ( (len = strlen( line )) < 2 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:1000: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 ( ((len = strlen( line )) == 2) && (line[0] == '\r') ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodify.c:1042: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).
    p = s + strlen( s ) - 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapmodrdn.c:120: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).
	    buf[ strlen( buf ) - 1 ] = '\0';	/* remove nl */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:107: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).
			userid.bv_len = strlen( userid.bv_val );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:222: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).
		oldpasswd.bv_len = strlen( oldpasswd.bv_val );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:236: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).
						   strlen( new_passwd ) ) ) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldappasswd.c:261: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).
		newpasswd.bv_len = strlen( newpasswd.bv_val );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:296:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while ((c = fgetc( ldaptool_fp )) != '\n' && c != EOF) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:415: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).
		}else if ( strlen(optarg) < 3 || (strncasecmp(optarg, "dn:", 3) != 0) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:593: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).
	length = strlen( filtpatt ) + strlen ( value ) +1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:593:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen( filtpatt ) + strlen ( value ) +1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:678: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).
	    string_length += strlen(sortattr[i]) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:689: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).
	    memcpy(s, sortattr[i], strlen(sortattr[i]));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:690: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).
	    s += strlen(sortattr[i]);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1017: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).
				    write_ldif_value( a, url, strlen( url ),
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1022: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).
			    write_ldif_value( a, tmpfname, strlen( tmpfname ),
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1074:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_ldif_value( attrname, strval, strlen( strval ), 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldapsearch.c:1095: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).
	write_ldif_value( "version", versionbuf, strlen( versionbuf ), 0 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:203: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).
			memset( defaults->passwd, '\0', strlen(defaults->passwd));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:209:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		interact->len = strlen((char *)(interact->result));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:246:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(newvalue);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:252:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(str);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/clients/tools/ldaptool-sasl.c:274:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		interact->len = strlen(interact->result);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/crtfilt.c:118: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).
    inbuf[ strlen( inbuf ) - 1 ] = '\0';	/* strip trailing newline */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/getfilt.c:68: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).
    if ( strlen( buf ) == 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modattrs.c:77: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 ( buf[ strlen( buf ) - 1 ] == '\n' ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/modattrs.c:78: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).
	buf[ strlen( buf ) - 1 ] = '\0';
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/nsprsasl.c:83: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).
            interact->len = strlen((char *)interact->result);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/nsprsaslsearch.c:83: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).
            interact->len = strlen((char *)interact->result);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/pwdextop.c:81: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).
    userid.bv_len = strlen(userid.bv_val);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/pwdextop.c:84: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).
    oldpasswd.bv_len = strlen(oldpasswd.bv_val);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/pwdextop.c:87: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).
    newpasswd.bv_len = strlen(newpasswd.bv_val);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/sasl.c:82: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).
            interact->len = strlen((char *)interact->result);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/examples/saslsearch.c:82: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).
            interact->len = strlen((char *)interact->result);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/dtest.c:69:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return( read( s, b, l ) );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/encode.c:287: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).
	return( ber_put_ostring( ber, str, (ber_len_t) strlen( str ), tag ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:71:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return( read( s, b, l ) );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:149: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).
			arg2 = (void *) strlen( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/etest.c:160: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).
			arg2 = (void *) strlen( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:61:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define read( s, b, l ) tcpread( s, 0, (unsigned char *)b, l, NULL )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:69:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#   define read( s, b, l )		recv( s, b, l, 0 )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/liblber/io.c:163:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rc = read( sb->sb_sd, sb->sb_ber.ber_buf,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cache.c:135: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).
	bv.bv_len = strlen( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charset.c:1738: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).
  if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * strlen( s ) + 64 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charset.c:1757: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).
  if ( (oo = (Byte *)NSLDAPI_REALLOC( o, strlen( o ) + 1 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charset.c:1792: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).
  if ( (o = oo = (Byte *)NSLDAPI_MALLOC( 2 * strlen( s ) + 64 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/charset.c:1835: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).
  if ( (oo = (Byte *)NSLDAPI_REALLOC( o, strlen( o ) + 1 )) == NULL ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:471:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    baselen = ( base == NULL ) ? 0 : strlen( base );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/cldap.c:510:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    if ( dn != NULL && *(dn + ( slen = strlen(dn)) - 1) == '*' &&
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/compare.c:71:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bv.bv_len = ( value == NULL ) ? 0 : strlen( value );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/compare.c:169:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bv.bv_len = ( value == NULL ) ? 0 : strlen( value );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/compat.c:94: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).
	size_t slen = strlen(src); 
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/dsparse.c:159: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).
    return( strlen( line ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:444: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).
	    f = filter_add_strn( f, flimit, prefix, strlen( prefix ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:492:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    f = filter_add_strn( f, flimit, attr, strlen( attr ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getfilter.c:505: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).
	    f = filter_add_strn( f, flimit, suffix, strlen( suffix ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getvalues.c:175: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).
	targetLen = strlen( target );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/getvalues.c:288:7:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if ( mismatch ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:86: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).
#define NSLDAPI_SAFE_STRLEN( s )		( (s) ? strlen((s)) + 1 : 1 )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:320: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).
	    total_size += strlen(baseDNs[i]) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:551: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).
	    size += strlen(cache->ldmemc_basedns[i]) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:664:6:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	    strcat(keystr, "\n");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:667:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(keystr, "\n");
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:899:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    len += strlen(NSLDAPI_STR_NONNULL(ctrls[i]->ldctl_oid)) +
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:913: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 *pCh = buf + strlen(buf);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:923: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).
	    pCh += strlen(NSLDAPI_STR_NONNULL(ctrls[i]->ldctl_oid)) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:1290: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).
	    size += strlen(pRes->ldmemcr_basedn) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/memcache.c:1450: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).
	size += sizeof(ldapmemcacheRes) + strlen(basedn) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/open.c:811:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy( *hostp, status->lhs_nexthost, len );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/open.c:906: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).
	    (p = (char *)NSLDAPI_MALLOC( strlen( s ) + 1 )) == NULL )
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/pthreadtest.c:758: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).
		bv.bv_len = strlen( cmpval );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1118: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( *errstrp );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1363: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).
		*referralsp = (char *)NSLDAPI_MALLOC( strlen( s ) +
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1368:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    strlen( *referralsp ) + strlen( s ) + 2 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1368: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).
		    strlen( *referralsp ) + strlen( s ) + 2 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1378:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat( *referralsp, "\n" );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/request.c:1604: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).
		} else if ( strlen( dxs[ i ] ) >= 7 &&
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:156:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                slen += strlen(*v) + 1;
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:169: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).
                slen = strlen(*v);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslbind.c:170:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(m, *v, slen);
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslio.c:181:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read( s, cp, 4 - dlen );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/saslio.c:210:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read( s, cp, dlen );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/sbind.c:120: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).
		bv.bv_len = strlen( passwd );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/srchpref.c:398: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).
	for ( i = strlen( toks[ 2 ] ) - 1, j = 0; i >= 0; i--, j++ ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:120: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).
	line[ strlen( line ) - 1 ] = '\0';
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:270: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).
					    strlen( tmp.mod_values[i] );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:739:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				cred.bv_len = strlen( passwd );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:789:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				cred.bv_len = strlen( passwd );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:823: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).
				val.bv_val = (char *)malloc( strlen( value ) / 2 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:827: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).
				val.bv_len = strlen( value );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1185:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    (char *)malloc( strlen( line ) / 2 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/test.c:1192:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    newctrl->ldctl_value.bv_len = strlen( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:202: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:206: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:209: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:231: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).
	    sprintf( buf + strlen( buf ),
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:235: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:243: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).
	    sprintf( buf + strlen( buf ), "??one?(!(objectClass=dsa))\">Browse Below <EM>%s</EM></A>%s%s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:245: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:255:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:380:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:694: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).
		sprintf( buf + strlen( buf ), "\">%s</A><BR>%s", outval, eol );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:695: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).
		(*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:723: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).
		(*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:768: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:774: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:783: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).
	    (*writeproc)( writeparm, buf, strlen( buf ));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:807: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).
	    if (( len = strlen( colp->ti_label )) > maxlen ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:828: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).
	p = buf + strlen( buf );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:838: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).
    return ((*writeproc)( writeparm, buf, strlen( buf )));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:879: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).
    return ((*writeproc)( writeparm, buf, strlen( buf )));
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:895: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).
    p = s1 + strlen( s1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:926:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (( len = (int)strlen( ldtimestr )) < 13 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:967: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).
    timestr[ strlen( timestr ) - 1 ] = zone;	/* replace trailing newline */
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1093: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).
	sprintf( buf + strlen( buf ), "\"><B>%s</B></A><DD><BR>%s",
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/tmplout.c:1095: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).
	if ((*writeproc)( writeparm, buf, strlen( buf )) < 0 ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ufn.c:315: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).
	if ( (pbuf = (char *)NSLDAPI_MALLOC( strlen( ld->ld_ufnprefix ) + 1 ))
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/ufn.c:331:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat( pbuf, "," );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c:109: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( *urlp ) >= LDAP_URL_URLCOLON_LEN && strncasecmp(
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c:115: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( *urlp ) >= LDAP_URL_PREFIX_LEN && strncasecmp( *urlp,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c:124: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( *urlp ) >= LDAPS_URL_PREFIX_LEN && strncasecmp( *urlp,
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/url.c:219: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).
	if ( enclosed && *((p = urlcopy + strlen( urlcopy ) - 1)) == '>' ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldap/vlistctrl.c:139:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				       (int)strlen( ldvlistp->ldvlist_attrvalue )) ) {
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:526: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).
    tlen = strlen( type );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libldif/line64.c:582:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen( line );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/libssldap/ldapsinit.c:1327: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).
	size_t	len = strlen( s1 );
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos.h:61:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define strcasecmp( s1, s2 )	IUMagIDString( s1, s2, strlen( s1 ), \
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/ldap-macos.h:62:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen( s2 ))
data/ldapjdk-4.21.0+dfsg1/c-sdk/ldap/libraries/macintosh/strings.c:126: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).
	r = (char *) malloc( strlen( p ) + 1 );
data/ldapjdk-4.21.0+dfsg1/ds-plugins/lulu.c:109: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).
      cur->len = strlen(tmp);
data/ldapjdk-4.21.0+dfsg1/ds-plugins/lulu.c:136:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  len = strlen(type);
data/ldapjdk-4.21.0+dfsg1/ds-plugins/url_filt.c:193: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).
  filter->dn_len = strlen(filter->dn);
data/ldapjdk-4.21.0+dfsg1/ds-plugins/url_filt.c:194: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).
  filter->search_len = strlen(filter->search);
data/ldapjdk-4.21.0+dfsg1/tools/ldap/unfoldldif/unfoldldif.c:51: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( buf );

ANALYSIS SUMMARY:

Hits = 635
Lines analyzed = 70601 in approximately 2.31 seconds (30515 lines/second)
Physical Source Lines of Code (SLOC) = 45713
Hits@level = [0] 835 [1] 187 [2] 282 [3]  24 [4] 138 [5]   4
Hits@level+ = [0+] 1470 [1+] 635 [2+] 448 [3+] 166 [4+] 142 [5+]   4
Hits/KSLOC@level+ = [0+] 32.1572 [1+] 13.891 [2+] 9.80028 [3+] 3.63135 [4+] 3.10634 [5+] 0.0875025
Dot directories skipped = 3 (--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.