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/nspr-4.29/nspr/config/gcc_hidden.h Examining data/nspr-4.29/nspr/config/libc_r.h Examining data/nspr-4.29/nspr/config/now.c Examining data/nspr-4.29/nspr/config/nsinstall.c Examining data/nspr-4.29/nspr/config/pathsub.h Examining data/nspr-4.29/nspr/config/prdepend.h Examining data/nspr-4.29/nspr/lib/ds/plarena.c Examining data/nspr-4.29/nspr/lib/ds/plarena.h Examining data/nspr-4.29/nspr/lib/ds/plarenas.h Examining data/nspr-4.29/nspr/lib/ds/plhash.c Examining data/nspr-4.29/nspr/lib/ds/plhash.h Examining data/nspr-4.29/nspr/lib/ds/plvrsion.c Examining data/nspr-4.29/nspr/lib/libc/include/plbase64.h Examining data/nspr-4.29/nspr/lib/libc/include/plerror.h Examining data/nspr-4.29/nspr/lib/libc/include/plgetopt.h Examining data/nspr-4.29/nspr/lib/libc/include/plstr.h Examining data/nspr-4.29/nspr/lib/libc/src/base64.c Examining data/nspr-4.29/nspr/lib/libc/src/plerror.c Examining data/nspr-4.29/nspr/lib/libc/src/plgetopt.c Examining data/nspr-4.29/nspr/lib/libc/src/plvrsion.c Examining data/nspr-4.29/nspr/lib/libc/src/strcase.c Examining data/nspr-4.29/nspr/lib/libc/src/strcat.c Examining data/nspr-4.29/nspr/lib/libc/src/strchr.c Examining data/nspr-4.29/nspr/lib/libc/src/strcmp.c Examining data/nspr-4.29/nspr/lib/libc/src/strcpy.c Examining data/nspr-4.29/nspr/lib/libc/src/strdup.c Examining data/nspr-4.29/nspr/lib/libc/src/strlen.c Examining data/nspr-4.29/nspr/lib/libc/src/strpbrk.c Examining data/nspr-4.29/nspr/lib/libc/src/strstr.c Examining data/nspr-4.29/nspr/lib/libc/src/strtok.c Examining data/nspr-4.29/nspr/lib/prstreams/plvrsion.c Examining data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp Examining data/nspr-4.29/nspr/lib/prstreams/prstrms.h Examining data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp Examining data/nspr-4.29/nspr/lib/tests/arena.c Examining data/nspr-4.29/nspr/lib/tests/base64t.c Examining data/nspr-4.29/nspr/lib/tests/getopt.c Examining data/nspr-4.29/nspr/lib/tests/string.c Examining data/nspr-4.29/nspr/pr/include/gencfg.c Examining data/nspr-4.29/nspr/pr/include/md/_aix.h Examining data/nspr-4.29/nspr/pr/include/md/_bsdi.h Examining data/nspr-4.29/nspr/pr/include/md/_darwin.h Examining data/nspr-4.29/nspr/pr/include/md/_freebsd.h Examining data/nspr-4.29/nspr/pr/include/md/_hpux.h Examining data/nspr-4.29/nspr/pr/include/md/_linux.h Examining data/nspr-4.29/nspr/pr/include/md/_netbsd.h Examining data/nspr-4.29/nspr/pr/include/md/_nspr_pthread.h Examining data/nspr-4.29/nspr/pr/include/md/_nto.h Examining data/nspr-4.29/nspr/pr/include/md/_openbsd.h Examining data/nspr-4.29/nspr/pr/include/md/_os2.h Examining data/nspr-4.29/nspr/pr/include/md/_os2_errors.h Examining data/nspr-4.29/nspr/pr/include/md/_pcos.h Examining data/nspr-4.29/nspr/pr/include/md/_pth.h Examining data/nspr-4.29/nspr/pr/include/md/_qnx.h Examining data/nspr-4.29/nspr/pr/include/md/_riscos.h Examining data/nspr-4.29/nspr/pr/include/md/_scoos.h Examining data/nspr-4.29/nspr/pr/include/md/_solaris.h Examining data/nspr-4.29/nspr/pr/include/md/_unix_errors.h Examining data/nspr-4.29/nspr/pr/include/md/_unixos.h Examining data/nspr-4.29/nspr/pr/include/md/_unixware.h Examining data/nspr-4.29/nspr/pr/include/md/_win32_errors.h Examining data/nspr-4.29/nspr/pr/include/md/_win95.h Examining data/nspr-4.29/nspr/pr/include/md/_winnt.h Examining data/nspr-4.29/nspr/pr/include/md/prosdep.h Examining data/nspr-4.29/nspr/pr/include/nspr.h Examining data/nspr-4.29/nspr/pr/include/obsolete/pralarm.h Examining data/nspr-4.29/nspr/pr/include/obsolete/probslet.h Examining data/nspr-4.29/nspr/pr/include/obsolete/protypes.h Examining data/nspr-4.29/nspr/pr/include/obsolete/prsem.h Examining data/nspr-4.29/nspr/pr/include/pratom.h Examining data/nspr-4.29/nspr/pr/include/prbit.h Examining data/nspr-4.29/nspr/pr/include/prclist.h Examining data/nspr-4.29/nspr/pr/include/prcmon.h Examining data/nspr-4.29/nspr/pr/include/prcountr.h Examining data/nspr-4.29/nspr/pr/include/prcvar.h Examining data/nspr-4.29/nspr/pr/include/prdtoa.h Examining data/nspr-4.29/nspr/pr/include/prenv.h Examining data/nspr-4.29/nspr/pr/include/prerr.h Examining data/nspr-4.29/nspr/pr/include/prerror.h Examining data/nspr-4.29/nspr/pr/include/prinet.h Examining data/nspr-4.29/nspr/pr/include/prinit.h Examining data/nspr-4.29/nspr/pr/include/prinrval.h Examining data/nspr-4.29/nspr/pr/include/prio.h Examining data/nspr-4.29/nspr/pr/include/pripcsem.h Examining data/nspr-4.29/nspr/pr/include/private/pprio.h Examining data/nspr-4.29/nspr/pr/include/private/pprmwait.h Examining data/nspr-4.29/nspr/pr/include/private/pprthred.h Examining data/nspr-4.29/nspr/pr/include/private/primpl.h Examining data/nspr-4.29/nspr/pr/include/private/prpriv.h Examining data/nspr-4.29/nspr/pr/include/prlink.h Examining data/nspr-4.29/nspr/pr/include/prlock.h Examining data/nspr-4.29/nspr/pr/include/prlog.h Examining data/nspr-4.29/nspr/pr/include/prlong.h Examining data/nspr-4.29/nspr/pr/include/prmem.h Examining data/nspr-4.29/nspr/pr/include/prmon.h Examining data/nspr-4.29/nspr/pr/include/prmwait.h Examining data/nspr-4.29/nspr/pr/include/prnetdb.h Examining data/nspr-4.29/nspr/pr/include/prolock.h Examining data/nspr-4.29/nspr/pr/include/prpdce.h Examining data/nspr-4.29/nspr/pr/include/prprf.h Examining data/nspr-4.29/nspr/pr/include/prproces.h Examining data/nspr-4.29/nspr/pr/include/prrng.h Examining data/nspr-4.29/nspr/pr/include/prrwlock.h Examining data/nspr-4.29/nspr/pr/include/prshm.h Examining data/nspr-4.29/nspr/pr/include/prshma.h Examining data/nspr-4.29/nspr/pr/include/prsystem.h Examining data/nspr-4.29/nspr/pr/include/prthread.h Examining data/nspr-4.29/nspr/pr/include/prtime.h Examining data/nspr-4.29/nspr/pr/include/prtpool.h Examining data/nspr-4.29/nspr/pr/include/prtrace.h Examining data/nspr-4.29/nspr/pr/include/prtypes.h Examining data/nspr-4.29/nspr/pr/include/prvrsion.h Examining data/nspr-4.29/nspr/pr/include/prwin16.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcascii.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcbase.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcbase.h Examining data/nspr-4.29/nspr/pr/src/cplus/rccv.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rccv.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcfileio.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcfileio.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcinrval.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcinrval.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcio.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcio.h Examining data/nspr-4.29/nspr/pr/src/cplus/rclock.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rclock.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcmon.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcnetdb.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcnetdb.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcnetio.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcnetio.h Examining data/nspr-4.29/nspr/pr/src/cplus/rcthread.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rcthread.h Examining data/nspr-4.29/nspr/pr/src/cplus/rctime.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/rctime.h Examining data/nspr-4.29/nspr/pr/src/cplus/tests/fileio.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/interval.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/switch.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/thread.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/time.cpp Examining data/nspr-4.29/nspr/pr/src/cplus/tests/tpd.cpp Examining data/nspr-4.29/nspr/pr/src/io/prdir.c Examining data/nspr-4.29/nspr/pr/src/io/prfdcach.c Examining data/nspr-4.29/nspr/pr/src/io/prfile.c Examining data/nspr-4.29/nspr/pr/src/io/prio.c Examining data/nspr-4.29/nspr/pr/src/io/priometh.c Examining data/nspr-4.29/nspr/pr/src/io/pripv6.c Examining data/nspr-4.29/nspr/pr/src/io/prlayer.c Examining data/nspr-4.29/nspr/pr/src/io/prlog.c Examining data/nspr-4.29/nspr/pr/src/io/prmapopt.c Examining data/nspr-4.29/nspr/pr/src/io/prmmap.c Examining data/nspr-4.29/nspr/pr/src/io/prmwait.c Examining data/nspr-4.29/nspr/pr/src/io/prpolevt.c Examining data/nspr-4.29/nspr/pr/src/io/prprf.c Examining data/nspr-4.29/nspr/pr/src/io/prscanf.c Examining data/nspr-4.29/nspr/pr/src/io/prsocket.c Examining data/nspr-4.29/nspr/pr/src/io/prstdio.c Examining data/nspr-4.29/nspr/pr/src/linking/prlink.c Examining data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c Examining data/nspr-4.29/nspr/pr/src/malloc/prmem.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2_errors.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2cv.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2gc.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2inrval.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2io.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2poll.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2rng.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2sem.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2sock.c Examining data/nspr-4.29/nspr/pr/src/md/os2/os2thred.c Examining data/nspr-4.29/nspr/pr/src/md/prosdep.c Examining data/nspr-4.29/nspr/pr/src/md/unix/aix.c Examining data/nspr-4.29/nspr/pr/src/md/unix/aixwrap.c Examining data/nspr-4.29/nspr/pr/src/md/unix/bsdi.c Examining data/nspr-4.29/nspr/pr/src/md/unix/darwin.c Examining data/nspr-4.29/nspr/pr/src/md/unix/dgux.c Examining data/nspr-4.29/nspr/pr/src/md/unix/freebsd.c Examining data/nspr-4.29/nspr/pr/src/md/unix/hpux.c Examining data/nspr-4.29/nspr/pr/src/md/unix/linux.c Examining data/nspr-4.29/nspr/pr/src/md/unix/netbsd.c Examining data/nspr-4.29/nspr/pr/src/md/unix/nto.c Examining data/nspr-4.29/nspr/pr/src/md/unix/openbsd.c Examining data/nspr-4.29/nspr/pr/src/md/unix/pthreads_user.c Examining data/nspr-4.29/nspr/pr/src/md/unix/qnx.c Examining data/nspr-4.29/nspr/pr/src/md/unix/riscos.c Examining data/nspr-4.29/nspr/pr/src/md/unix/scoos.c Examining data/nspr-4.29/nspr/pr/src/md/unix/solaris.c Examining data/nspr-4.29/nspr/pr/src/md/unix/unix.c Examining data/nspr-4.29/nspr/pr/src/md/unix/unix_errors.c Examining data/nspr-4.29/nspr/pr/src/md/unix/unixware.c Examining data/nspr-4.29/nspr/pr/src/md/unix/uxpoll.c Examining data/nspr-4.29/nspr/pr/src/md/unix/uxproces.c Examining data/nspr-4.29/nspr/pr/src/md/unix/uxrng.c Examining data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c Examining data/nspr-4.29/nspr/pr/src/md/unix/uxwrap.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntdllmn.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntgc.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntinrval.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntio.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntsec.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntsem.c Examining data/nspr-4.29/nspr/pr/src/md/windows/ntthread.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w32ipcsem.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w32poll.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w32rng.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w95cv.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w95dllmain.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w95io.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w95sock.c Examining data/nspr-4.29/nspr/pr/src/md/windows/w95thred.c Examining data/nspr-4.29/nspr/pr/src/md/windows/win32_errors.c Examining data/nspr-4.29/nspr/pr/src/memory/prseg.c Examining data/nspr-4.29/nspr/pr/src/memory/prshm.c Examining data/nspr-4.29/nspr/pr/src/memory/prshma.c Examining data/nspr-4.29/nspr/pr/src/misc/dtoa.c Examining data/nspr-4.29/nspr/pr/src/misc/pralarm.c Examining data/nspr-4.29/nspr/pr/src/misc/pratom.c Examining data/nspr-4.29/nspr/pr/src/misc/praton.c Examining data/nspr-4.29/nspr/pr/src/misc/prcountr.c Examining data/nspr-4.29/nspr/pr/src/misc/prdtoa.c Examining data/nspr-4.29/nspr/pr/src/misc/prenv.c Examining data/nspr-4.29/nspr/pr/src/misc/prerr.c Examining data/nspr-4.29/nspr/pr/src/misc/prerror.c Examining data/nspr-4.29/nspr/pr/src/misc/prerrortable.c Examining data/nspr-4.29/nspr/pr/src/misc/prinit.c Examining data/nspr-4.29/nspr/pr/src/misc/prinrval.c Examining data/nspr-4.29/nspr/pr/src/misc/pripc.c Examining data/nspr-4.29/nspr/pr/src/misc/pripcsem.c Examining data/nspr-4.29/nspr/pr/src/misc/prlog2.c Examining data/nspr-4.29/nspr/pr/src/misc/prlong.c Examining data/nspr-4.29/nspr/pr/src/misc/prnetdb.c Examining data/nspr-4.29/nspr/pr/src/misc/prolock.c Examining data/nspr-4.29/nspr/pr/src/misc/prrng.c Examining data/nspr-4.29/nspr/pr/src/misc/prsystem.c Examining data/nspr-4.29/nspr/pr/src/misc/prthinfo.c Examining data/nspr-4.29/nspr/pr/src/misc/prtime.c Examining data/nspr-4.29/nspr/pr/src/misc/prtpool.c Examining data/nspr-4.29/nspr/pr/src/misc/prtrace.c Examining data/nspr-4.29/nspr/pr/src/prvrsion.c Examining data/nspr-4.29/nspr/pr/src/pthreads/ptio.c Examining data/nspr-4.29/nspr/pr/src/pthreads/ptmisc.c Examining data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c Examining data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c Examining data/nspr-4.29/nspr/pr/src/threads/combined/prucpu.c Examining data/nspr-4.29/nspr/pr/src/threads/combined/prucv.c Examining data/nspr-4.29/nspr/pr/src/threads/combined/prulock.c Examining data/nspr-4.29/nspr/pr/src/threads/combined/prustack.c Examining data/nspr-4.29/nspr/pr/src/threads/combined/pruthr.c Examining data/nspr-4.29/nspr/pr/src/threads/prcmon.c Examining data/nspr-4.29/nspr/pr/src/threads/prcthr.c Examining data/nspr-4.29/nspr/pr/src/threads/prdump.c Examining data/nspr-4.29/nspr/pr/src/threads/prmon.c Examining data/nspr-4.29/nspr/pr/src/threads/prrwlock.c Examining data/nspr-4.29/nspr/pr/src/threads/prsem.c Examining data/nspr-4.29/nspr/pr/src/threads/prtpd.c Examining data/nspr-4.29/nspr/pr/tests/abstract.c Examining data/nspr-4.29/nspr/pr/tests/accept.c Examining data/nspr-4.29/nspr/pr/tests/acceptread.c Examining data/nspr-4.29/nspr/pr/tests/acceptreademu.c Examining data/nspr-4.29/nspr/pr/tests/addrstr.c Examining data/nspr-4.29/nspr/pr/tests/affinity.c Examining data/nspr-4.29/nspr/pr/tests/alarm.c Examining data/nspr-4.29/nspr/pr/tests/anonfm.c Examining data/nspr-4.29/nspr/pr/tests/append.c Examining data/nspr-4.29/nspr/pr/tests/atomic.c Examining data/nspr-4.29/nspr/pr/tests/attach.c Examining data/nspr-4.29/nspr/pr/tests/bigfile.c Examining data/nspr-4.29/nspr/pr/tests/bigfile2.c Examining data/nspr-4.29/nspr/pr/tests/bigfile3.c Examining data/nspr-4.29/nspr/pr/tests/bug1test.c Examining data/nspr-4.29/nspr/pr/tests/cleanup.c Examining data/nspr-4.29/nspr/pr/tests/cltsrv.c Examining data/nspr-4.29/nspr/pr/tests/concur.c Examining data/nspr-4.29/nspr/pr/tests/cvar.c Examining data/nspr-4.29/nspr/pr/tests/cvar2.c Examining data/nspr-4.29/nspr/pr/tests/dbmalloc.c Examining data/nspr-4.29/nspr/pr/tests/dbmalloc1.c Examining data/nspr-4.29/nspr/pr/tests/dceemu.c Examining data/nspr-4.29/nspr/pr/tests/depend.c Examining data/nspr-4.29/nspr/pr/tests/dll/mygetval.c Examining data/nspr-4.29/nspr/pr/tests/dll/mysetval.c Examining data/nspr-4.29/nspr/pr/tests/dlltest.c Examining data/nspr-4.29/nspr/pr/tests/dtoa.c Examining data/nspr-4.29/nspr/pr/tests/env.c Examining data/nspr-4.29/nspr/pr/tests/errcodes.c Examining data/nspr-4.29/nspr/pr/tests/errset.c Examining data/nspr-4.29/nspr/pr/tests/exit.c Examining data/nspr-4.29/nspr/pr/tests/fdcach.c Examining data/nspr-4.29/nspr/pr/tests/fileio.c Examining data/nspr-4.29/nspr/pr/tests/foreign.c Examining data/nspr-4.29/nspr/pr/tests/forktest.c Examining data/nspr-4.29/nspr/pr/tests/formattm.c Examining data/nspr-4.29/nspr/pr/tests/freeif.c Examining data/nspr-4.29/nspr/pr/tests/fsync.c Examining data/nspr-4.29/nspr/pr/tests/getai.c Examining data/nspr-4.29/nspr/pr/tests/gethost.c Examining data/nspr-4.29/nspr/pr/tests/getproto.c Examining data/nspr-4.29/nspr/pr/tests/i2l.c Examining data/nspr-4.29/nspr/pr/tests/initclk.c Examining data/nspr-4.29/nspr/pr/tests/inrval.c Examining data/nspr-4.29/nspr/pr/tests/instrumt.c Examining data/nspr-4.29/nspr/pr/tests/intrio.c Examining data/nspr-4.29/nspr/pr/tests/intrupt.c Examining data/nspr-4.29/nspr/pr/tests/io_timeout.c Examining data/nspr-4.29/nspr/pr/tests/io_timeoutk.c Examining data/nspr-4.29/nspr/pr/tests/io_timeoutu.c Examining data/nspr-4.29/nspr/pr/tests/ioconthr.c Examining data/nspr-4.29/nspr/pr/tests/ipv6.c Examining data/nspr-4.29/nspr/pr/tests/join.c Examining data/nspr-4.29/nspr/pr/tests/joinkk.c Examining data/nspr-4.29/nspr/pr/tests/joinku.c Examining data/nspr-4.29/nspr/pr/tests/joinuk.c Examining data/nspr-4.29/nspr/pr/tests/joinuu.c Examining data/nspr-4.29/nspr/pr/tests/layer.c Examining data/nspr-4.29/nspr/pr/tests/lazyinit.c Examining data/nspr-4.29/nspr/pr/tests/libfilename.c Examining data/nspr-4.29/nspr/pr/tests/lltest.c Examining data/nspr-4.29/nspr/pr/tests/lock.c Examining data/nspr-4.29/nspr/pr/tests/lockfile.c Examining data/nspr-4.29/nspr/pr/tests/logfile.c Examining data/nspr-4.29/nspr/pr/tests/logger.c Examining data/nspr-4.29/nspr/pr/tests/makedir.c Examining data/nspr-4.29/nspr/pr/tests/many_cv.c Examining data/nspr-4.29/nspr/pr/tests/mbcs.c Examining data/nspr-4.29/nspr/pr/tests/monref.c Examining data/nspr-4.29/nspr/pr/tests/multiacc.c Examining data/nspr-4.29/nspr/pr/tests/multiwait.c Examining data/nspr-4.29/nspr/pr/tests/nameshm1.c Examining data/nspr-4.29/nspr/pr/tests/nbconn.c Examining data/nspr-4.29/nspr/pr/tests/nblayer.c Examining data/nspr-4.29/nspr/pr/tests/nonblock.c Examining data/nspr-4.29/nspr/pr/tests/ntioto.c Examining data/nspr-4.29/nspr/pr/tests/ntoh.c Examining data/nspr-4.29/nspr/pr/tests/obsints.c Examining data/nspr-4.29/nspr/pr/tests/op_2long.c Examining data/nspr-4.29/nspr/pr/tests/op_excl.c Examining data/nspr-4.29/nspr/pr/tests/op_filnf.c Examining data/nspr-4.29/nspr/pr/tests/op_filok.c Examining data/nspr-4.29/nspr/pr/tests/op_noacc.c Examining data/nspr-4.29/nspr/pr/tests/op_nofil.c Examining data/nspr-4.29/nspr/pr/tests/openfile.c Examining data/nspr-4.29/nspr/pr/tests/parent.c Examining data/nspr-4.29/nspr/pr/tests/parsetm.c Examining data/nspr-4.29/nspr/pr/tests/peek.c Examining data/nspr-4.29/nspr/pr/tests/perf.c Examining data/nspr-4.29/nspr/pr/tests/pipeping.c Examining data/nspr-4.29/nspr/pr/tests/pipeping2.c Examining data/nspr-4.29/nspr/pr/tests/pipepong.c Examining data/nspr-4.29/nspr/pr/tests/pipepong2.c Examining data/nspr-4.29/nspr/pr/tests/pipeself.c Examining data/nspr-4.29/nspr/pr/tests/poll_er.c Examining data/nspr-4.29/nspr/pr/tests/poll_nm.c Examining data/nspr-4.29/nspr/pr/tests/poll_to.c Examining data/nspr-4.29/nspr/pr/tests/pollable.c Examining data/nspr-4.29/nspr/pr/tests/prfdbl.c Examining data/nspr-4.29/nspr/pr/tests/prftest.c Examining data/nspr-4.29/nspr/pr/tests/prftest1.c Examining data/nspr-4.29/nspr/pr/tests/prftest2.c Examining data/nspr-4.29/nspr/pr/tests/prfz.c Examining data/nspr-4.29/nspr/pr/tests/primblok.c Examining data/nspr-4.29/nspr/pr/tests/priotest.c Examining data/nspr-4.29/nspr/pr/tests/provider.c Examining data/nspr-4.29/nspr/pr/tests/prpoll.c Examining data/nspr-4.29/nspr/pr/tests/prpollml.c Examining data/nspr-4.29/nspr/pr/tests/prselect.c Examining data/nspr-4.29/nspr/pr/tests/prttools.h Examining data/nspr-4.29/nspr/pr/tests/pushtop.c Examining data/nspr-4.29/nspr/pr/tests/randseed.c Examining data/nspr-4.29/nspr/pr/tests/ranfile.c Examining data/nspr-4.29/nspr/pr/tests/reinit.c Examining data/nspr-4.29/nspr/pr/tests/rmdir.c Examining data/nspr-4.29/nspr/pr/tests/rwlockrank.c Examining data/nspr-4.29/nspr/pr/tests/rwlocktest.c Examining data/nspr-4.29/nspr/pr/tests/sel_spd.c Examining data/nspr-4.29/nspr/pr/tests/selct_er.c Examining data/nspr-4.29/nspr/pr/tests/selct_nm.c Examining data/nspr-4.29/nspr/pr/tests/selct_to.c Examining data/nspr-4.29/nspr/pr/tests/select2.c Examining data/nspr-4.29/nspr/pr/tests/selintr.c Examining data/nspr-4.29/nspr/pr/tests/sem.c Examining data/nspr-4.29/nspr/pr/tests/sema.c Examining data/nspr-4.29/nspr/pr/tests/semaerr.c Examining data/nspr-4.29/nspr/pr/tests/semaerr1.c Examining data/nspr-4.29/nspr/pr/tests/semaping.c Examining data/nspr-4.29/nspr/pr/tests/semapong.c Examining data/nspr-4.29/nspr/pr/tests/sendzlf.c Examining data/nspr-4.29/nspr/pr/tests/server_test.c Examining data/nspr-4.29/nspr/pr/tests/servr_kk.c Examining data/nspr-4.29/nspr/pr/tests/servr_ku.c Examining data/nspr-4.29/nspr/pr/tests/servr_uk.c Examining data/nspr-4.29/nspr/pr/tests/servr_uu.c Examining data/nspr-4.29/nspr/pr/tests/short_thread.c Examining data/nspr-4.29/nspr/pr/tests/sigpipe.c Examining data/nspr-4.29/nspr/pr/tests/sleep.c Examining data/nspr-4.29/nspr/pr/tests/socket.c Examining data/nspr-4.29/nspr/pr/tests/sockopt.c Examining data/nspr-4.29/nspr/pr/tests/sockping.c Examining data/nspr-4.29/nspr/pr/tests/sockpong.c Examining data/nspr-4.29/nspr/pr/tests/sprintf.c Examining data/nspr-4.29/nspr/pr/tests/stack.c Examining data/nspr-4.29/nspr/pr/tests/stat.c Examining data/nspr-4.29/nspr/pr/tests/stdio.c Examining data/nspr-4.29/nspr/pr/tests/str2addr.c Examining data/nspr-4.29/nspr/pr/tests/strod.c Examining data/nspr-4.29/nspr/pr/tests/suspend.c Examining data/nspr-4.29/nspr/pr/tests/switch.c Examining data/nspr-4.29/nspr/pr/tests/system.c Examining data/nspr-4.29/nspr/pr/tests/testbit.c Examining data/nspr-4.29/nspr/pr/tests/testfile.c Examining data/nspr-4.29/nspr/pr/tests/threads.c Examining data/nspr-4.29/nspr/pr/tests/thrpool_client.c Examining data/nspr-4.29/nspr/pr/tests/thrpool_server.c Examining data/nspr-4.29/nspr/pr/tests/thruput.c Examining data/nspr-4.29/nspr/pr/tests/time.c Examining data/nspr-4.29/nspr/pr/tests/timemac.c Examining data/nspr-4.29/nspr/pr/tests/timetest.c Examining data/nspr-4.29/nspr/pr/tests/tmoacc.c Examining data/nspr-4.29/nspr/pr/tests/tmocon.c Examining data/nspr-4.29/nspr/pr/tests/tpd.c Examining data/nspr-4.29/nspr/pr/tests/udpsrv.c Examining data/nspr-4.29/nspr/pr/tests/ut_ttools.h Examining data/nspr-4.29/nspr/pr/tests/vercheck.c Examining data/nspr-4.29/nspr/pr/tests/version.c Examining data/nspr-4.29/nspr/pr/tests/writev.c Examining data/nspr-4.29/nspr/pr/tests/xnotify.c Examining data/nspr-4.29/nspr/pr/tests/y2k.c Examining data/nspr-4.29/nspr/pr/tests/y2ktmo.c Examining data/nspr-4.29/nspr/pr/tests/yield.c Examining data/nspr-4.29/nspr/pr/tests/zerolen.c Examining data/nspr-4.29/nspr/tools/httpget.c Examining data/nspr-4.29/nspr/tools/tail.c FINAL RESULTS: data/nspr-4.29/nspr/config/nsinstall.c:242:37: [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/nspr-4.29/nspr/config/nsinstall.c:277:18: [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/nspr-4.29/nspr/config/nsinstall.c:338:17: [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/nspr-4.29/nspr/config/libc_r.h:81: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/nspr-4.29/nspr/config/nsinstall.c:230:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(toname, "%s/%s", todir, base); data/nspr-4.29/nspr/config/nsinstall.c:254:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(linkname, "%s/%s", linkprefix, name); data/nspr-4.29/nspr/config/nsinstall.c:262:25: [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/nspr-4.29/nspr/config/nsinstall.c:301:54: [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/nspr-4.29/nspr/config/nsinstall.c:381: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/nspr-4.29/nspr/config/nsinstall.c:468: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/nspr-4.29/nspr/config/nsinstall.c:510:22: [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/nspr-4.29/nspr/config/nsinstall.c:522:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(outpath + len, "%s/", buf); data/nspr-4.29/nspr/config/nsinstall.c:536: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/nspr-4.29/nspr/config/nsinstall.c:549:13: [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/nspr-4.29/nspr/config/nsinstall.c:559: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/nspr-4.29/nspr/lib/libc/src/strcat.c:16:12: [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). return strcat(dest, src); data/nspr-4.29/nspr/lib/libc/src/strcpy.c:16: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(dest, src); data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp:49: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(fname1, arg->mytag); data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp:50: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(fname2, arg->mytag); data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:174:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(filename, "%ssg%04p.dat", baseName, this); data/nspr-4.29/nspr/pr/src/io/prlayer.c:629: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(name, layer_name); data/nspr-4.29/nspr/pr/src/io/prprf.c:22: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/nspr-4.29/nspr/pr/src/io/prprf.c:22: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/nspr-4.29/nspr/pr/src/io/prprf.c:341:5: [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(fout, sizeof(fout), fin, d); data/nspr-4.29/nspr/pr/src/linking/prlink.c:268:13: [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, ev); data/nspr-4.29/nspr/pr/src/linking/prlink.c:967: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(result, dli.dli_fname); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1018:17: [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, infop->ldinfo_filename); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1039:17: [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, desc.filename); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1056:17: [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, desc.filename); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1082: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(result, module_name); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1135: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(result, module_name); data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:60:25: [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. # define TRACE(foo) printf foo data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:165:9: [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. access |= OPEN_FLAGS_WRITE_THROUGH; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:169:9: [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. access |= OPEN_ACCESS_READONLY; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:172:9: [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. access |= OPEN_ACCESS_WRITEONLY; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:175:9: [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. access |= OPEN_ACCESS_READWRITE; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:210:29: [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. access, /* Open mode and rights */ data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:221:26: [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. access, /* Open mode and rights */ data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:590:13: [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(newfn, fn); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:770:18: [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. rv = access(name, 02); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:773:18: [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. rv = access(name, 04); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:776:20: [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. return access(name, 00); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:122: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(*cmdLine, *arg); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:301:21: [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(pszEXEName, pszComSpec); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:333:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(pszFormatResult, pszFormatString, path, cmdLine); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:336: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(pszEXEName, path); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:377:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pszCmdLine, "%s%c%s%c", pszEXEName, '\0', data/nspr-4.29/nspr/pr/src/md/unix/unix.c:211:14: [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 (0 == access(to, F_OK)) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:248:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. rv = access(name, amode); data/nspr-4.29/nspr/pr/src/md/unix/uxproces.c:318:19: [4] (shell) execv: 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. (void)execv(path, argv); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:78: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( shm->ipcname, ipcname ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:316: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( shm->ipcname, ipcname ); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2128:9: [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. access |= GENERIC_READ; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2131:9: [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. access |= GENERIC_WRITE; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2151:23: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2190:9: [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. access |= GENERIC_READ; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2193:9: [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. access |= GENERIC_WRITE; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2222:23: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2835: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(filename, name); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2985:13: [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(newfn, fn); data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c:73: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( shm->ipcname, ipcname ); data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c:182:27: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:156:9: [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. access |= GENERIC_READ; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:159:9: [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. access |= GENERIC_WRITE; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:182:24: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:223:9: [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. access |= GENERIC_READ; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:226:9: [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. access |= GENERIC_WRITE; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:249:24: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:483: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(filename, name); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:633:13: [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(newfn, fn); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1092:9: [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. access |= GENERIC_READ; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1095:9: [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. access |= GENERIC_WRITE; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1118:24: [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. access, data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1147:5: [4] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. wcscpy(filename, name); data/nspr-4.29/nspr/pr/src/misc/dtoa.c:1840:13: [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*)decimalpoint_cache, (CONST char*)s0); data/nspr-4.29/nspr/pr/src/misc/pratom.c:320: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(stack->prstk_name, stack_name); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:163: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( qnp->name, qName ); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:185: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( rnp->name, rName ); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:186: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( rnp->desc, description ); data/nspr-4.29/nspr/pr/src/misc/prerrortable.c:126: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(buffer, error_table_name (table_num)); data/nspr-4.29/nspr/pr/src/misc/prinit.c:534: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(attr->currentDirectory, dir); data/nspr-4.29/nspr/pr/src/misc/pripc.c:87: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(result, name); data/nspr-4.29/nspr/pr/src/misc/prtrace.c:240: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( qnp->name, qName ); data/nspr-4.29/nspr/pr/src/misc/prtrace.c:262: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( rnp->name, rName ); data/nspr-4.29/nspr/pr/src/misc/prtrace.c:263: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( rnp->desc, description ); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:3897:19: [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. rv = access(name, R_OK); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:3900:18: [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. rv = access(name, W_OK); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:3904:18: [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. rv = access(name, F_OK); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:3948:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. rv = access(to, F_OK); data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:53:13: [4] (shell) system: 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. PRInt32 system, user; /* a count of the two different types */ data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1163:26: [4] (shell) system: 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. if (0 == pt_book.system) data/nspr-4.29/nspr/pr/src/threads/prrwlock.c:120: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(rwlock->rw_name, lock_name); data/nspr-4.29/nspr/pr/tests/anonfm.c:291:21: [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(dirName, opt->value); data/nspr-4.29/nspr/pr/tests/bigfile2.c:51: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(buf, MESSAGE); data/nspr-4.29/nspr/pr/tests/bigfile3.c:53: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(buf, MESSAGE); data/nspr-4.29/nspr/pr/tests/cltsrv.c:178:45: [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. if (debug_mode || (p <= verbosity)) printf a; \ data/nspr-4.29/nspr/pr/tests/cvar2.c:33:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/env.c:123:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( envBuf, ENVNAME "=" ENVVALUE ); data/nspr-4.29/nspr/pr/tests/env.c:268:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( envBuf, ENVNAME ); data/nspr-4.29/nspr/pr/tests/env.c:296:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( envBuf, ENVNAME "=" ENVVALUE ); data/nspr-4.29/nspr/pr/tests/env.c:311:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( envBuf, ENVNAME "=" ); data/nspr-4.29/nspr/pr/tests/env.c:338:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf( envBuf, ENVNAME "999=" ); data/nspr-4.29/nspr/pr/tests/mbcs.c:76:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( file, "%s/%s", dir, dirEntry->name ); data/nspr-4.29/nspr/pr/tests/mbcs.c:96:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( nextDir, "%s/%s", dir, dirEntry->name ); data/nspr-4.29/nspr/pr/tests/nameshm1.c:553:21: [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( optName, opt->value ); data/nspr-4.29/nspr/pr/tests/nbconn.c:43:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/perf.c:14:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/provider.c:178:45: [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. if (debug_mode || (p <= verbosity)) printf a; \ data/nspr-4.29/nspr/pr/tests/ranfile.c:133:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void)sprintf(filename, "%ssg%04ld.dat", baseName, cd->id); data/nspr-4.29/nspr/pr/tests/server_test.c:62:17: [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. #define DPRINTF printf data/nspr-4.29/nspr/pr/tests/servr_kk.c:58:17: [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. #define DPRINTF printf data/nspr-4.29/nspr/pr/tests/servr_ku.c:58:17: [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. #define DPRINTF printf data/nspr-4.29/nspr/pr/tests/servr_uk.c:58:17: [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. #define DPRINTF printf data/nspr-4.29/nspr/pr/tests/servr_uu.c:58:17: [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. #define DPRINTF printf data/nspr-4.29/nspr/pr/tests/short_thread.c:16:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/socket.c:41:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/sprintf.c:45:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbuf, pattern, i); data/nspr-4.29/nspr/pr/tests/sprintf.c:96:21: [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(fmt, signs[s]); data/nspr-4.29/nspr/pr/tests/sprintf.c:99:21: [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(fmt, precs[p]); data/nspr-4.29/nspr/pr/tests/sprintf.c:102:21: [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(fmt, formats[f]); data/nspr-4.29/nspr/pr/tests/sprintf.c:129:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbuf, spattern, l); data/nspr-4.29/nspr/pr/tests/sprintf.c:194:21: [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(fmt, signs[s]); data/nspr-4.29/nspr/pr/tests/sprintf.c:197:21: [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(fmt, precs[p]); data/nspr-4.29/nspr/pr/tests/sprintf.c:199:17: [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(sfmt, fmt); data/nspr-4.29/nspr/pr/tests/sprintf.c:201:21: [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(fmt, formats[f]); data/nspr-4.29/nspr/pr/tests/sprintf.c:204:21: [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(sfmt, sformats[f]); data/nspr-4.29/nspr/pr/tests/sprintf.c:232:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbuf, spattern, l); data/nspr-4.29/nspr/pr/tests/sprintf.c:336:21: [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(fmt, signs[s]); data/nspr-4.29/nspr/pr/tests/sprintf.c:339:21: [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(fmt, precs[p]); data/nspr-4.29/nspr/pr/tests/sprintf.c:341:17: [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(sfmt, fmt); data/nspr-4.29/nspr/pr/tests/sprintf.c:343:21: [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(fmt, formats[f]); data/nspr-4.29/nspr/pr/tests/sprintf.c:346:21: [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(sfmt, sformats[f]); data/nspr-4.29/nspr/pr/tests/sprintf.c:378:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(sbuf, pattern, ss); data/nspr-4.29/nspr/pr/tests/sprintf.c:432:21: [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(fmt+strlen(fmt), signs[s]); data/nspr-4.29/nspr/pr/tests/sprintf.c:435:21: [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(fmt+strlen(fmt), precs[p]); data/nspr-4.29/nspr/pr/tests/sprintf.c:438:21: [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(fmt+strlen(fmt), formats[f]); data/nspr-4.29/nspr/pr/tests/testbit.c:14:26: [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. #define ErrorReport(x) { printf((x)); failed = 1; } data/nspr-4.29/nspr/pr/tests/testfile.c:41:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/testfile.c:379: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(tmpname,pathname); data/nspr-4.29/nspr/pr/tests/testfile.c:432: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:434: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(pathname, FILE_NAME); data/nspr-4.29/nspr/pr/tests/testfile.c:631: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:633: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(pathname, FILE_NAME); data/nspr-4.29/nspr/pr/tests/testfile.c:638:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pathname + path_len,"%d%s",i,""); data/nspr-4.29/nspr/pr/tests/testfile.c:656: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:658: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(pathname, HIDDEN_FILE_NAME); data/nspr-4.29/nspr/pr/tests/testfile.c:744: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:746: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(pathname, dirEntry->name); data/nspr-4.29/nspr/pr/tests/testfile.c:799: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:801: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(pathname, HIDDEN_FILE_NAME); data/nspr-4.29/nspr/pr/tests/testfile.c:812: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(renamename, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:855: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(pathname, TEST_DIR); data/nspr-4.29/nspr/pr/tests/testfile.c:857: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(pathname, FILE_NAME); data/nspr-4.29/nspr/pr/tests/testfile.c:862:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(pathname + path_len,"%d%s",i,""); data/nspr-4.29/nspr/pr/tests/thrpool_client.c:42:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/thrpool_server.c:49:37: [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. #define DPRINTF(arg) if (_debug_on) printf arg data/nspr-4.29/nspr/pr/tests/timetest.c:127: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(timeString, buf); data/nspr-4.29/nspr/pr/tests/timetest.c:131: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(timeString, buf); data/nspr-4.29/nspr/pr/tests/udpsrv.c:100:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( mbuf, "ListNetAddr: %s family: %d, port: %d, ip: %8.8X\n", data/nspr-4.29/nspr/config/nsinstall.c:146: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/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:364:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:375:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:383:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:391:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:426:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:437:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:445:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:453:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:488:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:499:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:507:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:515:9: [3] (random) setstate: 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. setstate(failbit); data/nspr-4.29/nspr/lib/tests/arena.c:355:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand( (unsigned)time( NULL ) ); /* seed random number generator */ data/nspr-4.29/nspr/pr/include/md/_pcos.h:24: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 **argv, char *spec); data/nspr-4.29/nspr/pr/include/md/_unixos.h:266:33: [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. #define _MD_GET_ENV getenv data/nspr-4.29/nspr/pr/include/md/_win95.h:390:39: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex)) data/nspr-4.29/nspr/pr/include/md/_win95.h:391:40: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define _MD_TEST_AND_LOCK(lock) (EnterCriticalSection(&((lock)->mutex)),0) data/nspr-4.29/nspr/pr/include/md/_winnt.h:396:40: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define _MD_NEW_LOCK(lock) (InitializeCriticalSection(&((lock)->mutex)),PR_SUCCESS) data/nspr-4.29/nspr/pr/include/md/_winnt.h:399:39: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define _MD_LOCK(lock) EnterCriticalSection(&((lock)->mutex)) data/nspr-4.29/nspr/pr/include/md/_winnt.h:410:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&((lock)->mutex)); \ data/nspr-4.29/nspr/pr/include/prwin16.h:80:27: [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. void * (PR_CALLBACK *getenv)( const char *name); data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:112:34: [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. LL_USHR(shift, *((PRUint64*)&random), 16); data/nspr-4.29/nspr/pr/src/linking/prlink.c:247:10: [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. ev = getenv("LD_LIBRARY_PATH"); data/nspr-4.29/nspr/pr/src/linking/prlink.c:260:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ev = getenv("LD_LIBRARY_PATH"); data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:423:12: [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. for (p=getenv("MALLOC_OPTIONS"); p && *p; p++) { data/nspr-4.29/nspr/pr/src/malloc/prmem.c:159:24: [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. } else if ((envp = getenv("NSPR_USE_ZONE_ALLOCATOR")) != NULL) { data/nspr-4.29/nspr/pr/src/md/os2/os2inrval.c:25:17: [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 ((envp = getenv("NSPR_OS2_NO_HIRES_TIMER")) != NULL) { data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:27:12: [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. return getenv(name); data/nspr-4.29/nspr/pr/src/md/unix/aix.c:88: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 (evp = getenv("NSPR_AIX_SEND_FILE_USE_DISABLED")) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2055:17: [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 ((eval = getenv("NSPR_NOCLOCK")) != NULL) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2793:9: [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 (getenv("NSPR_SIGSEGV_HANDLE")) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2800:9: [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 (getenv("NSPR_SIGABRT_HANDLE")) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2807:9: [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 (getenv("NSPR_SIGBUS_HANDLE")) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2864:9: [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 (getenv("NSPR_NO_MMAP")) { data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:17:12: [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. return getenv(name); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:147:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&calibration.calibration_lock); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:148:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(&calibration.data_lock); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:207:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&calibration.calibration_lock); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:208:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&calibration.data_lock); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:246:13: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&calibration.data_lock); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:695:14: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. retVal = CreateProcess(NULL, data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:695:14: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. retVal = CreateProcess(NULL, data/nspr-4.29/nspr/pr/src/md/windows/ntsec.c:210:24: [3] (misc) AddAccessAllowedAce: This doesn't set the inheritance bits in the access control entry (ACE) header (CWE-732). Make sure that you set inheritance by hand if you wish it to inherit. if (accessMask && !AddAccessAllowedAce(pACL, ACL_REVISION, accessMask, data/nspr-4.29/nspr/pr/src/md/windows/ntsec.c:225:24: [3] (misc) AddAccessAllowedAce: This doesn't set the inheritance bits in the access control entry (ACE) header (CWE-732). Make sure that you set inheritance by hand if you wish it to inherit. if (accessMask && !AddAccessAllowedAce(pACL, ACL_REVISION, accessMask, data/nspr-4.29/nspr/pr/src/md/windows/ntsec.c:240:24: [3] (misc) AddAccessAllowedAce: This doesn't set the inheritance bits in the access control entry (ACE) header (CWE-732). Make sure that you set inheritance by hand if you wish it to inherit. if (accessMask && !AddAccessAllowedAce(pACL, ACL_REVISION, accessMask, data/nspr-4.29/nspr/pr/src/md/windows/w95cv.c:254:5: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(&(lock->mutex)); data/nspr-4.29/nspr/pr/src/misc/pratom.c:87:18: [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 (((eval = getenv("NSPR_ATOMIC_HASH_LOCKS")) != NULL) && data/nspr-4.29/nspr/pr/src/misc/prinit.c:132:23: [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. } else if (envp = getenv("NSPR_NATIVE_THREADS_ONLY")) { data/nspr-4.29/nspr/pr/tests/dbmalloc.c:247:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(0)); data/nspr-4.29/nspr/pr/tests/ranfile.c:93:34: [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. LL_USHR(shift, *((PRUint64*)&random), 16); data/nspr-4.29/nspr/pr/tests/sel_spd.c:431:20: [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:s:i:t:v")) != EOF) { data/nspr-4.29/nspr/pr/tests/testfile.c:904: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, "d")) != EOF) { data/nspr-4.29/nspr/pr/tests/tmoacc.c:38:12: [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. PRBool random; data/nspr-4.29/nspr/pr/tests/tmoacc.c:48:17: [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. if (shared->random) data/nspr-4.29/nspr/pr/tests/tmoacc.c:54:35: [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. timeout = (3 * quarter) + random; /* [75..125)% */ data/nspr-4.29/nspr/pr/tests/tmocon.c:76:12: [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. PRBool random; data/nspr-4.29/nspr/pr/tests/tmocon.c:90:17: [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. if (shared->random) data/nspr-4.29/nspr/pr/tests/tmocon.c:94:37: [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. timeout = (((3 * quarter) + random) >> 2) + quarter; /* [75..125)% */ data/nspr-4.29/nspr/config/libc_r.h:40: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/nspr-4.29/nspr/config/libc_r.h: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 r_asctime_r[26] data/nspr-4.29/nspr/config/libc_r.h:55: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/nspr-4.29/nspr/config/libc_r.h:91: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/nspr-4.29/nspr/config/nsinstall.c:136: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/nspr-4.29/nspr/config/nsinstall.c:297:22: [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/nspr-4.29/nspr/config/nsinstall.c:304:20: [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/nspr-4.29/nspr/config/nsinstall.c:498: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/nspr-4.29/nspr/config/nsinstall.c:518:13: [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/nspr-4.29/nspr/config/nsinstall.c:533: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/nspr-4.29/nspr/config/nsinstall.c:555:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cp, "../", 3); data/nspr-4.29/nspr/lib/ds/plarena.c:171:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newp, p, size); data/nspr-4.29/nspr/lib/libc/src/strdup.c:27:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(rv, s, n); data/nspr-4.29/nspr/lib/libc/src/strdup.c:55:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy(rv, s, l); data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:74:23: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). PRfilebuf *PRfilebuf::open( data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:363:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!_filebuf.open(name, flags | in, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:372:18: [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). void PRifstream::open(const char *name, openmode flags, PRIntn mode) data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:374:32: [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 (is_open() || !_filebuf.open(name, flags | in, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:425:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!_filebuf.open(name, flags | out, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:434:18: [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). void PRofstream::open(const char *name, openmode flags, PRIntn mode) data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:436:32: [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 (is_open() || !_filebuf.open(name, flags | out, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:487:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!_filebuf.open(name, flags | in | out, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:496:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void PRfstream::open(const char *name, openmode flags, PRIntn mode) data/nspr-4.29/nspr/lib/prstreams/prstrms.cpp:498:32: [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 (is_open() || !_filebuf.open(name, flags | in | out, mode)) { data/nspr-4.29/nspr/lib/prstreams/prstrms.h:41:16: [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). PRfilebuf *open( data/nspr-4.29/nspr/lib/prstreams/prstrms.h:95:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(const char *name, openmode flags = in, PRIntn mode = 0); data/nspr-4.29/nspr/lib/prstreams/prstrms.h:120:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(const char *name, openmode flags = out, PRIntn mode = 0); data/nspr-4.29/nspr/lib/prstreams/prstrms.h:145:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). void open(const char *name, openmode flags = in | out, PRIntn mode = 0); data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp: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 fname1[256]; data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp:47: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 fname2[256]; data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp:124: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[1024]; data/nspr-4.29/nspr/lib/tests/arena.c:325:28: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). arenaMin = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:328:28: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). arenaMax = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:331:27: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). poolMin = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:334:27: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). poolMax = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:337:36: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). stressIterations = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:340:28: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). maxAlloc = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/arena.c:343:33: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). stressThreads = atol( opt->value ); data/nspr-4.29/nspr/lib/tests/base64t.c:18: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:19: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:20: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:62: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:63: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:113: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:114: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:115: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2168: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2201: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2202: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2247: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2248: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2300: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2301: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2391: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2392: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2393: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2435: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2436: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2437: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2479: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2480: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2481: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2530: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2531: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2532: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2581: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2582: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2583: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 result[ 8 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2638: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2686: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 buffer[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2687: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2742: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2743: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2788: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2789: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2834: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2835: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2887: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2888: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2940: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 plain[ 4 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:2941: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 cypher[ 5 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3034: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 buffer[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3087: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3152: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3200: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 buffer[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3201: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 result[ 4096 ]; data/nspr-4.29/nspr/lib/tests/base64t.c:3290: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 buffer[ 4096 ]; data/nspr-4.29/nspr/lib/tests/string.c:95: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 buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:125:32: [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. const char *b = (const char *)array[i].dest; data/nspr-4.29/nspr/lib/tests/string.c:164: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 buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:292: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 buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:570: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. char buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:684: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. char buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:816: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. char buffer[ 1024 ]; data/nspr-4.29/nspr/lib/tests/string.c:3035: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 string[ 1024 ]; data/nspr-4.29/nspr/pr/include/gencfg.c:152: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. char c[4]; data/nspr-4.29/nspr/pr/include/gencfg.c:169: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. char c[4]; data/nspr-4.29/nspr/pr/include/gencfg.c:199:23: [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(!(stream = fopen ( *argv, "wt" ))) { data/nspr-4.29/nspr/pr/include/md/_unixos.h:584: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 st_fstype[_ST_FSTYPSZ]; data/nspr-4.29/nspr/pr/include/prio.h:148: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. char data[14]; /* raw address data */ data/nspr-4.29/nspr/pr/include/prio.h:154: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. char pad[8]; data/nspr-4.29/nspr/pr/include/prio.h:167: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. char path[108]; /* null-terminated pathname */ data/nspr-4.29/nspr/pr/include/prio.h:170: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. char path[104]; /* null-terminated pathname */ data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:168: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 filename[30]; data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:341: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). limit = atoi(opt->value); data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:344: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). threads = atoi(opt->value); data/nspr-4.29/nspr/pr/src/cplus/tests/ranfile.cpp:347:37: [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_virtual_procs = atoi(opt->value); data/nspr-4.29/nspr/pr/src/cplus/tests/switch.cpp:124: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). loop_limit = atoi(opt->value); data/nspr-4.29/nspr/pr/src/cplus/tests/switch.cpp:127:32: [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). thread_limit = atoi(opt->value); data/nspr-4.29/nspr/pr/src/cplus/tests/switch.cpp:130:31: [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). concurrency = atoi(opt->value); data/nspr-4.29/nspr/pr/src/io/prfdcach.c:209:34: [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). _pr_fd_cache.limit_low = atoi(low); data/nspr-4.29/nspr/pr/src/io/prfdcach.c:212:35: [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). _pr_fd_cache.limit_high = atoi(high); data/nspr-4.29/nspr/pr/src/io/priometh.c:288:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*raddr, &remote, PR_NETADDR_SIZE(&remote)); data/nspr-4.29/nspr/pr/src/io/pripv6.c:34:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) &dst_v4addr->inet.ip, srcp + 12, 4); data/nspr-4.29/nspr/pr/src/io/pripv6.c:62:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dstp + 12,(char *) &src_v4addr->inet.ip, 4); data/nspr-4.29/nspr/pr/src/io/prlayer.c:669:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/nspr-4.29/nspr/pr/src/io/prlog.c:74:15: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int len = MultiByteToWideChar(CP_ACP, 0, msg, -1, 0, 0); data/nspr-4.29/nspr/pr/src/io/prlog.c:76:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, msg, -1, wMsg, len); data/nspr-4.29/nspr/pr/src/io/prlog.c:193: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. char module[64]; /* Security-Critical: If you change this data/nspr-4.29/nspr/pr/src/io/prlog.c:318: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. char module[64]; /* Security-Critical: If you change this data/nspr-4.29/nspr/pr/src/io/prlog.c:387:22: [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). newLogFile = fopen(file, mode); data/nspr-4.29/nspr/pr/src/io/prlog.c:445: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[LINE_BUF_SIZE]; data/nspr-4.29/nspr/pr/src/io/prlog.c:506:13: [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 eol[2]; data/nspr-4.29/nspr/pr/src/io/prlog.c:529:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(logp, line, nb); data/nspr-4.29/nspr/pr/src/io/prpolevt.c:208: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/nspr-4.29/nspr/pr/src/io/prprf.c:232: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 cvtbuf[100]; data/nspr-4.29/nspr/pr/src/io/prprf.c:272: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 cvtbuf[100]; data/nspr-4.29/nspr/pr/src/io/prprf.c:319: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 fin[20]; data/nspr-4.29/nspr/pr/src/io/prprf.c:320: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 fout[300]; data/nspr-4.29/nspr/pr/src/io/prprf.c:327:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fin, fmt0, amount); data/nspr-4.29/nspr/pr/src/io/prprf.c:712: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 pattern[20]; data/nspr-4.29/nspr/pr/src/io/prprf.c:951:25: [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( &pattern[1], dolPt, i ); data/nspr-4.29/nspr/pr/src/io/prscanf.c:196: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[FMAX + 1], *p; data/nspr-4.29/nspr/pr/src/io/prscanf.c:306: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[FMAX + 1], *p; data/nspr-4.29/nspr/pr/src/io/prsocket.c:150:40: [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. iov_copy[0].iov_base = &(((char *)iov[index].iov_base)[tmp_out]); data/nspr-4.29/nspr/pr/src/io/prsocket.c:468:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&fd2->secret->md.peer_addr, addr, al); data/nspr-4.29/nspr/pr/src/io/prsocket.c:530:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&fd2->secret->md.peer_addr, addr, al); data/nspr-4.29/nspr/pr/src/io/prsocket.c:629:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, fd->secret->peekBuffer, rv); data/nspr-4.29/nspr/pr/src/io/prsocket.c:671:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fd->secret->peekBuffer, buf, rv); data/nspr-4.29/nspr/pr/src/io/prsocket.c:1007:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(*nd)->secret->md.peer_addr, *raddr, data/nspr-4.29/nspr/pr/src/io/prsocket.c:1061:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(*nd)->secret->md.peer_addr, *raddr, data/nspr-4.29/nspr/pr/src/io/prsocket.c:1116:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(*nd)->secret->md.peer_addr, *raddr, data/nspr-4.29/nspr/pr/src/linking/prlink.c:101: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 errStrBuf[ERR_STR_BUF_LENGTH]; data/nspr-4.29/nspr/pr/src/linking/prlink.c:424: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 utf8name_stack[MAX_PATH]; data/nspr-4.29/nspr/pr/src/linking/prlink.c:445:20: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int wlen = MultiByteToWideChar(CP_ACP, 0, name, -1, NULL, 0); data/nspr-4.29/nspr/pr/src/linking/prlink.c:450:14: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). !MultiByteToWideChar(CP_ACP, 0, name, -1, wname, wlen)) { data/nspr-4.29/nspr/pr/src/linking/prlink.c:1092:9: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_ACP, 0, name, -1, wname, MAX_PATH)) { data/nspr-4.29/nspr/pr/src/linking/prlink.c:1119: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 module_name[_MAX_PATH]; data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:284: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[100]; data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:302: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[100]; data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:374:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(young, page_dir, data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:918:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p,ptr,osize); data/nspr-4.29/nspr/pr/src/malloc/prmalloc.c:921:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p,ptr,size); data/nspr-4.29/nspr/pr/src/malloc/prmem.c:36: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 filler[48]; /* fix the size of this beast */ data/nspr-4.29/nspr/pr/src/malloc/prmem.c:160:31: [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). use_zone_allocator = (atoi(envp) == 1); data/nspr-4.29/nspr/pr/src/malloc/prmem.c:274:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mt, mb, sizeof *mb); data/nspr-4.29/nspr/pr/src/malloc/prmem.c:294:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mt, mb, sizeof *mb); data/nspr-4.29/nspr/pr/src/malloc/prmem.c:381:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rv, oldptr, mb->s.requestedSize); data/nspr-4.29/nspr/pr/src/md/os2/os2inrval.c:26: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). if (atoi(envp) == 1) { data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:159:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(copy, name, len); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:454: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 filename[ CCHMAXPATH ]; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:563: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 filename[CCHMAXPATH]; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:588:13: [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 newfn[_MAX_PATH + 1]; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:231: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 pszEXEName[CCHMAXPATH] = ""; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:232: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 pszFormatString[CCHMAXPATH]; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:233: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 pszObjectBuffer[CCHMAXPATH]; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:239: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 szFailed[CCHMAXPATH]; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:268:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(copy, path, len); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:300:21: [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(pszFormatString, "/C %s %s"); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:324:9: [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(pszEXEName, "WINOS2.COM"); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:326:9: [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(pszFormatString, "/3 %s %s"); data/nspr-4.29/nspr/pr/src/md/os2/os2rng.c:47:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, &low, nBytes); data/nspr-4.29/nspr/pr/src/md/os2/os2rng.c:56:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &high, nBytes); data/nspr-4.29/nspr/pr/src/md/os2/os2rng.c:68:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &val, nBytes); data/nspr-4.29/nspr/pr/src/md/os2/os2rng.c:79:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &sTime, nBytes); data/nspr-4.29/nspr/pr/src/md/unix/aix.c:89: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). if (1 == atoi(evp)) { data/nspr-4.29/nspr/pr/src/md/unix/hpux.c:88:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newstack, oldstack, BACKTRACE_SIZE); data/nspr-4.29/nspr/pr/src/md/unix/scoos.c:64:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ((_uw_semf = tmpfile()) == NULL) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:95: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 _pr_md_pipebuf[PIPE_BUF]; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2056: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). if (atoi(eval) == 0) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2607:38: [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). struct _MD_IOVector _md_iovector = { open }; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2733:32: [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). _md_iovector._open64 = open; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2740:28: [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). _md_iovector._open64 = open; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2751:28: [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). _md_iovector._open64 = open; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2766:28: [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). _md_iovector._open64 = open; data/nspr-4.29/nspr/pr/src/md/unix/unix.c:2869:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). _pr_zero_fd = open("/dev/zero",O_RDWR, 0); data/nspr-4.29/nspr/pr/src/md/unix/unixware.c:67:21: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). if ((_uw_semf = tmpfile()) == NULL) { data/nspr-4.29/nspr/pr/src/md/unix/uxproces.c:595: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[128]; data/nspr-4.29/nspr/pr/src/md/unix/uxrng.c:77:20: [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). fdDevURandom = open( "/dev/urandom", O_RDONLY ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.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 ipcname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:86:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int osfd = open( shm->ipcname, (O_RDWR | O_CREAT), shm->mode ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:200: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 ipcname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:213:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int osfd = open( ipcname, (O_RDWR | O_CREAT), 0666 ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:288: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 ipcname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:428: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 ipcname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:498:16: [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). osfd = open(genName, (O_CREAT | O_EXCL | O_RDWR), mode); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:1421:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)raddr, (char *)&Raddr->inet, *rlen); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2065:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr, &fd->secret->md.peer_addr, *len); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2826: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 filename[ MAX_PATH ]; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2844:5: [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(&filename[len], "\\*.*"); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2914:5: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. CopyMemory(prtm, filetime, sizeof(PRTime)); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2983:13: [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 newfn[_MAX_PATH + 1]; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:3607:5: [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. TCHAR lpBuffer[_PR_MAX_DRIVES*5]; data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:3707:5: [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. TCHAR szDrive[4] = TEXT("C:\\"); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:668:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). len = MultiByteToWideChar(CP_ACP, 0, cmdLine, -1, NULL, 0); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:670:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, cmdLine, -1, wideCmdLine, len); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:671:11: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). len = MultiByteToWideChar(CP_ACP, 0, cwd, -1, NULL, 0); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:673:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, cwd, -1, wideCwd, len); data/nspr-4.29/nspr/pr/src/md/windows/ntthread.c:315:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_ACP, 0, name, -1, wideName, MAX_PATH)) { data/nspr-4.29/nspr/pr/src/md/windows/w32ipcsem.c:22:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, inName, -1, wideName, MAX_PATH); data/nspr-4.29/nspr/pr/src/md/windows/w32ipcsem.c:148:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, osname, -1, wosname, MAX_PATH); data/nspr-4.29/nspr/pr/src/md/windows/w32rng.c:43:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *)buf, &dwLow, nBytes); data/nspr-4.29/nspr/pr/src/md/windows/w32rng.c:52:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &dwHigh, nBytes); data/nspr-4.29/nspr/pr/src/md/windows/w32rng.c:64:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &dwVal, nBytes); data/nspr-4.29/nspr/pr/src/md/windows/w32rng.c:75:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((char *)buf) + n, &sTime, nBytes); data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c:37: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 ipcname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c:97:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, shm->ipcname, -1, data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:474: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 filename[ MAX_PATH ]; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:492:5: [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(&filename[len], "\\*.*"); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:562:5: [2] (buffer) CopyMemory: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. CopyMemory(prtm, filetime, sizeof(PRTime)); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:631:13: [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 newfn[_MAX_PATH + 1]; data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1156:5: [2] (buffer) wcscpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using a function version that stops copying at the end of the buffer. Risk is low because the source is a constant string. wcscpy(&filename[len], L"\\*.*"); data/nspr-4.29/nspr/pr/src/md/windows/w95thred.c:242:13: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). if (MultiByteToWideChar(CP_ACP, 0, name, -1, wideName, MAX_PATH)) { data/nspr-4.29/nspr/pr/src/misc/dtoa.c:614:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign, \ data/nspr-4.29/nspr/pr/src/misc/dtoa.c:1538: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 hexdig[256]; data/nspr-4.29/nspr/pr/src/misc/pratom.c:88: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). ((num_atomic_locks = atoi(eval)) != DEFAULT_ATOMIC_LOCKS)) { data/nspr-4.29/nspr/pr/src/misc/praton.c:77:23: [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 const unsigned char index_hex[256] = { data/nspr-4.29/nspr/pr/src/misc/prcountr.c:56:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[PRCOUNTER_NAME_MAX+1]; data/nspr-4.29/nspr/pr/src/misc/prcountr.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[PRCOUNTER_NAME_MAX+1]; data/nspr-4.29/nspr/pr/src/misc/prcountr.c:69: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 desc[PRCOUNTER_DESC_MAX+1]; data/nspr-4.29/nspr/pr/src/misc/prdtoa.c:604:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign, \ data/nspr-4.29/nspr/pr/src/misc/prdtoa.c:3595:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, result, resultlen); data/nspr-4.29/nspr/pr/src/misc/prenv.c:156:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*dst, *src, len); data/nspr-4.29/nspr/pr/src/misc/prerror.c:58:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(thread->errorString, text, textLength+1 ); data/nspr-4.29/nspr/pr/src/misc/prerror.c:73:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(text, thread->errorString, thread->errorStringLength+1); data/nspr-4.29/nspr/pr/src/misc/prerrortable.c:65: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[6]; /* only used if internal code problems exist */ data/nspr-4.29/nspr/pr/src/misc/prerrortable.c:93: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 buffer[25]; data/nspr-4.29/nspr/pr/src/misc/prerrortable.c:124:5: [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 (buffer, "Unknown code "); data/nspr-4.29/nspr/pr/src/misc/prinit.c:133: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). _native_threads_only = (atoi(envp) == 1); data/nspr-4.29/nspr/pr/src/misc/pripcsem.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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/misc/pripcsem.c:90: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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:194: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 addrstr[64]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:200:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr.inet.ip, &sin->sin_addr, sizeof(sin->sin_addr)); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:204:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&addr.ipv6.ip, &sin6->sin6_addr, sizeof(sin6->sin6_addr)); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:323: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 addrstr[64]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:473:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v6 + 12, v4, 4); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:482:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(v6 + 12, v4, 4); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:524:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->h_name, from->h_name, len); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:548:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->h_aliases[na], *ap, len); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:576:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->h_addr_list[na], *ap, to->h_length); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:606:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->p_name, from->p_name, len); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:623:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(to->p_aliases[na], *ap, len); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:672: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 localbuf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:817: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 localbuf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:1025: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 localbuf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:1446:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&address->ipv6.ip, addr, hostEnt->h_length); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:1452:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&address->inet.ip, addr, hostEnt->h_length); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:1588:23: [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 const unsigned char index_hex[256] = { data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:1887:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dstp + 12,(char *) &v4addr, 4); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:2063: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[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:2228:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, ai->ai_addr, ai->ai_addrlen); data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:2296:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&laddr, res->ai_addr, res->ai_addrlen); data/nspr-4.29/nspr/pr/src/misc/prrng.c:26:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, srclen); data/nspr-4.29/nspr/pr/src/misc/prrng.c:30:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, (char*)src + (srclen - dstlen), dstlen); data/nspr-4.29/nspr/pr/src/misc/prrng.c:32:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, src, dstlen); data/nspr-4.29/nspr/pr/src/misc/prsystem.c:227: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[MAX_LINE]; data/nspr-4.29/nspr/pr/src/misc/prsystem.c:232:11: [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). fin = fopen(cpu_present, "r"); data/nspr-4.29/nspr/pr/src/misc/prsystem.c:245:39: [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). numCpus = 1 + atoi(buf + 2); data/nspr-4.29/nspr/pr/src/misc/prsystem.c:356:32: [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). bytes = (PRUint64) atoi(obj->value) * 1024; data/nspr-4.29/nspr/pr/src/misc/prtime.c:1923:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, str, strSize); \ data/nspr-4.29/nspr/pr/src/misc/prtime.c:1949: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 tmpBuf[ 40 ]; data/nspr-4.29/nspr/pr/src/misc/prtrace.c:38:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[PRTRACE_NAME_MAX+1]; data/nspr-4.29/nspr/pr/src/misc/prtrace.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 name[PRTRACE_NAME_MAX+1]; data/nspr-4.29/nspr/pr/src/misc/prtrace.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 desc[PRTRACE_DESC_MAX+1]; data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:378: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 buffer[100]; data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:1057:35: [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. hdtrl[0].iov_base = ((char *) hdtrl[0].iov_base) + count; data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:1085:34: [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. hdtrl[1].iov_base =((char *) hdtrl[1].iov_base)+ trailer_nbytes_sent; data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:3647:31: [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 (uname(&u) != 0 || atoi(u.release) < 7) { data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c:847: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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c:929: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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c:987: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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c:998:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int osfd = open(osname, O_RDWR|O_CREAT, mode); data/nspr-4.29/nspr/pr/src/pthreads/ptsynch.c:1125: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 osname[PR_IPC_NAME_SIZE]; data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1672:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(thread->name, name, nameLen + 1); data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1707:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name_dup[SETNAME_LENGTH_CONSTRAINT + 1]; data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1709:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(name_dup, name, SETNAME_FRAGMENT1_LENGTH); data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1712:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(name_dup + SETNAME_FRAGMENT1_LENGTH + 1, data/nspr-4.29/nspr/pr/src/threads/combined/pruthr.c:1648:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(thread->name, name, nameLen + 1); data/nspr-4.29/nspr/pr/src/threads/prdump.c:24: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[100]; data/nspr-4.29/nspr/pr/src/threads/prtpd.c:169:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void)memcpy( data/nspr-4.29/nspr/pr/tests/abstract.c:25:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr.local.path, abstractSocketName, sizeof(abstractSocketName)); data/nspr-4.29/nspr/pr/tests/abstract.c:78:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(addr.local.path, abstractSocketName, sizeof(abstractSocketName)); data/nspr-4.29/nspr/pr/tests/accept.c:74: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 buf[4096 + 2*sizeof(PRNetAddr) + 32]; data/nspr-4.29/nspr/pr/tests/accept.c:119: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. char buf[CLIENT_DATA]; data/nspr-4.29/nspr/pr/tests/accept.c:466: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/acceptread.c:35: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 buffer[100]; data/nspr-4.29/nspr/pr/tests/acceptread.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 buf[1024]; data/nspr-4.29/nspr/pr/tests/acceptread.c:183: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 netdb_buf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/acceptread.c:196: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). port_number = (PRUint16)atoi(argv[(argc == 2) ? 1 : 2]); data/nspr-4.29/nspr/pr/tests/acceptreademu.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 buffer[100]; data/nspr-4.29/nspr/pr/tests/acceptreademu.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[1024]; data/nspr-4.29/nspr/pr/tests/acceptreademu.c:210: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 netdb_buf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/acceptreademu.c:226: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). port_number = (PRUint16)atoi(argv[(argc == 2) ? 1 : 2]); data/nspr-4.29/nspr/pr/tests/addrstr.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 buf[256]; data/nspr-4.29/nspr/pr/tests/alarm.c:493: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/alarm.c:496: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). cpus = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/anonfm.c:47: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 dirName[512] = "."; /* directory name to contain anon mapped file */ data/nspr-4.29/nspr/pr/tests/anonfm.c:146: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 fmString[256]; data/nspr-4.29/nspr/pr/tests/anonfm.c:147: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 envBuf[256]; data/nspr-4.29/nspr/pr/tests/anonfm.c:148: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 *child_argv[8]; data/nspr-4.29/nspr/pr/tests/anonfm.c:278:30: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). client = atol(opt->value); data/nspr-4.29/nspr/pr/tests/anonfm.c:281:30: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). fmSize = atol( opt->value ) * 1024; data/nspr-4.29/nspr/pr/tests/attach.c:146: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/bigfile.c:94: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 ctime[40], mtime[40]; data/nspr-4.29/nspr/pr/tests/bigfile.c:154: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/bigfile.c:157:28: [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). filesize = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/bigfile2.c:30: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[MESSAGE_SIZE]; data/nspr-4.29/nspr/pr/tests/bigfile3.c:30: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[MESSAGE_SIZE]; data/nspr-4.29/nspr/pr/tests/bug1test.c:218: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 pad[512]; /* Work around bug in nspr on windoze */ data/nspr-4.29/nspr/pr/tests/cleanup.c:59:31: [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). child_sleep = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cleanup.c:62: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). main_sleep = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cleanup.c:65:31: [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). concurrency = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cleanup.c:68: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). threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:159: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 filename[60]; /* filename, null padded */ data/nspr-4.29/nspr/pr/tests/cltsrv.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 buffer[100]; data/nspr-4.29/nspr/pr/tests/cltsrv.c:218: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 buffer[1024]; data/nspr-4.29/nspr/pr/tests/cltsrv.c:398: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 buffer[1024]; data/nspr-4.29/nspr/pr/tests/cltsrv.c:1002:29: [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). accepting = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1005: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). backlog = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1008: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). clients = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1011: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). low = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1014: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). high = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1017: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). workersMin = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1020: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). workersMax = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1023:29: [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). execution = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cltsrv.c:1128: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. char buffer[BUFFER_SIZE]; data/nspr-4.29/nspr/pr/tests/concur.c:82: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). range = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/concur.c:85: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cvar.c:269: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cvar2.c:910: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/cvar2.c:913:35: [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). default_threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/dbmalloc.c:39: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 value[4]; data/nspr-4.29/nspr/pr/tests/dbmalloc.c:52:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rv->value[0], line, l+1); data/nspr-4.29/nspr/pr/tests/dbmalloc.c:108: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 buffer[ BUFSIZ ]; data/nspr-4.29/nspr/pr/tests/dbmalloc.c:110:10: [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). fp = fopen(name, "r"); data/nspr-4.29/nspr/pr/tests/dbmalloc.c:262:26: [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). nf = atoi(argv[0][2] ? &argv[0][2] : data/nspr-4.29/nspr/pr/tests/dbmalloc.c:284:24: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *fp = fopen(*argv, "r"); data/nspr-4.29/nspr/pr/tests/dtoa.c:32: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 cnvt[50]; data/nspr-4.29/nspr/pr/tests/errset.c:140: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. char msg[256]; data/nspr-4.29/nspr/pr/tests/exit.c:59: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). dally = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/fileio.c:123:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[BSIZE]; data/nspr-4.29/nspr/pr/tests/foreign.c:299: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). thread_cnt = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/forktest.c:115: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[128]; data/nspr-4.29/nspr/pr/tests/formattm.c:14: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 buffer[256]; data/nspr-4.29/nspr/pr/tests/formattm.c:15: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 small_buffer[8]; data/nspr-4.29/nspr/pr/tests/fsync.c:54:28: [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). filesize = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/fsync.c:57: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). iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/getai.c:26: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. char buf[128]; data/nspr-4.29/nspr/pr/tests/gethost.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 buf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/gethost.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 reversebuf[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/gethost.c:210: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. char buf[256]; data/nspr-4.29/nspr/pr/tests/gethost.c:222: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. char buf[256]; data/nspr-4.29/nspr/pr/tests/gethost.c:236: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. char buf[256]; data/nspr-4.29/nspr/pr/tests/gethost.c:249: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. char buf[256]; data/nspr-4.29/nspr/pr/tests/gethost.c:255: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. char tmp_buf[256]; data/nspr-4.29/nspr/pr/tests/getproto.c:28: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[2048]; data/nspr-4.29/nspr/pr/tests/i2l.c:55: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). si.i = (PRInt32)atoi(opt->value); data/nspr-4.29/nspr/pr/tests/i2l.c:59:34: [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). ui.i = (PRUint32)atoi(opt->value); data/nspr-4.29/nspr/pr/tests/inrval.c:165: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). cpus = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/inrval.c:168: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/instrumt.c:419:46: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). msgLevel = (PRLogModuleLevel)atol( opt->value); data/nspr-4.29/nspr/pr/tests/io_timeout.c:235:31: [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). num_threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/io_timeoutk.c:206: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). num_threads = atoi(argv[2]); data/nspr-4.29/nspr/pr/tests/io_timeoutu.c:207: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). num_threads = atoi(argv[2]); data/nspr-4.29/nspr/pr/tests/ioconthr.c:20: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/nspr-4.29/nspr/pr/tests/ipv6.c:56: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 buffer[ADDR_BUFFER]; data/nspr-4.29/nspr/pr/tests/ipv6.c:140: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. char buffer[100]; data/nspr-4.29/nspr/pr/tests/ipv6.c:187: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. char buffer[HOST_BUFFER]; data/nspr-4.29/nspr/pr/tests/ipv6.c:219: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. char buffer[PROTO_BUFFER]; data/nspr-4.29/nspr/pr/tests/layer.c:316: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). major_iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/layer.c:319: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). minor_iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/layer.c:322:32: [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). default_port = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/lazyinit.c:57: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). test = atoi(argv[1]); data/nspr-4.29/nspr/pr/tests/libfilename.c:67:5: [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(name, "libnspr4.dll"); data/nspr-4.29/nspr/pr/tests/lock.c:469:29: [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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/lock.c:472:28: [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). cpus = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/lockfile.c:213: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). loops = atoi(argv[1]); data/nspr-4.29/nspr/pr/tests/lockfile.c:222:29: [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). cpus = (argc < 3) ? 2 : atoi(argv[2]); data/nspr-4.29/nspr/pr/tests/many_cv.c:57: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). cvs = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/many_cv.c:60: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/mbcs.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 nextDir[256]; data/nspr-4.29/nspr/pr/tests/mbcs.c:66: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 file[256]; data/nspr-4.29/nspr/pr/tests/multiacc.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 buf[1024]; data/nspr-4.29/nspr/pr/tests/multiwait.c:159: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 buffer[100]; data/nspr-4.29/nspr/pr/tests/multiwait.c:753:34: [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). client_threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/multiwait.c:756:32: [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). ops_required = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/multiwait.c:759:32: [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). default_port = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/multiwait.c:762:34: [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). worker_threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/multiwait.c:765:32: [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). wait_objects = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/nameshm1.c:113: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 optName[NameSize] = OPT_NAME; data/nspr-4.29/nspr/pr/tests/nameshm1.c:115: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 buf[1024] = ""; data/nspr-4.29/nspr/pr/tests/nameshm1.c:384: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 *child_argv[8]; data/nspr-4.29/nspr/pr/tests/nameshm1.c:385: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[24]; data/nspr-4.29/nspr/pr/tests/nameshm1.c:428:5: [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( (char*)addr, "FooBar" ); data/nspr-4.29/nspr/pr/tests/nameshm1.c:433: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, "%d", optPing ); data/nspr-4.29/nspr/pr/tests/nameshm1.c:544:31: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). optSize = atol(opt->value) * 1024; data/nspr-4.29/nspr/pr/tests/nameshm1.c:547:31: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). optPing = atol(opt->value); data/nspr-4.29/nspr/pr/tests/nameshm1.c:550:43: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). optClientIterations = atol(opt->value); data/nspr-4.29/nspr/pr/tests/nbconn.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 buf[1024]; data/nspr-4.29/nspr/pr/tests/nbconn.c:192: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 data_buf[DATA_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/nbconn.c:242: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 send_buf[DATA_BUF_SIZE], recv_buf[DATA_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/nblayer.c:632: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). major_iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/nblayer.c:635: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). minor_iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/nblayer.c:638:32: [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). default_port = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/nonblock.c:43: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[CHUNK_SIZE]; data/nspr-4.29/nspr/pr/tests/nonblock.c:113: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[CHUNK_SIZE]; data/nspr-4.29/nspr/pr/tests/ntioto.c:108: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 dataBuf[ACCEPT_READ_BUFSIZE]; data/nspr-4.29/nspr/pr/tests/ntioto.c:238: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). jitter = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/ntoh.c:18: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 bytes_n[8] = { 1, 2, 3, 4, 5, 6, 7, 8 }; data/nspr-4.29/nspr/pr/tests/ntoh.c:31: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. unsigned char bytes[8]; data/nspr-4.29/nspr/pr/tests/op_2long.c:40: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 nameTooLong[TOO_LONG]; data/nspr-4.29/nspr/pr/tests/openfile.c:23: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[32]; data/nspr-4.29/nspr/pr/tests/openfile.c:29:16: [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). template = fopen(TEMPLATE_FILE_NAME, "w"); data/nspr-4.29/nspr/pr/tests/peek.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUFFER_SIZE]; data/nspr-4.29/nspr/pr/tests/peek.c:142: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[BUFFER_SIZE]; data/nspr-4.29/nspr/pr/tests/perf.c:380: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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/pipeping.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/nspr-4.29/nspr/pr/tests/pipeping.c:108:9: [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, "ping"); data/nspr-4.29/nspr/pr/tests/pipeping2.c:39: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/nspr-4.29/nspr/pr/tests/pipeping2.c:111:9: [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, "ping"); data/nspr-4.29/nspr/pr/tests/pipepong.c:30: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/nspr-4.29/nspr/pr/tests/pipepong.c:49:9: [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, "pong"); data/nspr-4.29/nspr/pr/tests/pipepong2.c:33: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/nspr-4.29/nspr/pr/tests/pipepong2.c:78:9: [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, "pong"); data/nspr-4.29/nspr/pr/tests/pipeself.c:32: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/nspr-4.29/nspr/pr/tests/pipeself.c:55:9: [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, "pong"); data/nspr-4.29/nspr/pr/tests/pipeself.c: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 buf[1024]; data/nspr-4.29/nspr/pr/tests/pipeself.c:104:9: [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, "ping"); data/nspr-4.29/nspr/pr/tests/poll_er.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 buf[128]; data/nspr-4.29/nspr/pr/tests/poll_nm.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 buf[128]; data/nspr-4.29/nspr/pr/tests/poll_nm.c:84: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[128]; data/nspr-4.29/nspr/pr/tests/poll_to.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 buf[128]; data/nspr-4.29/nspr/pr/tests/pollable.c:127: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). numIterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/pollable.c:130: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). numThreads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/pollable.c:133:31: [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). concurrency = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/pollable.c:139:51: [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). dally = PR_MillisecondsToInterval(atoi(opt->value)); data/nspr-4.29/nspr/pr/tests/prftest.c:26: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[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prftest.c:27: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 answer[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prftest.c:36:5: [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(answer, "ffff "); data/nspr-4.29/nspr/pr/tests/prftest.c:40:5: [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(answer, " ffffffff ffffffffffffffff"); data/nspr-4.29/nspr/pr/tests/prftest1.c:67: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[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prftest1.c:68: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 answer[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prftest1.c:104:5: [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(answer, "ffff "); data/nspr-4.29/nspr/pr/tests/prftest1.c:108:5: [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(answer, " ffffffff ffffffffffffffff"); data/nspr-4.29/nspr/pr/tests/prftest2.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prfz.c:18: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 buffer[128]; data/nspr-4.29/nspr/pr/tests/primblok.c:40: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[32]; data/nspr-4.29/nspr/pr/tests/priotest.c:148:28: [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). duration = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:159: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 filename[60]; /* filename, null padded */ data/nspr-4.29/nspr/pr/tests/provider.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 buffer[100]; data/nspr-4.29/nspr/pr/tests/provider.c:218: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 buffer[1024]; data/nspr-4.29/nspr/pr/tests/provider.c:397: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 buffer[1024]; data/nspr-4.29/nspr/pr/tests/provider.c:1137:29: [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). accepting = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1140: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). backlog = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1158: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). clients = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1161: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). workersMin = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1164: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). workersMax = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1167:29: [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). execution = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/provider.c:1268: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. char buffer[BUFFER_SIZE]; data/nspr-4.29/nspr/pr/tests/prpoll.c:45: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[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prpoll.c:68: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[BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/prselect.c:73: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[128]; data/nspr-4.29/nspr/pr/tests/prselect.c:98: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[128]; data/nspr-4.29/nspr/pr/tests/randseed.c:34: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 buf[40]; data/nspr-4.29/nspr/pr/tests/ranfile.c:127: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 filename[30]; data/nspr-4.29/nspr/pr/tests/ranfile.c:302: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). limit = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/ranfile.c:305: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). threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/ranfile.c:308: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/rwlocktest.c:69: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). thread_cnt = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/rwlocktest.c:72:28: [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). loop_cnt = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/sel_spd.c:434:31: [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). _iterations = atoi(optarg); data/nspr-4.29/nspr/pr/tests/sel_spd.c:437: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). _threads_max = _threads = atoi(optarg); data/nspr-4.29/nspr/pr/tests/sel_spd.c:440:32: [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). _client_data = atoi(optarg); data/nspr-4.29/nspr/pr/tests/sel_spd.c:443:32: [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). _server_data = atoi(optarg); data/nspr-4.29/nspr/pr/tests/selct_er.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 buf[128]; data/nspr-4.29/nspr/pr/tests/selct_nm.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 buf[128]; data/nspr-4.29/nspr/pr/tests/selct_nm.c:75: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[128]; data/nspr-4.29/nspr/pr/tests/selct_to.c:52: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[128]; data/nspr-4.29/nspr/pr/tests/select2.c:138: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. char buf[11]; data/nspr-4.29/nspr/pr/tests/select2.c:189:9: [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, "XXXXXXXXXX"); data/nspr-4.29/nspr/pr/tests/select2.c:242: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. char buf[11]; data/nspr-4.29/nspr/pr/tests/select2.c:299:9: [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, "XXXXXXXXXX"); data/nspr-4.29/nspr/pr/tests/select2.c:367: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). count = atoi(argv[2]); data/nspr-4.29/nspr/pr/tests/sem.c:47:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char stdinBuf[SBSIZE]; data/nspr-4.29/nspr/pr/tests/sem.c:48: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 stdoutBuf[SBSIZE]; data/nspr-4.29/nspr/pr/tests/sem.c:116: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 data[BSIZE]; data/nspr-4.29/nspr/pr/tests/sema.c:85: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). iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/semaerr.c:41: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 *child_argv[32]; data/nspr-4.29/nspr/pr/tests/semaping.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 *child_argv[32]; data/nspr-4.29/nspr/pr/tests/semaping.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 iterations_buf[32]; data/nspr-4.29/nspr/pr/tests/semaping.c:64: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). iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/semapong.c:56: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). iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/sendzlf.c:30: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/nspr-4.29/nspr/pr/tests/sendzlf.c:82: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 header[1024], trailer[1024]; data/nspr-4.29/nspr/pr/tests/sendzlf.c:95:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(header, HEADER_STR, HEADER_LEN); data/nspr-4.29/nspr/pr/tests/sendzlf.c:96:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(trailer, TRAILER_STR, TRAILER_LEN); data/nspr-4.29/nspr/pr/tests/socket.c:115: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 data[BUF_DATA_SIZE]; data/nspr-4.29/nspr/pr/tests/socket.c:1874: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. char data[TRANSMITFILE_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/sockping.c:38: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/nspr-4.29/nspr/pr/tests/sockping.c:87:9: [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, "ping"); data/nspr-4.29/nspr/pr/tests/sockpong.c:33: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/nspr-4.29/nspr/pr/tests/sockpong.c:68:9: [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, "pong"); data/nspr-4.29/nspr/pr/tests/sprintf.c:27: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 sbuf[20000]; data/nspr-4.29/nspr/pr/tests/sprintf.c:37: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[200]; data/nspr-4.29/nspr/pr/tests/sprintf.c:88: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 fmt[20]; data/nspr-4.29/nspr/pr/tests/sprintf.c:121: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[200]; data/nspr-4.29/nspr/pr/tests/sprintf.c:186: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 fmt[40], sfmt[40]; data/nspr-4.29/nspr/pr/tests/sprintf.c:223: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[200]; data/nspr-4.29/nspr/pr/tests/sprintf.c:328: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 fmt[40], sfmt[40]; data/nspr-4.29/nspr/pr/tests/sprintf.c:365: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 before[8]; data/nspr-4.29/nspr/pr/tests/sprintf.c:366: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[200]; data/nspr-4.29/nspr/pr/tests/sprintf.c:367: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 after[8]; data/nspr-4.29/nspr/pr/tests/sprintf.c:424: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 fmt[40]; data/nspr-4.29/nspr/pr/tests/stack.c:82: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). thread_cnt = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/stack.c:85:28: [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). data_cnt = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/stack.c:88: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/stat.c:78: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). count = atoi(argv[1]); data/nspr-4.29/nspr/pr/tests/strod.c:43: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). loops = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/suspend.c:155: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). count = atoi(argv[1]); data/nspr-4.29/nspr/pr/tests/switch.c:105: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). loop_limit = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/switch.c:108:32: [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). thread_limit = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/switch.c:111:31: [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). concurrency = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/testfile.c:59: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 data[BUF_DATA_SIZE]; data/nspr-4.29/nspr/pr/tests/testfile.c:83: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 pathname[256], renamename[256]; data/nspr-4.29/nspr/pr/tests/testfile.c:88: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 testdir[TMPDIR_LEN]; data/nspr-4.29/nspr/pr/tests/testfile.c:243: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 tmpname[1024]; data/nspr-4.29/nspr/pr/tests/testfile.c:380:5: [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(tmpname,".RENAMED"); data/nspr-4.29/nspr/pr/tests/testfile.c:674:5: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, pathname, -1, wPathname, 256); data/nspr-4.29/nspr/pr/tests/testfile.c:813:5: [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(renamename, ".RENAMED"); data/nspr-4.29/nspr/pr/tests/testfile.c:943:9: [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((testdir + len),"prdir"); data/nspr-4.29/nspr/pr/tests/threads.c:155:29: [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). count = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/threads.c:158:34: [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). iterations = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/thrpool_client.c:60: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 data[BUF_DATA_SIZE]; data/nspr-4.29/nspr/pr/tests/thrpool_client.c:327:31: [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). server_port = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/thrpool_server.c:65:5: [2] (buffer) wchar_t: 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. wchar_t wpath[MAX_PATH]; data/nspr-4.29/nspr/pr/tests/thrpool_server.c:82: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 data[BUF_DATA_SIZE]; data/nspr-4.29/nspr/pr/tests/thrpool_server.c:363: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. char *argv[MAX_ARGS + 1]; data/nspr-4.29/nspr/pr/tests/thrpool_server.c:365: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. char port[32]; data/nspr-4.29/nspr/pr/tests/thrpool_server.c:366: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. char path[1024 + sizeof("/thrpool_client")]; data/nspr-4.29/nspr/pr/tests/thrpool_server.c:370:15: [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. (void)strcat(path, "/thrpool_client"); data/nspr-4.29/nspr/pr/tests/thrpool_server.c:372:15: [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. (void)strcat(path, ".exe"); data/nspr-4.29/nspr/pr/tests/thrpool_server.c:375:9: [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(port,"%d",PR_ntohs(netaddr.inet.port)); data/nspr-4.29/nspr/pr/tests/thruput.c:69: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 buffer[ADDR_BUFFER]; data/nspr-4.29/nspr/pr/tests/thruput.c:165: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 buffer[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/thruput.c:346:35: [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). initial_streams = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/thruput.c:349:31: [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). concurrency = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/thruput.c:352: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). buffer_size = 1024 * atoi(opt->value); data/nspr-4.29/nspr/pr/tests/thruput.c:355:39: [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). xport_buffer = 1024 * atoi(opt->value); data/nspr-4.29/nspr/pr/tests/time.c:159: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). count = atoi(argv[1]); data/nspr-4.29/nspr/pr/tests/timetest.c:94: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 timeString[128]; data/nspr-4.29/nspr/pr/tests/timetest.c:95: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[128]; data/nspr-4.29/nspr/pr/tests/timetest.c:115:9: [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(timeString, "GMT "); /* I wanted to use "UTC" here, but data/nspr-4.29/nspr/pr/tests/tmoacc.c:224: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). backlog = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmoacc.c:227: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). threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmoacc.c:230: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). timeout = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmocon.c:47:5: [2] (buffer) wchar_t: 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. wchar_t wpath[MAX_PATH]; data/nspr-4.29/nspr/pr/tests/tmocon.c:111: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. char *argv[3]; data/nspr-4.29/nspr/pr/tests/tmocon.c:112: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. char path[1024 + sizeof("/tmoacc")]; data/nspr-4.29/nspr/pr/tests/tmocon.c:116:15: [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. (void)strcat(path, "/tmoacc"); data/nspr-4.29/nspr/pr/tests/tmocon.c:118:15: [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. (void)strcat(path, ".exe"); data/nspr-4.29/nspr/pr/tests/tmocon.c:203: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. char buf[128]; data/nspr-4.29/nspr/pr/tests/tmocon.c:361: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. char buffer[1024]; data/nspr-4.29/nspr/pr/tests/tmocon.c:370: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). shared->messages = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmocon.c:373: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). threads = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmocon.c:376: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). dally = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmocon.c:379: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). timeout = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/tmocon.c:382:42: [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). shared->message_length = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/udpsrv.c:98: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 mbuf[256]; data/nspr-4.29/nspr/pr/tests/udpsrv.c:123: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 svrBuf[UDP_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/udpsrv.c:238: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 cltBuf[UDP_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/udpsrv.c:239: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 cltBufin[UDP_BUF_SIZE]; data/nspr-4.29/nspr/pr/tests/udpsrv.c:354:13: [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 mbuf[256]; data/nspr-4.29/nspr/pr/tests/udpsrv.c:355:13: [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( mbuf, "udpsrv: UDP_Client(): write_this_many: %d, numbytes: %d\n", data/nspr-4.29/nspr/pr/tests/version.c:24: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 buffer[100]; data/nspr-4.29/nspr/pr/tests/writev.c:76: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. char buffer[1024]; data/nspr-4.29/nspr/pr/tests/writev.c:86:28: [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). messages = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/writev.c:89:34: [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). message_length = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/writev.c:92:35: [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). fragment_length = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/y2k.c:228: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/nspr-4.29/nspr/pr/tests/y2ktmo.c:491:34: [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). lead_time_secs = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/y2ktmo.c:494:35: [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). tolerance_msecs = atoi(opt->value); data/nspr-4.29/nspr/pr/tests/zerolen.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 buf[1024]; data/nspr-4.29/nspr/pr/tests/zerolen.c:95: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/nspr-4.29/nspr/tools/httpget.c:42: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 inputBuf[INPUT_BUFFER_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:124:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, inputHead, nBytes); data/nspr-4.29/nspr/tools/httpget.c:131: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[FCOPY_BUFFER_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:284: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[PR_NETDB_BUF_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:288: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 host[HOST_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:289: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 port[PORT_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:290: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 path[PATH_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:291: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[LINE_SIZE]; data/nspr-4.29/nspr/tools/httpget.c:340:39: [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). addr.inet.port = PR_htons((short) atoi(port)); data/nspr-4.29/nspr/tools/tail.c:38: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 buffer[BUFFER_SIZE]; data/nspr-4.29/nspr/tools/tail.c:58: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). seek = atoi(opt->value); data/nspr-4.29/nspr/tools/tail.c:61: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). time = atoi(opt->value); data/nspr-4.29/nspr/config/nsinstall.c:62:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). program, (int)strlen(program), ""); data/nspr-4.29/nspr/config/nsinstall.c:162: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). lplen = strlen(linkprefix); data/nspr-4.29/nspr/config/nsinstall.c:219: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/nspr-4.29/nspr/config/nsinstall.c:226: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). len = strlen(name); data/nspr-4.29/nspr/config/nsinstall.c:228: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). bnlen = strlen(base); data/nspr-4.29/nspr/config/nsinstall.c:269:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(linkname); data/nspr-4.29/nspr/config/nsinstall.c:310:26: [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/nspr-4.29/nspr/config/nsinstall.c:468: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/nspr-4.29/nspr/config/nsinstall.c:510: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). len = strlen(strcpy(outpath, to)); data/nspr-4.29/nspr/config/nsinstall.c:523: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). len += strlen(outpath + len); data/nspr-4.29/nspr/config/nsinstall.c:547: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). len = strlen(name); data/nspr-4.29/nspr/lib/libc/src/base64.c:122: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). size_t len = strlen(src); data/nspr-4.29/nspr/lib/libc/src/base64.c:367: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). size_t len = strlen(src); data/nspr-4.29/nspr/lib/libc/src/plgetopt.c:152: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). strlen(internal->xargv); data/nspr-4.29/nspr/lib/libc/src/plgetopt.c:164: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). if (strlen(longOpt->longOptName) != optNameLen) { data/nspr-4.29/nspr/lib/libc/src/strcase.c:108: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strcase.c:132: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). bl = strlen(big); data/nspr-4.29/nspr/lib/libc/src/strcase.c:133: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strcase.c:160: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strcase.c:189: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strdup.c:20: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). n = strlen(s) + 1; data/nspr-4.29/nspr/lib/libc/src/strlen.c:20: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). l = strlen(str); data/nspr-4.29/nspr/lib/libc/src/strstr.c:36: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strstr.c:37: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). bl = strlen(big); data/nspr-4.29/nspr/lib/libc/src/strstr.c:64: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). ll = strlen(little); data/nspr-4.29/nspr/lib/libc/src/strstr.c:93: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). ll = strlen(little); data/nspr-4.29/nspr/lib/prstreams/tests/testprstrm/testprstrm.cpp:51: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(fname2, "2"); data/nspr-4.29/nspr/pr/include/prio.h:354:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PRReadFN read; /* read up to specified bytes into buffer */ data/nspr-4.29/nspr/pr/src/cplus/rcfileio.cpp:61:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return fd->methods->read(fd, buf, amount); data/nspr-4.29/nspr/pr/src/cplus/rcnetio.cpp:125:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (fd->methods->read)(fd, buf, amount); data/nspr-4.29/nspr/pr/src/io/priometh.c:109:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return((fd->methods->read)(fd,buf,amount)); data/nspr-4.29/nspr/pr/src/io/prlayer.c:82:33: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return (fd->lower->methods->read)(fd->lower, buf, amount); data/nspr-4.29/nspr/pr/src/io/prlayer.c:623: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). name = (char*)PR_Malloc(strlen(layer_name) + 1); data/nspr-4.29/nspr/pr/src/io/prlog.c:198: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). PRIntn evlen = strlen(ev), pos = 0; data/nspr-4.29/nspr/pr/src/io/prlog.c:322: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). PRIntn evlen = strlen(ev), pos = 0; data/nspr-4.29/nspr/pr/src/io/prlog.c:492: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). nb = strlen(line_long); data/nspr-4.29/nspr/pr/src/io/prprf.c:346: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). return (*ss->stuff)(ss, fout, strlen(fout)); data/nspr-4.29/nspr/pr/src/io/prprf.c:375: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). slen = strlen(str); data/nspr-4.29/nspr/pr/src/io/prprf.c:1295: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). size_t lastlen = strlen(last); data/nspr-4.29/nspr/pr/src/io/prstdio.c:32: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). len = strlen(msg); data/nspr-4.29/nspr/pr/src/linking/prlink.c:106: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). PR_SetErrorText(strlen(error), error); data/nspr-4.29/nspr/pr/src/linking/prlink.c:264: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). len = strlen(ev) + 1; /* +1 for the null */ data/nspr-4.29/nspr/pr/src/linking/prlink.c:563: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). const size_t systemPrefixLen1 = strlen(systemPrefix1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:565: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). const size_t systemPrefixLen2 = strlen(systemPrefix2); data/nspr-4.29/nspr/pr/src/linking/prlink.c:566: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). const size_t name_len = strlen(name); data/nspr-4.29/nspr/pr/src/linking/prlink.c:965: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). result = PR_Malloc(strlen(dli.dli_fname)+1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1016: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). result = PR_Malloc(strlen(infop->ldinfo_filename)+1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1037: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). result = PR_Malloc(strlen(desc.filename)+1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1054: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). result = PR_Malloc(strlen(desc.filename)+1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1080: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). result = PR_Malloc(strlen(module_name)+1); data/nspr-4.29/nspr/pr/src/linking/prlink.c:1133: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). result = PR_Malloc(strlen(module_name)+1); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:157: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). size_t len = strlen(name) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:461:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FlipSlashes( filename, strlen(filename) ); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:566:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FlipSlashes(filename, strlen(filename)); data/nspr-4.29/nspr/pr/src/md/os2/os2io.c:585: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). int len = strlen(fn); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:109: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). cmdLineSize += strlen(*arg) + 1; /* space in between */ data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:120:13: [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(*cmdLine, " "); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:165: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). cwdStart += strlen(cwdStart) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:169: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). cwdEnd += strlen(cwdEnd) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:175: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). cwdEnd += strlen(cwdEnd) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:181: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). envBlockSize += strlen(*env) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:266: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). size_t len = strlen(path) + 1; data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:332:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pszFormatResult = PR_MALLOC(strlen(pszFormatString)+strlen(path)+strlen(cmdLine)); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:332:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pszFormatResult = PR_MALLOC(strlen(pszFormatString)+strlen(path)+strlen(cmdLine)); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:332:74: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pszFormatResult = PR_MALLOC(strlen(pszFormatString)+strlen(path)+strlen(cmdLine)); data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:375: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). pszCmdLine = PR_MALLOC(strlen(pszEXEName) + data/nspr-4.29/nspr/pr/src/md/os2/os2misc.c:376: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). strlen(startData.PgmInputs) + 3); data/nspr-4.29/nspr/pr/src/md/unix/unix.c:311:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((rv = read(osfd,buf,amount)) == -1) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:791:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((rv = read(osfd,buf,amount)) == -1) { data/nspr-4.29/nspr/pr/src/md/unix/unix.c:1666:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((rv = read(_pr_md_pipefd[0], _pr_md_pipebuf, data/nspr-4.29/nspr/pr/src/md/unix/unix.c:1866:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(_pr_md_pipefd[0], _pr_md_pipebuf, PIPE_BUF)) data/nspr-4.29/nspr/pr/src/md/unix/unix.c:1932:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read(_pr_md_pipefd[0], _pr_md_pipebuf, PIPE_BUF)) data/nspr-4.29/nspr/pr/src/md/unix/uxproces.c:623:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rv = read(pr_wp.pipefd[0], buf, sizeof(buf)); data/nspr-4.29/nspr/pr/src/md/unix/uxproces.c:680: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). write(2, msg, strlen(msg) + 1); data/nspr-4.29/nspr/pr/src/md/unix/uxrng.c:92:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesIn = read( fdDevURandom, buf, size ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:68: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). shm->ipcname = (char*)PR_MALLOC( strlen( ipcname ) + 1 ); data/nspr-4.29/nspr/pr/src/md/unix/uxshm.c:307: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). shm->ipcname = PR_MALLOC( strlen( ipcname ) + 1 ); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2829: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). len = strlen(name); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2845:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FlipSlashes( filename, strlen(filename) ); data/nspr-4.29/nspr/pr/src/md/windows/ntio.c:2980: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). int len = strlen(fn); data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:367:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmdLineSize += 2 * strlen(*arg) /* \ and " need to be escaped */ data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:494: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). cwdStart += strlen(cwdStart) + 1; data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:498: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). cwdEnd += strlen(cwdEnd) + 1; data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:504: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). cwdEnd += strlen(cwdEnd) + 1; data/nspr-4.29/nspr/pr/src/md/windows/ntmisc.c:510: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). envBlockSize += strlen(*env) + 1; data/nspr-4.29/nspr/pr/src/md/windows/w32shm.c:63: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). shm->ipcname = PR_MALLOC( (PRUint32) (strlen( ipcname ) + 1) ); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:477: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). len = strlen(name); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:493:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FlipSlashes( filename, strlen(filename) ); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:628: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). size_t len = strlen(fn); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1141:11: [1] (buffer) wcslen: Does not handle 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 = wcslen(name); data/nspr-4.29/nspr/pr/src/md/windows/w95io.c:1157:29: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). FlipSlashesW( filename, wcslen(filename) ); data/nspr-4.29/nspr/pr/src/misc/dtoa.c:1839: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). MALLOC(strlen((CONST char*)s0) + 1))) { data/nspr-4.29/nspr/pr/src/misc/pratom.c:315: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). stack->prstk_name = (char *) PR_Malloc(strlen(stack_name) + 1); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:131: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). PR_ASSERT( strlen(qName) <= PRCOUNTER_NAME_MAX ); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:132: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). PR_ASSERT( strlen(rName) <= PRCOUNTER_NAME_MAX ); data/nspr-4.29/nspr/pr/src/misc/prcountr.c:133: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). PR_ASSERT( strlen(description) <= PRCOUNTER_DESC_MAX ); data/nspr-4.29/nspr/pr/src/misc/prdtoa.c:3591: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). resultlen = strlen(result)+1; data/nspr-4.29/nspr/pr/src/misc/prenv.c:143: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). len = strlen(*src) + 1; data/nspr-4.29/nspr/pr/src/misc/prerrortable.c:127:9: [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(buffer, " "); data/nspr-4.29/nspr/pr/src/misc/prinit.c:529: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). attr->currentDirectory = (char *) PR_MALLOC(strlen(dir) + 1); data/nspr-4.29/nspr/pr/src/misc/prinit.c:581: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). newSize = NSPR_INHERIT_FDS_STRLEN + strlen(name) data/nspr-4.29/nspr/pr/src/misc/prinit.c:585:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newSize = attr->fdInheritBufferUsed + strlen(name) data/nspr-4.29/nspr/pr/src/misc/prinit.c:626: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). int len = strlen(name); data/nspr-4.29/nspr/pr/src/misc/pripc.c:83: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). if (strlen(name) >= (PRSize)size) { data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:519: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). len = strlen(from->h_name) + 1; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:543: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). len = strlen(*ap) + 1; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:601: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). len = strlen(from->p_name) + 1; data/nspr-4.29/nspr/pr/src/misc/prnetdb.c:618: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). len = strlen(*ap) + 1; data/nspr-4.29/nspr/pr/src/misc/prsystem.c:237:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strsize = strlen(buf); data/nspr-4.29/nspr/pr/src/misc/prtime.c:1914: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). PRUint32 strSize = strlen( str ); \ data/nspr-4.29/nspr/pr/src/misc/prtrace.c:205: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). PR_ASSERT( strlen(qName) <= PRTRACE_NAME_MAX ); data/nspr-4.29/nspr/pr/src/misc/prtrace.c:206: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). PR_ASSERT( strlen(rName) <= PRTRACE_NAME_MAX ); data/nspr-4.29/nspr/pr/src/misc/prtrace.c:207: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). PR_ASSERT( strlen(description) <= PRTRACE_DESC_MAX ); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:792:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). op->result.code = read( data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:809:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). op->result.code = read( data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:1330:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read(fd->secret->md.osfd, buf, amount); data/nspr-4.29/nspr/pr/src/pthreads/ptio.c:1928:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytes = read(fd->secret->md.osfd, buf, amount); data/nspr-4.29/nspr/pr/src/pthreads/ptthread.c:1667: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). nameLen = strlen(name); data/nspr-4.29/nspr/pr/src/threads/combined/pruthr.c:1643: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). nameLen = strlen(name); data/nspr-4.29/nspr/pr/src/threads/prrwlock.c:115: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). rwlock->rw_name = (char*) PR_Malloc(strlen(lock_name) + 1); data/nspr-4.29/nspr/pr/tests/dbmalloc.c:47: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). int l = strlen(line); data/nspr-4.29/nspr/pr/tests/dbmalloc.c:146: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( (strlen(buffer) == (BUFSIZ-1)) && (buffer[BUFSIZ-2] != '\n') ) { data/nspr-4.29/nspr/pr/tests/errset.c:147: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). PR_SetErrorText( strlen(errcodes[errnum].errname), errcodes[errnum].errname ); data/nspr-4.29/nspr/pr/tests/forktest.c:88: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). if (PR_Send(sock, message, strlen(message) + 1, 0, PR_INTERVAL_NO_TIMEOUT) == data/nspr-4.29/nspr/pr/tests/libfilename.c:66: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). name = PR_Malloc(strlen("libnspr4.dll")+1); data/nspr-4.29/nspr/pr/tests/lockfile.c:150: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). PRUintn spaces = strlen(msg); data/nspr-4.29/nspr/pr/tests/prftest.c:38:9: [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(answer, "f"); data/nspr-4.29/nspr/pr/tests/prftest1.c:106:9: [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(answer, "f"); data/nspr-4.29/nspr/pr/tests/sprintf.c:432: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). strcat(fmt+strlen(fmt), signs[s]); data/nspr-4.29/nspr/pr/tests/sprintf.c:435: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). strcat(fmt+strlen(fmt), precs[p]); data/nspr-4.29/nspr/pr/tests/sprintf.c:438: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). strcat(fmt+strlen(fmt), formats[f]); data/nspr-4.29/nspr/pr/tests/stdio.c:33: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). strlen("This to standard out\n")); data/nspr-4.29/nspr/pr/tests/stdio.c:34: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). PR_ASSERT((PRInt32)strlen("This to standard out\n") == rv); data/nspr-4.29/nspr/pr/tests/stdio.c:37: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). strlen("This to standard err\n")); data/nspr-4.29/nspr/pr/tests/stdio.c:38: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). PR_ASSERT((PRInt32)strlen("This to standard err\n") == rv); data/nspr-4.29/nspr/pr/tests/testfile.c:433: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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:632: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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:634: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). path_len = strlen(pathname); data/nspr-4.29/nspr/pr/tests/testfile.c:657: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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:745:9: [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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:800: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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:856: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(pathname, "/"); data/nspr-4.29/nspr/pr/tests/testfile.c:858: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). path_len = strlen(pathname); data/nspr-4.29/nspr/tools/httpget.c:369: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). PR_ASSERT(cmdSize == (PRIntn) strlen("GET HTTP/1.0\r\n\r\n") data/nspr-4.29/nspr/tools/httpget.c:370: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). + (PRIntn) strlen(path)); data/nspr-4.29/nspr/tools/tail.c:114:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PRInt32 read, bytes = fileInfo.size - position; data/nspr-4.29/nspr/tools/tail.c:119:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read != bytes) { data/nspr-4.29/nspr/tools/tail.c:122:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). position += read; data/nspr-4.29/nspr/tools/tail.c:123:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). PR_Write(out, buffer, read); ANALYSIS SUMMARY: Hits = 973 Lines analyzed = 156860 in approximately 3.81 seconds (41135 lines/second) Physical Source Lines of Code (SLOC) = 114260 Hits@level = [0] 2605 [1] 149 [2] 606 [3] 59 [4] 156 [5] 3 Hits@level+ = [0+] 3578 [1+] 973 [2+] 824 [3+] 218 [4+] 159 [5+] 3 Hits/KSLOC@level+ = [0+] 31.3145 [1+] 8.51567 [2+] 7.21162 [3+] 1.90793 [4+] 1.39156 [5+] 0.0262559 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.