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/bart-0.6.00/src/avg.c
Examining data/bart-0.6.00/src/bart.c
Examining data/bart-0.6.00/src/bart_embed_api.h
Examining data/bart-0.6.00/src/bbox.c
Examining data/bart-0.6.00/src/bench.c
Examining data/bart-0.6.00/src/bin.c
Examining data/bart-0.6.00/src/bitmask.c
Examining data/bart-0.6.00/src/cabs.c
Examining data/bart-0.6.00/src/caldir.c
Examining data/bart-0.6.00/src/calib/bin.c
Examining data/bart-0.6.00/src/calib/bin.h
Examining data/bart-0.6.00/src/calib/calib.c
Examining data/bart-0.6.00/src/calib/calib.h
Examining data/bart-0.6.00/src/calib/calibcu.h
Examining data/bart-0.6.00/src/calib/calmat.c
Examining data/bart-0.6.00/src/calib/calmat.h
Examining data/bart-0.6.00/src/calib/cc.c
Examining data/bart-0.6.00/src/calib/cc.h
Examining data/bart-0.6.00/src/calib/delays.c
Examining data/bart-0.6.00/src/calib/delays.h
Examining data/bart-0.6.00/src/calib/direct.c
Examining data/bart-0.6.00/src/calib/direct.h
Examining data/bart-0.6.00/src/calib/estvar.c
Examining data/bart-0.6.00/src/calib/estvar.h
Examining data/bart-0.6.00/src/calib/softweight.c
Examining data/bart-0.6.00/src/calib/softweight.h
Examining data/bart-0.6.00/src/calib/ssa.c
Examining data/bart-0.6.00/src/calib/ssa.h
Examining data/bart-0.6.00/src/calib/walsh.c
Examining data/bart-0.6.00/src/calib/walsh.h
Examining data/bart-0.6.00/src/calmat.c
Examining data/bart-0.6.00/src/carg.c
Examining data/bart-0.6.00/src/casorati.c
Examining data/bart-0.6.00/src/cc.c
Examining data/bart-0.6.00/src/ccapply.c
Examining data/bart-0.6.00/src/cdf97.c
Examining data/bart-0.6.00/src/circshift.c
Examining data/bart-0.6.00/src/conj.c
Examining data/bart-0.6.00/src/conv.c
Examining data/bart-0.6.00/src/copy.c
Examining data/bart-0.6.00/src/cpyphs.c
Examining data/bart-0.6.00/src/creal.c
Examining data/bart-0.6.00/src/crop.c
Examining data/bart-0.6.00/src/delta.c
Examining data/bart-0.6.00/src/dfwavelet/dfwavelet.c
Examining data/bart-0.6.00/src/dfwavelet/dfwavelet.h
Examining data/bart-0.6.00/src/dfwavelet/dfwavelet_impl.h
Examining data/bart-0.6.00/src/dfwavelet/dfwavelet_kernels.h
Examining data/bart-0.6.00/src/dfwavelet/prox_dfwavelet.c
Examining data/bart-0.6.00/src/dfwavelet/prox_dfwavelet.h
Examining data/bart-0.6.00/src/ecalib.c
Examining data/bart-0.6.00/src/ecaltwo.c
Examining data/bart-0.6.00/src/estdelay.c
Examining data/bart-0.6.00/src/estdims.c
Examining data/bart-0.6.00/src/estshift.c
Examining data/bart-0.6.00/src/estvar.c
Examining data/bart-0.6.00/src/extract.c
Examining data/bart-0.6.00/src/fakeksp.c
Examining data/bart-0.6.00/src/fft.c
Examining data/bart-0.6.00/src/fftmod.c
Examining data/bart-0.6.00/src/fftrot.c
Examining data/bart-0.6.00/src/fftshift.c
Examining data/bart-0.6.00/src/filter.c
Examining data/bart-0.6.00/src/flatten.c
Examining data/bart-0.6.00/src/flip.c
Examining data/bart-0.6.00/src/fmac.c
Examining data/bart-0.6.00/src/geom/draw.c
Examining data/bart-0.6.00/src/geom/draw.h
Examining data/bart-0.6.00/src/geom/logo.c
Examining data/bart-0.6.00/src/geom/logo.h
Examining data/bart-0.6.00/src/geom/polygon.c
Examining data/bart-0.6.00/src/geom/polygon.h
Examining data/bart-0.6.00/src/grecon/italgo.c
Examining data/bart-0.6.00/src/grecon/italgo.h
Examining data/bart-0.6.00/src/grecon/optreg.c
Examining data/bart-0.6.00/src/grecon/optreg.h
Examining data/bart-0.6.00/src/homodyne.c
Examining data/bart-0.6.00/src/index.c
Examining data/bart-0.6.00/src/invert.c
Examining data/bart-0.6.00/src/ismrm/read.c
Examining data/bart-0.6.00/src/ismrm/read.h
Examining data/bart-0.6.00/src/ismrmrd.c
Examining data/bart-0.6.00/src/iter/admm.c
Examining data/bart-0.6.00/src/iter/admm.h
Examining data/bart-0.6.00/src/iter/italgos.c
Examining data/bart-0.6.00/src/iter/italgos.h
Examining data/bart-0.6.00/src/iter/iter.c
Examining data/bart-0.6.00/src/iter/iter.h
Examining data/bart-0.6.00/src/iter/iter2.c
Examining data/bart-0.6.00/src/iter/iter2.h
Examining data/bart-0.6.00/src/iter/iter3.c
Examining data/bart-0.6.00/src/iter/iter3.h
Examining data/bart-0.6.00/src/iter/iter4.c
Examining data/bart-0.6.00/src/iter/iter4.h
Examining data/bart-0.6.00/src/iter/iter5.c
Examining data/bart-0.6.00/src/iter/iter5.h
Examining data/bart-0.6.00/src/iter/itop.c
Examining data/bart-0.6.00/src/iter/itop.h
Examining data/bart-0.6.00/src/iter/lad.c
Examining data/bart-0.6.00/src/iter/lad.h
Examining data/bart-0.6.00/src/iter/lsqr.c
Examining data/bart-0.6.00/src/iter/lsqr.h
Examining data/bart-0.6.00/src/iter/misc.c
Examining data/bart-0.6.00/src/iter/misc.h
Examining data/bart-0.6.00/src/iter/monitor.c
Examining data/bart-0.6.00/src/iter/monitor.h
Examining data/bart-0.6.00/src/iter/niht.c
Examining data/bart-0.6.00/src/iter/niht.h
Examining data/bart-0.6.00/src/iter/prox.c
Examining data/bart-0.6.00/src/iter/prox.h
Examining data/bart-0.6.00/src/iter/thresh.c
Examining data/bart-0.6.00/src/iter/thresh.h
Examining data/bart-0.6.00/src/iter/vec.c
Examining data/bart-0.6.00/src/iter/vec.h
Examining data/bart-0.6.00/src/itsense.c
Examining data/bart-0.6.00/src/join.c
Examining data/bart-0.6.00/src/lapacke/lapacke.h
Examining data/bart-0.6.00/src/lapacke/lapacke_cge_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cge_trans.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cgesdd.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cgesdd_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cgesvd.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cgesvd_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_che_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cheev.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cheev_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cpo_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cpo_trans.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cpotrf.c
Examining data/bart-0.6.00/src/lapacke/lapacke_cpotrf_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ctr_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ctr_trans.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ctrtri.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ctrtri_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_lsame.c
Examining data/bart-0.6.00/src/lapacke/lapacke_mangling.h
Examining data/bart-0.6.00/src/lapacke/lapacke_utils.h
Examining data/bart-0.6.00/src/lapacke/lapacke_xerbla.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zge_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zge_trans.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zgesdd.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zgesdd_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zhe_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zhe_trans.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zheev.c
Examining data/bart-0.6.00/src/lapacke/lapacke_zheev_work.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ztr_nancheck.c
Examining data/bart-0.6.00/src/lapacke/lapacke_ztr_trans.c
Examining data/bart-0.6.00/src/linops/decompose_complex.c
Examining data/bart-0.6.00/src/linops/decompose_complex.h
Examining data/bart-0.6.00/src/linops/finite_diff.c
Examining data/bart-0.6.00/src/linops/finite_diff.h
Examining data/bart-0.6.00/src/linops/fmac.c
Examining data/bart-0.6.00/src/linops/fmac.h
Examining data/bart-0.6.00/src/linops/grad.c
Examining data/bart-0.6.00/src/linops/grad.h
Examining data/bart-0.6.00/src/linops/linop.c
Examining data/bart-0.6.00/src/linops/linop.h
Examining data/bart-0.6.00/src/linops/lintest.c
Examining data/bart-0.6.00/src/linops/lintest.h
Examining data/bart-0.6.00/src/linops/realval.c
Examining data/bart-0.6.00/src/linops/realval.h
Examining data/bart-0.6.00/src/linops/sampling.c
Examining data/bart-0.6.00/src/linops/sampling.h
Examining data/bart-0.6.00/src/linops/someops.c
Examining data/bart-0.6.00/src/linops/someops.h
Examining data/bart-0.6.00/src/linops/sum.c
Examining data/bart-0.6.00/src/linops/sum.h
Examining data/bart-0.6.00/src/linops/waveop.c
Examining data/bart-0.6.00/src/linops/waveop.h
Examining data/bart-0.6.00/src/looklocker.c
Examining data/bart-0.6.00/src/lowrank/batchsvd.c
Examining data/bart-0.6.00/src/lowrank/batchsvd.h
Examining data/bart-0.6.00/src/lowrank/lrthresh.c
Examining data/bart-0.6.00/src/lowrank/lrthresh.h
Examining data/bart-0.6.00/src/lowrank/svthresh.c
Examining data/bart-0.6.00/src/lowrank/svthresh.h
Examining data/bart-0.6.00/src/lrmatrix.c
Examining data/bart-0.6.00/src/main.c
Examining data/bart-0.6.00/src/main.h
Examining data/bart-0.6.00/src/mandelbrot.c
Examining data/bart-0.6.00/src/mat2cfl.c
Examining data/bart-0.6.00/src/mip.c
Examining data/bart-0.6.00/src/misc/Orchestra.cc
Examining data/bart-0.6.00/src/misc/cppmap.h
Examining data/bart-0.6.00/src/misc/cppwrap.h
Examining data/bart-0.6.00/src/misc/debug.c
Examining data/bart-0.6.00/src/misc/debug.h
Examining data/bart-0.6.00/src/misc/dicom.c
Examining data/bart-0.6.00/src/misc/dicom.h
Examining data/bart-0.6.00/src/misc/io.c
Examining data/bart-0.6.00/src/misc/io.h
Examining data/bart-0.6.00/src/misc/misc.c
Examining data/bart-0.6.00/src/misc/misc.h
Examining data/bart-0.6.00/src/misc/mmio.c
Examining data/bart-0.6.00/src/misc/mmio.h
Examining data/bart-0.6.00/src/misc/mmiocc.cc
Examining data/bart-0.6.00/src/misc/mri.c
Examining data/bart-0.6.00/src/misc/mri.h
Examining data/bart-0.6.00/src/misc/nested.h
Examining data/bart-0.6.00/src/misc/opts.c
Examining data/bart-0.6.00/src/misc/opts.h
Examining data/bart-0.6.00/src/misc/pd.c
Examining data/bart-0.6.00/src/misc/pd.h
Examining data/bart-0.6.00/src/misc/png.c
Examining data/bart-0.6.00/src/misc/png.h
Examining data/bart-0.6.00/src/misc/resize.c
Examining data/bart-0.6.00/src/misc/resize.h
Examining data/bart-0.6.00/src/misc/shrdptr.c
Examining data/bart-0.6.00/src/misc/shrdptr.h
Examining data/bart-0.6.00/src/misc/subpixel.c
Examining data/bart-0.6.00/src/misc/subpixel.h
Examining data/bart-0.6.00/src/misc/types.h
Examining data/bart-0.6.00/src/misc/utils.c
Examining data/bart-0.6.00/src/misc/utils.h
Examining data/bart-0.6.00/src/misc/version.c
Examining data/bart-0.6.00/src/misc/version.h
Examining data/bart-0.6.00/src/misc/ya_getopt.c
Examining data/bart-0.6.00/src/misc/ya_getopt.h
Examining data/bart-0.6.00/src/moba.c
Examining data/bart-0.6.00/src/moba/T1fun.c
Examining data/bart-0.6.00/src/moba/T1fun.h
Examining data/bart-0.6.00/src/moba/iter_l1.c
Examining data/bart-0.6.00/src/moba/iter_l1.h
Examining data/bart-0.6.00/src/moba/model_T1.c
Examining data/bart-0.6.00/src/moba/model_T1.h
Examining data/bart-0.6.00/src/moba/recon_T1.c
Examining data/bart-0.6.00/src/moba/recon_T1.h
Examining data/bart-0.6.00/src/nlinv.c
Examining data/bart-0.6.00/src/nlops/cast.c
Examining data/bart-0.6.00/src/nlops/cast.h
Examining data/bart-0.6.00/src/nlops/chain.c
Examining data/bart-0.6.00/src/nlops/chain.h
Examining data/bart-0.6.00/src/nlops/nlop.c
Examining data/bart-0.6.00/src/nlops/nlop.h
Examining data/bart-0.6.00/src/nlops/nltest.c
Examining data/bart-0.6.00/src/nlops/nltest.h
Examining data/bart-0.6.00/src/nlops/tenmul.c
Examining data/bart-0.6.00/src/nlops/tenmul.h
Examining data/bart-0.6.00/src/nlops/zexp.c
Examining data/bart-0.6.00/src/nlops/zexp.h
Examining data/bart-0.6.00/src/noir/misc.c
Examining data/bart-0.6.00/src/noir/misc.h
Examining data/bart-0.6.00/src/noir/model.c
Examining data/bart-0.6.00/src/noir/model.h
Examining data/bart-0.6.00/src/noir/recon.c
Examining data/bart-0.6.00/src/noir/recon.h
Examining data/bart-0.6.00/src/noise.c
Examining data/bart-0.6.00/src/noncart/grid.c
Examining data/bart-0.6.00/src/noncart/grid.h
Examining data/bart-0.6.00/src/noncart/nudft.c
Examining data/bart-0.6.00/src/noncart/nudft.h
Examining data/bart-0.6.00/src/noncart/nufft.c
Examining data/bart-0.6.00/src/noncart/nufft.h
Examining data/bart-0.6.00/src/noncart/nufft_priv.h
Examining data/bart-0.6.00/src/noncart/precond.c
Examining data/bart-0.6.00/src/noncart/precond.h
Examining data/bart-0.6.00/src/noncart/traj.c
Examining data/bart-0.6.00/src/noncart/traj.h
Examining data/bart-0.6.00/src/normalize.c
Examining data/bart-0.6.00/src/nrmse.c
Examining data/bart-0.6.00/src/nufft.c
Examining data/bart-0.6.00/src/num/blas.c
Examining data/bart-0.6.00/src/num/blas.h
Examining data/bart-0.6.00/src/num/blockproc.c
Examining data/bart-0.6.00/src/num/blockproc.h
Examining data/bart-0.6.00/src/num/casorati.c
Examining data/bart-0.6.00/src/num/casorati.h
Examining data/bart-0.6.00/src/num/chebfun.c
Examining data/bart-0.6.00/src/num/chebfun.h
Examining data/bart-0.6.00/src/num/conv.c
Examining data/bart-0.6.00/src/num/conv.h
Examining data/bart-0.6.00/src/num/convoaa.c
Examining data/bart-0.6.00/src/num/convoaa.h
Examining data/bart-0.6.00/src/num/fft-cuda.c
Examining data/bart-0.6.00/src/num/fft-cuda.h
Examining data/bart-0.6.00/src/num/fft.c
Examining data/bart-0.6.00/src/num/fft.h
Examining data/bart-0.6.00/src/num/filter.c
Examining data/bart-0.6.00/src/num/filter.h
Examining data/bart-0.6.00/src/num/flpmath.c
Examining data/bart-0.6.00/src/num/flpmath.h
Examining data/bart-0.6.00/src/num/gpukrnls.h
Examining data/bart-0.6.00/src/num/gpuops.c
Examining data/bart-0.6.00/src/num/gpuops.h
Examining data/bart-0.6.00/src/num/init.c
Examining data/bart-0.6.00/src/num/init.h
Examining data/bart-0.6.00/src/num/iovec.c
Examining data/bart-0.6.00/src/num/iovec.h
Examining data/bart-0.6.00/src/num/lapack.c
Examining data/bart-0.6.00/src/num/lapack.h
Examining data/bart-0.6.00/src/num/linalg.c
Examining data/bart-0.6.00/src/num/linalg.h
Examining data/bart-0.6.00/src/num/loop.c
Examining data/bart-0.6.00/src/num/loop.h
Examining data/bart-0.6.00/src/num/mdfft.c
Examining data/bart-0.6.00/src/num/mdfft.h
Examining data/bart-0.6.00/src/num/mem.c
Examining data/bart-0.6.00/src/num/mem.h
Examining data/bart-0.6.00/src/num/multind.c
Examining data/bart-0.6.00/src/num/multind.h
Examining data/bart-0.6.00/src/num/ode.c
Examining data/bart-0.6.00/src/num/ode.h
Examining data/bart-0.6.00/src/num/ops.c
Examining data/bart-0.6.00/src/num/ops.h
Examining data/bart-0.6.00/src/num/ops_p.c
Examining data/bart-0.6.00/src/num/ops_p.h
Examining data/bart-0.6.00/src/num/optimize.c
Examining data/bart-0.6.00/src/num/optimize.h
Examining data/bart-0.6.00/src/num/polynom.c
Examining data/bart-0.6.00/src/num/polynom.h
Examining data/bart-0.6.00/src/num/qform.c
Examining data/bart-0.6.00/src/num/qform.h
Examining data/bart-0.6.00/src/num/rand.c
Examining data/bart-0.6.00/src/num/rand.h
Examining data/bart-0.6.00/src/num/shuffle.c
Examining data/bart-0.6.00/src/num/shuffle.h
Examining data/bart-0.6.00/src/num/simplex.c
Examining data/bart-0.6.00/src/num/simplex.h
Examining data/bart-0.6.00/src/num/specfun.c
Examining data/bart-0.6.00/src/num/specfun.h
Examining data/bart-0.6.00/src/num/splines.c
Examining data/bart-0.6.00/src/num/splines.h
Examining data/bart-0.6.00/src/num/vec3.c
Examining data/bart-0.6.00/src/num/vec3.h
Examining data/bart-0.6.00/src/num/vecops.c
Examining data/bart-0.6.00/src/num/vecops.h
Examining data/bart-0.6.00/src/num/wavelet.c
Examining data/bart-0.6.00/src/num/wavelet.h
Examining data/bart-0.6.00/src/ones.c
Examining data/bart-0.6.00/src/pattern.c
Examining data/bart-0.6.00/src/phantom.c
Examining data/bart-0.6.00/src/pics.c
Examining data/bart-0.6.00/src/pocsense.c
Examining data/bart-0.6.00/src/poisson.c
Examining data/bart-0.6.00/src/poly.c
Examining data/bart-0.6.00/src/python/pyBART_docstrings.c
Examining data/bart-0.6.00/src/python/pyBART_pybind11_patch.h
Examining data/bart-0.6.00/src/repmat.c
Examining data/bart-0.6.00/src/reshape.c
Examining data/bart-0.6.00/src/resize.c
Examining data/bart-0.6.00/src/rmfreq.c
Examining data/bart-0.6.00/src/rof.c
Examining data/bart-0.6.00/src/rss.c
Examining data/bart-0.6.00/src/rtnlinv.c
Examining data/bart-0.6.00/src/sake.c
Examining data/bart-0.6.00/src/sake/sake.c
Examining data/bart-0.6.00/src/sake/sake.h
Examining data/bart-0.6.00/src/saxpy.c
Examining data/bart-0.6.00/src/scale.c
Examining data/bart-0.6.00/src/sdot.c
Examining data/bart-0.6.00/src/sense/model.c
Examining data/bart-0.6.00/src/sense/model.h
Examining data/bart-0.6.00/src/sense/optcom.c
Examining data/bart-0.6.00/src/sense/optcom.h
Examining data/bart-0.6.00/src/sense/pocs.c
Examining data/bart-0.6.00/src/sense/pocs.h
Examining data/bart-0.6.00/src/sense/recon.c
Examining data/bart-0.6.00/src/sense/recon.h
Examining data/bart-0.6.00/src/show.c
Examining data/bart-0.6.00/src/simu/biot_savart.c
Examining data/bart-0.6.00/src/simu/biot_savart.h
Examining data/bart-0.6.00/src/simu/bloch.c
Examining data/bart-0.6.00/src/simu/bloch.h
Examining data/bart-0.6.00/src/simu/coil.c
Examining data/bart-0.6.00/src/simu/coil.h
Examining data/bart-0.6.00/src/simu/phantom.c
Examining data/bart-0.6.00/src/simu/phantom.h
Examining data/bart-0.6.00/src/simu/sens.c
Examining data/bart-0.6.00/src/simu/sens.h
Examining data/bart-0.6.00/src/simu/shape.c
Examining data/bart-0.6.00/src/simu/shape.h
Examining data/bart-0.6.00/src/simu/shepplogan.c
Examining data/bart-0.6.00/src/simu/shepplogan.h
Examining data/bart-0.6.00/src/slice.c
Examining data/bart-0.6.00/src/spow.c
Examining data/bart-0.6.00/src/sqpics.c
Examining data/bart-0.6.00/src/squeeze.c
Examining data/bart-0.6.00/src/ssa.c
Examining data/bart-0.6.00/src/std.c
Examining data/bart-0.6.00/src/svd.c
Examining data/bart-0.6.00/src/tgv.c
Examining data/bart-0.6.00/src/threshold.c
Examining data/bart-0.6.00/src/toimg.c
Examining data/bart-0.6.00/src/traj.c
Examining data/bart-0.6.00/src/transpose.c
Examining data/bart-0.6.00/src/twixread.c
Examining data/bart-0.6.00/src/upat.c
Examining data/bart-0.6.00/src/var.c
Examining data/bart-0.6.00/src/vec.c
Examining data/bart-0.6.00/src/version.c
Examining data/bart-0.6.00/src/walsh.c
Examining data/bart-0.6.00/src/wave.c
Examining data/bart-0.6.00/src/wavelet.c
Examining data/bart-0.6.00/src/wavelet/wavelet.c
Examining data/bart-0.6.00/src/wavelet/wavelet.h
Examining data/bart-0.6.00/src/wavelet/wavthresh.c
Examining data/bart-0.6.00/src/wavelet/wavthresh.h
Examining data/bart-0.6.00/src/wavelet/wl3-cuda.h
Examining data/bart-0.6.00/src/wavepsf.c
Examining data/bart-0.6.00/src/whiten.c
Examining data/bart-0.6.00/src/window.c
Examining data/bart-0.6.00/src/wshfl.c
Examining data/bart-0.6.00/src/zeros.c
Examining data/bart-0.6.00/src/zexp.c
Examining data/bart-0.6.00/utests/test_batchsvd.c
Examining data/bart-0.6.00/utests/test_biot_savart.c
Examining data/bart-0.6.00/utests/test_blas.c
Examining data/bart-0.6.00/utests/test_cudafft.c
Examining data/bart-0.6.00/utests/test_flpmath.c
Examining data/bart-0.6.00/utests/test_flpmath_data.h
Examining data/bart-0.6.00/utests/test_iter.c
Examining data/bart-0.6.00/utests/test_linalg.c
Examining data/bart-0.6.00/utests/test_linop.c
Examining data/bart-0.6.00/utests/test_linop_matrix.c
Examining data/bart-0.6.00/utests/test_mdfft.c
Examining data/bart-0.6.00/utests/test_misc.c
Examining data/bart-0.6.00/utests/test_moba.c
Examining data/bart-0.6.00/utests/test_multind.c
Examining data/bart-0.6.00/utests/test_nlop.c
Examining data/bart-0.6.00/utests/test_nufft.c
Examining data/bart-0.6.00/utests/test_ops.c
Examining data/bart-0.6.00/utests/test_ops_p.c
Examining data/bart-0.6.00/utests/test_pattern.c
Examining data/bart-0.6.00/utests/test_polynom.c
Examining data/bart-0.6.00/utests/test_prox.c
Examining data/bart-0.6.00/utests/test_splines.c
Examining data/bart-0.6.00/utests/test_types.c
Examining data/bart-0.6.00/utests/test_window.c
Examining data/bart-0.6.00/utests/utest.c
Examining data/bart-0.6.00/utests/utest.h
Examining data/bart-0.6.00/utests/utest_gpu.c
Examining data/bart-0.6.00/utests/test_ode_bloch.c

FINAL RESULTS:

data/bart-0.6.00/src/bart.c:119:14:  [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.
			if (-1 == execv(cmd, argv + 1)) {
data/bart-0.6.00/src/calib/estvar.c:83:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(name, "%s%s%s%ldx%ldx%ld_%s%ldx%ldx%ldx%ld%s",
data/bart-0.6.00/src/join.c:69:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(buf, argv[argc - 1]);
data/bart-0.6.00/src/join.c:72:13:  [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 (-1 == access(buf, F_OK)) {
data/bart-0.6.00/src/join.c:76:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, argv[argc - 1]);
data/bart-0.6.00/src/join.c:78:17:  [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.
			assert(-1 == access(buf, F_OK));
data/bart-0.6.00/src/join.c:80:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf, argv[argc - 1]);
data/bart-0.6.00/src/join.c:82:17:  [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.
			assert(-1 == access(buf, F_OK));
data/bart-0.6.00/src/misc/debug.c:119:3:  [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(ofp, fmt, ap);
data/bart-0.6.00/src/misc/debug.c:122:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(ofp, RESET);
data/bart-0.6.00/src/misc/debug.c:152:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(tmp, 1023, fmt, ap);
data/bart-0.6.00/src/misc/misc.c:104:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(err, 1023, fmt, ap);
data/bart-0.6.00/src/misc/misc.c:147:12:  [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.
	int ret = vfprintf(out, fmt, ap);
data/bart-0.6.00/src/misc/misc.c:481:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy((*buf) + pos, qargv[i]);
data/bart-0.6.00/src/misc/mmio.c:59:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, fmt, ap);	
data/bart-0.6.00/src/misc/mmio.c:68:7:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	     vsnprintf(err, 1023, fmt, ap);
data/bart-0.6.00/src/misc/ya_getopt.c:69:9:  [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/bart-0.6.00/src/num/fft.c:233:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(loc , "%s/save/fftw/N_%d_BACKWARD_%d_FLAGS_%d_DIMS", tbpath, N, backwards, flags);
data/bart-0.6.00/src/num/fft.c:239:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(loc, tmp);
data/bart-0.6.00/src/num/fft.c:243:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(loc, tmp);
data/bart-0.6.00/src/show.c:56:12:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		if (2 == sscanf(fmt, allowed_fmts[i], &fmt_re, &fmt_im))
data/bart-0.6.00/src/show.c:65:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(fmt, crealf(data[i]), cimagf(data[i]));
data/bart-0.6.00/src/toimg.c:122:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(name_i, "%s-%04ld.%s", name, i, dicom ? "dcm" : "png");
data/bart-0.6.00/src/toimg.c:124:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(name_i, "%s.%s", name, dicom ? "dcm" : "png");
data/bart-0.6.00/src/wavelet/wavelet.c:57: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.
static complex float* access(const long str[3], complex float* x, long i, long j, long k)
data/bart-0.6.00/src/wavelet/wavelet.c:89:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				*access(out_str, out, i, j, k) = 0.;
data/bart-0.6.00/src/wavelet/wavelet.c:95:8:  [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(out_str, out, i, j, k) += 
data/bart-0.6.00/src/wavelet/wavelet.c:117:8:  [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(out_str, out, i, j, k) += 
data/bart-0.6.00/src/bart.c:102:4:  [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.
			getenv("TOOLBOX_PATH"),
data/bart-0.6.00/src/calib/estvar.c:170: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.
	if (NULL != getenv("TOOLBOX_PATH") && 1 == load_noise_sv(kernel_dims, calreg_dims, L, E))
data/bart-0.6.00/src/calib/estvar.c:204: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.
	if (NULL != getenv("TOOLBOX_PATH"))
data/bart-0.6.00/src/calib/estvar.h:12:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define TOOLBOX_PATH getenv("TOOLBOX_PATH")
data/bart-0.6.00/src/misc/Orchestra.cc:30:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	  char* str = getenv("DEBUG_LEVEL");
data/bart-0.6.00/src/misc/debug.c:97: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.
		char* str = getenv("DEBUG_LEVEL");
data/bart-0.6.00/src/misc/opts.c:179: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 (-1 != (c = getopt(argc, argv, optstr))) {
data/bart-0.6.00/src/misc/ya_getopt.c:76:32:  [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 (optstring[0] == '+' || getenv("POSIXLY_CORRECT") != NULL) {
data/bart-0.6.00/src/misc/ya_getopt.h:62:9:  [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.
#define getopt ya_getopt
data/bart-0.6.00/src/misc/ya_getopt.h:63:9:  [3] (buffer) getopt_long:
  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.
#define getopt_long ya_getopt_long
data/bart-0.6.00/src/num/fft.c:209: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.
	char* tbpath = getenv("TOOLBOX_PATH");
data/bart-0.6.00/src/num/init.c:57: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.
	if (NULL == getenv("OMP_NUM_THREADS"))
data/bart-0.6.00/src/num/init.c:72: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.
	if (NULL != (chunk_str = getenv("BART_PARALLEL_CHUNK_SIZE"))) {
data/bart-0.6.00/src/avg.c:43: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).
	unsigned int flags = atoi(argv[1]);
data/bart-0.6.00/src/bart.c:115:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char cmd[len];
data/bart-0.6.00/src/bitmask.c:45:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			int d = atoi(argv[i]);
data/bart-0.6.00/src/bitmask.c:56:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		flags = atoi(argv[1]);
data/bart-0.6.00/src/caldir.c:43:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int calsize_ro = atoi(argv[1]);
data/bart-0.6.00/src/calib/delays.c:230:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fp = fopen(idx_out, "w");
data/bart-0.6.00/src/calib/delays.c:233:14:  [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* fp1 = fopen(d_out, "w");
data/bart-0.6.00/src/calib/estvar.c:108:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fp = fopen(name, "rb");
data/bart-0.6.00/src/calib/estvar.c:138:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fp = fopen(name, "wb");
data/bart-0.6.00/src/casorati.c:54: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).
		unsigned int kdim = atoi(argv[i + 1]);
data/bart-0.6.00/src/casorati.c:55: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).
		unsigned int ksize = atoi(argv[i + 2]);
data/bart-0.6.00/src/cdf97.c:47: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).
	unsigned int flags = atoi(argv[1]);
data/bart-0.6.00/src/circshift.c:41:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int dim = atoi(argv[1]);
data/bart-0.6.00/src/circshift.c:42:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int shift = atoi(argv[2]);
data/bart-0.6.00/src/conv.c:35: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).
	unsigned int flags = atoi(argv[1]);
data/bart-0.6.00/src/copy.c:73:22:  [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).
		unsigned int dim = atoi(argv[i + 1]);
data/bart-0.6.00/src/copy.c:74:14:  [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).
		long pos = atol(argv[i + 2]);
data/bart-0.6.00/src/crop.c:42:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int dim = atoi(argv[1]);
data/bart-0.6.00/src/crop.c:43:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int count = atoi(argv[2]);
data/bart-0.6.00/src/delta.c:35:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int N = atoi(argv[1]);
data/bart-0.6.00/src/delta.c:36: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).
	long len = atoi(argv[3]);
data/bart-0.6.00/src/delta.c:37: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).
	unsigned int flags = atoi(argv[2]);
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:672:7:  [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(tempxyz, LxLyLz, blockSize*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:680:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(coeff, inImage, plan->waveSizes[0]*plan->waveSizes[1]*plan->waveSizes[2]*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:729:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(outImage, coeff, dx*dy*dz*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:795: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(outImage+j*dxNext + k*dxyNext, tempFull+xOffset + (yOffset+j)*dxWork + (zOffset+k)*dxyWork, dxNext*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:821:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dataCopy, data, plan->numPixel*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:878:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(dataCopy, data, plan->numPixel*sizeof(data_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:1105:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(plan->lod0, filter1, 4*filterLen*sizeof(scalar_t));
data/bart-0.6.00/src/dfwavelet/dfwavelet.c:1107:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(plan->lod1, filter2, 4*filterLen*sizeof(scalar_t));
data/bart-0.6.00/src/ecaltwo.c:75: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).
	out_dims[0] = atoi(argv[1]);
data/bart-0.6.00/src/ecaltwo.c:76: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).
	out_dims[1] = atoi(argv[2]);
data/bart-0.6.00/src/ecaltwo.c:77: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).
	out_dims[2] = atoi(argv[3]);
data/bart-0.6.00/src/estshift.c:34: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).
	unsigned int flags = atoi(argv[1]);
data/bart-0.6.00/src/extract.c:57: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).
		int dim = atoi(argv[i + 1]);
data/bart-0.6.00/src/extract.c:58:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int start = atoi(argv[i + 2]);
data/bart-0.6.00/src/extract.c:59: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).
		int end = atoi(argv[i + 3]);
data/bart-0.6.00/src/fft.c:54:29:  [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).
	unsigned long flags = labs(atol(argv[1]));
data/bart-0.6.00/src/fftmod.c:49:29:  [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).
	unsigned long flags = labs(atol(argv[1]));
data/bart-0.6.00/src/fftrot.c:51: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).
	int dim1 = atoi(argv[1]);
data/bart-0.6.00/src/fftrot.c:52: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).
	int dim2 = atoi(argv[2]);
data/bart-0.6.00/src/fftshift.c:38:29:  [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).
	unsigned long flags = labs(atol(argv[1]));
data/bart-0.6.00/src/flip.c:42: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).
	unsigned long flags = atoi(argv[1]);
data/bart-0.6.00/src/geom/draw.c:101:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void bresenham_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1)
data/bart-0.6.00/src/geom/draw.c:101:88:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void bresenham_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1)
data/bart-0.6.00/src/geom/draw.c:107: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.
		unsigned char (*out)[X][Y][4] = p;
data/bart-0.6.00/src/geom/draw.c:198:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void xiaolin_wu_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1)
data/bart-0.6.00/src/geom/draw.c:198:89:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void xiaolin_wu_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1)
data/bart-0.6.00/src/geom/draw.c:204: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.
		unsigned char (*out)[X][Y][4] = p;
data/bart-0.6.00/src/geom/draw.h:6:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void bresenham_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1);
data/bart-0.6.00/src/geom/draw.h:6:88:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void bresenham_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1);
data/bart-0.6.00/src/geom/draw.h:7:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void xiaolin_wu_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1);
data/bart-0.6.00/src/geom/draw.h:7:89:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void xiaolin_wu_rgba(int X, int Y, unsigned char (*out)[X][Y][4], const unsigned char (*val)[4], int x0, int y0, int x1, int y1);
data/bart-0.6.00/src/grecon/optreg.c:81:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rt[5];
data/bart-0.6.00/src/homodyne.c:140:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int pfdim = atoi(argv[1]);
data/bart-0.6.00/src/index.c:35:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int N = atoi(argv[1]);
data/bart-0.6.00/src/index.c:36:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int s = atoi(argv[2]);
data/bart-0.6.00/src/iter/itop.c:65:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(iconf2, data->iconf, SIZEOF(data->iconf));
data/bart-0.6.00/src/join.c:56:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int dim = atoi(argv[1]);
data/bart-0.6.00/src/join.c:68:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[len + 5];
data/bart-0.6.00/src/join.c:70:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(buf, ".cfl");
data/bart-0.6.00/src/join.c:77:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf, ".coo");
data/bart-0.6.00/src/join.c:81:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(buf, ".ra");
data/bart-0.6.00/src/lrmatrix.c:166:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&mmconf, &iter_admm_defaults, sizeof(struct iter_admm_conf));
data/bart-0.6.00/src/mat2cfl.c:72:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char outname[256];
data/bart-0.6.00/src/mip.c:53: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).
	unsigned int flags = atoi(argv[1]);
data/bart-0.6.00/src/misc/Orchestra.cc:31: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).
	  debug_level = (NULL != str) ? atoi(str) : DP_INFO;
data/bart-0.6.00/src/misc/debug.c:98: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).
		debug_level = (NULL != str) ? atoi(str) : DP_INFO;
data/bart-0.6.00/src/misc/debug.c:107:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dt_str[STRSIZE];
data/bart-0.6.00/src/misc/debug.c:151:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[1024] = { 0 };
data/bart-0.6.00/src/misc/dicom.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char vr[2];
data/bart-0.6.00/src/misc/dicom.c:126:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bool vr_oneof(const char a[2], unsigned int N, const char b[N][2])
data/bart-0.6.00/src/misc/dicom.c:126:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 bool vr_oneof(const char a[2], unsigned int N, const char b[N][2])
data/bart-0.6.00/src/misc/dicom.c:135:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int dicom_write_element(unsigned int len, char buf[static 8 + len], struct element e)
data/bart-0.6.00/src/misc/dicom.c:168:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf + o, e.data, len);
data/bart-0.6.00/src/misc/dicom.c:189:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&dicom_elements[i], &dicom_elements_default[i], sizeof(struct element));
data/bart-0.6.00/src/misc/dicom.c:194: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).
	if (-1 == (fd = open(name, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)))
data/bart-0.6.00/src/misc/dicom.c:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char inst_num[13]; // max number of bytes for InstanceNumber tag
data/bart-0.6.00/src/misc/dicom.c:239:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr + 128, "DICM", 4);
data/bart-0.6.00/src/misc/io.c:160:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char header[4097];
data/bart-0.6.00/src/misc/io.c:189:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char keyword[32];
data/bart-0.6.00/src/misc/io.c:250:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char header[4096];
data/bart-0.6.00/src/misc/io.c:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char header[4096];
data/bart-0.6.00/src/misc/misc.c:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char err[1024] = { 0 };
data/bart-0.6.00/src/misc/misc.c:435:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char (*qstr)[len + j + 3] = TYPE_ALLOC(char[len + j + 3]);
data/bart-0.6.00/src/misc/misc.c:475:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char (*buf)[len + 1] = TYPE_ALLOC(char[len + 1]);
data/bart-0.6.00/src/misc/mmio.c:67:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char err[1024] = { 0 };
data/bart-0.6.00/src/misc/mmio.c:116: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).
	if (-1 == (fd = open(name, O_RDONLY)))
data/bart-0.6.00/src/misc/mmio.c:171: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 (-1 == (ofd = open(name, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)))
data/bart-0.6.00/src/misc/mmio.c:203: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 (-1 == (ofd = open(name, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)))
data/bart-0.6.00/src/misc/mmio.c:234:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dims + 1, dimensions, D * sizeof(long));
data/bart-0.6.00/src/misc/mmio.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_bdy[1024];
data/bart-0.6.00/src/misc/mmio.c:265:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_hdr[1024];
data/bart-0.6.00/src/misc/mmio.c:270: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 (-1 == (ofd = open(name_hdr, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR)))
data/bart-0.6.00/src/misc/mmio.c:290: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).
	if (-1 == (fd = open(name, O_RDONLY)))
data/bart-0.6.00/src/misc/mmio.c:328:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dimensions, dims + 1, D * sizeof(long));
data/bart-0.6.00/src/misc/mmio.c:370:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_bdy[1024];
data/bart-0.6.00/src/misc/mmio.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name_hdr[1024];
data/bart-0.6.00/src/misc/mmio.c:379: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 (-1 == (ofd = open(name_hdr, O_RDONLY)))
data/bart-0.6.00/src/misc/mmio.c:418:25:  [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 (-1 == (fd = open(name, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)))
data/bart-0.6.00/src/misc/mmio.c:467: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).
	if (-1 == (fd = open(name, O_RDONLY)))
data/bart-0.6.00/src/misc/mmio.c:498: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).
	if (-1 == (fd = open(name, O_RDONLY)))
data/bart-0.6.00/src/misc/mmiocc.cc:369: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] = { '\0' };
data/bart-0.6.00/src/misc/opts.c:128:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 void process_option(char c, const char* optarg, const char* name, const char* usage_str, const char* help_str, int n, const struct opt_s opts[n ?: 1])
data/bart-0.6.00/src/misc/opts.c:158:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char optstr[2 * n + 2];
data/bart-0.6.00/src/misc/opts.c:243:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*(int*)ptr = atoi(optarg);
data/bart-0.6.00/src/misc/opts.c:250: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).
	*(unsigned int*)ptr = atoi(optarg);
data/bart-0.6.00/src/misc/opts.c:257: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).
	*(long*)ptr = atoi(optarg);
data/bart-0.6.00/src/misc/opts.c:292: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).
			(*(long(*)[3])ptr)[0] = atol(optarg);
data/bart-0.6.00/src/misc/opts.c:293: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).
			(*(long(*)[3])ptr)[1] = atol(optarg);
data/bart-0.6.00/src/misc/opts.c:323: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).
			(*(long(*)[3])ptr)[0] = atol(optarg);
data/bart-0.6.00/src/misc/opts.c:324: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).
			(*(long(*)[3])ptr)[1] = atol(optarg);
data/bart-0.6.00/src/misc/opts.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).
			(*(long(*)[3])ptr)[2] = atol(optarg);
data/bart-0.6.00/src/misc/opts.c:346:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sel->ptr, sel->value, sel->size);
data/bart-0.6.00/src/misc/png.c:29:20:  [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 (NULL == (fp = fopen(name, "wb")))
data/bart-0.6.00/src/misc/ya_getopt.c:140:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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)[i] = argv[i + 1];
data/bart-0.6.00/src/misc/ya_getopt.c:142:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ((char const **)argv)[i] = arg;
data/bart-0.6.00/src/normalize.c:49:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int flags = atoi(argv[1]);
data/bart-0.6.00/src/num/blas.c:34: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.
void blas_cgemm(char transa, char transb, long M, long N,  long K, const complex float alpha, long lda, const complex float A[K][lda], long ldb, const complex float B[N][ldb], const complex float beta, long ldc, complex float C[N][ldc])
data/bart-0.6.00/src/num/blas.c:34:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void blas_cgemm(char transa, char transb, long M, long N,  long K, const complex float alpha, long lda, const complex float A[K][lda], long ldb, const complex float B[N][ldb], const complex float beta, long ldc, complex float C[N][ldc])
data/bart-0.6.00/src/num/blas.h:8:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void blas_cgemm(char transa, char transb, long M, long N, long K, const complex float alpha, long lda, const complex float A[M][lda], long ldb, const complex float B[K][ldb], const complex float beta, long ldc, complex float C[M][ldc]);
data/bart-0.6.00/src/num/blas.h:8:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void blas_cgemm(char transa, char transb, long M, long N, long K, const complex float alpha, long lda, const complex float A[M][lda], long ldb, const complex float B[K][ldb], const complex float beta, long ldc, complex float C[M][ldc]);
data/bart-0.6.00/src/num/blas.h:9:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void blas_csyrk(char uplow, char trans, long N, long K, complex float alpha, long lda, const complex float A[*][lda], complex float beta, long ldc, complex float C[*][ldc]);
data/bart-0.6.00/src/num/blas.h:9:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void blas_csyrk(char uplow, char trans, long N, long K, complex float alpha, long lda, const complex float A[*][lda], complex float beta, long ldc, complex float C[*][ldc]);
data/bart-0.6.00/src/num/fft.c:235:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp[64];
data/bart-0.6.00/src/num/fft.c:238:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tmp, "_%lu", dims[idx]);
data/bart-0.6.00/src/num/fft.c:242:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(tmp, ".fftw");
data/bart-0.6.00/src/num/filter.c:50:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, ar, N * sizeof(float));
data/bart-0.6.00/src/num/filter.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, ar, N * sizeof(complex float));
data/bart-0.6.00/src/num/iovec.c:38:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*ndims, dims, N * sizeof(long));
data/bart-0.6.00/src/num/iovec.c:42:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*nstrs, strs, N * sizeof(long));
data/bart-0.6.00/src/num/lapack.c:68: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.
static void lapack_cholesky_UL(long N, char UL, complex float A[N][N])
data/bart-0.6.00/src/num/lapack.c:84:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void lapack_trimat_inverse_UL(long N, char UL, complex float A[N][N])
data/bart-0.6.00/src/num/multind.c:338:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(odims, idims, D  * sizeof(long));
data/bart-0.6.00/src/num/multind.c:350:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ostrs, istrs, D  * sizeof(long));
data/bart-0.6.00/src/num/multind.c:704:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr[0], ptr[1], size2);
data/bart-0.6.00/src/num/multind.c:799:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp, ptr[0], size2);
data/bart-0.6.00/src/num/multind.c:802: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(ptr[i], ptr[i + 1], size2);
data/bart-0.6.00/src/num/multind.c:804:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(ptr[M - 1], tmp, size2);
data/bart-0.6.00/src/num/ops.c:1496:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nperm, perm, sizeof(int[N]));
data/bart-0.6.00/src/num/optimize.c:180:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tmp, x, N * sizeof(long));
data/bart-0.6.00/src/num/optimize.c:637:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(np + n * sizes[i], nptr[i], sizes[i]);
data/bart-0.6.00/src/ones.c:35:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int N = atoi(argv[1]);
data/bart-0.6.00/src/ones.c:44: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).
		dims[i] = atoi(argv[2 + i]);
data/bart-0.6.00/src/poly.c:36:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int L = atoi(argv[1]);
data/bart-0.6.00/src/poly.c:37:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int N = atoi(argv[2]);
data/bart-0.6.00/src/repmat.c:40:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int dim = atoi(argv[1]);
data/bart-0.6.00/src/repmat.c:41:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int rep = atoi(argv[2]);
data/bart-0.6.00/src/reshape.c:36:24:  [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).
	unsigned long flags = atol(argv[1]);
data/bart-0.6.00/src/reshape.c:52: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).
			out_dims[i] = atoi(argv[j++ + 2]);
data/bart-0.6.00/src/resize.c:63:22:  [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).
		unsigned int dim = atoi(argv[i + 1]);
data/bart-0.6.00/src/resize.c:64: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).
		unsigned int size = atoi(argv[i + 2]);
data/bart-0.6.00/src/rof.c:59:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int flags = atoi(argv[2]);
data/bart-0.6.00/src/rss.c:42:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int flags = atoi(argv[1]);
data/bart-0.6.00/src/show.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt_re[strlen(fmt)];
data/bart-0.6.00/src/show.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fmt_im[strlen(fmt)];
data/bart-0.6.00/src/slice.c:59:22:  [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).
		unsigned int dim = atoi(argv[i + 1]);
data/bart-0.6.00/src/slice.c:60:22:  [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).
		unsigned int pos = atoi(argv[i + 2]);
data/bart-0.6.00/src/sqpics.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rt[5];
data/bart-0.6.00/src/std.c:38:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	long flags = atoi(argv[1]);
data/bart-0.6.00/src/tgv.c:67:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int flags = atoi(argv[2]);
data/bart-0.6.00/src/toimg.c:62:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char (*buf)[h][w][nr_bytes] = TYPE_ALLOC(unsigned char[h][w][nr_bytes]);
data/bart-0.6.00/src/toimg.c:119:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name_i[len + 10]; // extra space for ".0000.png"
data/bart-0.6.00/src/transpose.c:35: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).
	int dim1 = atoi(argv[1]);
data/bart-0.6.00/src/transpose.c:36: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).
	int dim2 = atoi(argv[2]);
data/bart-0.6.00/src/twixread.c:46: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 patient[64];
data/bart-0.6.00/src/twixread.c:47: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 protocol[64];
data/bart-0.6.00/src/twixread.c:123:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scan_hdr[vd ? 192 : 0];
data/bart-0.6.00/src/twixread.c:132:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char chan_hdr[vd ? 32 : 128];
data/bart-0.6.00/src/twixread.c:167:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[size];
data/bart-0.6.00/src/twixread.c:178:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char scan_hdr[vd ? 192 : 0];
data/bart-0.6.00/src/twixread.c:183:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char chan_hdr[vd ? 32 : 128];
data/bart-0.6.00/src/twixread.c:272:26:  [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 (-1 == (ifd = open(argv[1], O_RDONLY)))
data/bart-0.6.00/src/var.c:38:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	long flags = atoi(argv[1]);
data/bart-0.6.00/src/wavelet.c:71:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				dims[i] = atoi(argv[j++ + 2]);
data/bart-0.6.00/src/window.c:44:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	long flags = atoi(argv[1]);
data/bart-0.6.00/src/zeros.c:34:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int N = atoi(argv[1]);
data/bart-0.6.00/src/zeros.c:43: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).
		dims[i] = atoi(argv[2 + i]);
data/bart-0.6.00/src/bart.c:113: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).
			size_t len = strlen(tpath[i]) + strlen(argv[1]) + 2;
data/bart-0.6.00/src/bart.c:113:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			size_t len = strlen(tpath[i]) + strlen(argv[1]) + 2;
data/bart-0.6.00/src/calib/estvar.c:66:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int space[] = {strlen(TOOLBOX_PATH), strlen(PATH), strlen(KERNEL),
data/bart-0.6.00/src/calib/estvar.c:66:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int space[] = {strlen(TOOLBOX_PATH), strlen(PATH), strlen(KERNEL),
data/bart-0.6.00/src/calib/estvar.c:66:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int space[] = {strlen(TOOLBOX_PATH), strlen(PATH), strlen(KERNEL),
data/bart-0.6.00/src/calib/estvar.c:69: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).
	  floor(log10(kernel_dims[2])) + 2, strlen(CALREG),
data/bart-0.6.00/src/calib/estvar.c:73: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).
	  floor(log10(calreg_dims[3])) + 1, strlen(DAT) + 1};
data/bart-0.6.00/src/join.c:67: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 len = strlen(argv[argc - 1]);
data/bart-0.6.00/src/misc/debug.c:155:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ('\n' == tmp[strlen(tmp) - 1])
data/bart-0.6.00/src/misc/debug.c:156:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		tmp[strlen(tmp) - 1] = '\0';
data/bart-0.6.00/src/misc/io.c:164:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (0 > (max = read(fd, header, 4096)))
data/bart-0.6.00/src/misc/io.c:191:12:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (1 == sscanf(header + pos, "# %31s\n%n", keyword, &delta)) {
data/bart-0.6.00/src/misc/io.c:294:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (4096 != read(fd, header, 4096))
data/bart-0.6.00/src/misc/io.c:374:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (sizeof(header) != read(fd, &header, sizeof(header)))
data/bart-0.6.00/src/misc/io.c:385:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((int)sizeof(dims) != read(fd, &dims, sizeof(dims)))
data/bart-0.6.00/src/misc/misc.c:434:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(str);
data/bart-0.6.00/src/misc/misc.c:472: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).
		len += strlen(qargv[i]) + 1;
data/bart-0.6.00/src/misc/misc.c:482: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).
		pos += strlen(qargv[i]);
data/bart-0.6.00/src/misc/misc.c:509: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 hlen = strlen(help);
data/bart-0.6.00/src/misc/opts.c:69: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).
		     && (')' == opt.descr[strlen(opt.descr) - 1]));
data/bart-0.6.00/src/misc/ya_getopt.c:271: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).
        namelen = strlen(opt->name);
data/bart-0.6.00/src/python/pyBART_pybind11_patch.h:8: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 = std::strlen(compiled_ver);			\
data/bart-0.6.00/src/show.c:51: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).
	char fmt_re[strlen(fmt)];
data/bart-0.6.00/src/show.c:52: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).
	char fmt_im[strlen(fmt)];
data/bart-0.6.00/src/toimg.c:58:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(name);
data/bart-0.6.00/src/toimg.c:108:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(name);
data/bart-0.6.00/src/traj.c:252:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			samples[p * 3 + 0] = d[1] + read * read_dir[1];
data/bart-0.6.00/src/traj.c:253:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			samples[p * 3 + 1] = d[0] + read * read_dir[0];
data/bart-0.6.00/src/traj.c:254:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			samples[p * 3 + 2] = d[2] + read * read_dir[2];
data/bart-0.6.00/src/twixread.c:52:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (size != (size_t)read(fd, buf, size))
data/bart-0.6.00/src/twixread.c:125:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (size != (size_t)read(fd, scan_hdr, size))
data/bart-0.6.00/src/twixread.c:134:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (size != (size_t)read(fd, chan_hdr, size))
data/bart-0.6.00/src/twixread.c:168:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (size != (size_t)read(fd, buf, size))
data/bart-0.6.00/src/version.c:37:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int len = strlen(version);

ANALYSIS SUMMARY:

Hits = 253
Lines analyzed = 88657 in approximately 2.41 seconds (36737 lines/second)
Physical Source Lines of Code (SLOC) = 59463
Hits@level = [0] 122 [1]  34 [2] 178 [3]  13 [4]  28 [5]   0
Hits@level+ = [0+] 375 [1+] 253 [2+] 219 [3+]  41 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 6.30644 [1+] 4.25475 [2+] 3.68296 [3+] 0.689504 [4+] 0.470881 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.