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/octave-ltfat-2.3.1+dfsg/inst/private/testC/test_ltfatresample.c Examining data/octave-ltfat-2.3.1+dfsg/inst/private/testC/dbg.h Examining data/octave-ltfat-2.3.1+dfsg/inst/private/testC/minunit.h Examining data/octave-ltfat-2.3.1+dfsg/src/examples/utils/ltfathelper.h Examining data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h Examining data/octave-ltfat-2.3.1+dfsg/src/examples/utils/wavhandler.h Examining data/octave-ltfat-2.3.1+dfsg/src/examples/utils/cxxopts.hpp Examining data/octave-ltfat-2.3.1+dfsg/src/examples/example_gabanasyn.c Examining data/octave-ltfat-2.3.1+dfsg/src/examples/example_dgtprocessor.cpp Examining data/octave-ltfat-2.3.1+dfsg/src/examples/multigabormp/multigabormpd.cpp Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_parbuf.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_multi.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_shear.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/reassign.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slicingbuf.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/version.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/goertzel.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ltfat_blaslapack.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/pfilt.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_windows.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wfac.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabdual.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slidgtrealmp.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabtight_fac.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/iwfac.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/memalloc.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtwrapper_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgtreal_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabdual_painless.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slidgtrealmp_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/iwmdct.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/maxtree.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_shearola.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/iwfacreal.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgt_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/error.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_guts.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_ola.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/heapint.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtreal_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dct.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/reassign_ti.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgtreal_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtwrapper.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_kernel.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtreal_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idwilt.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_memalloc.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabtight.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtreal_long_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/argchecks.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dwilt.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wmdct.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/filterbank.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/firwin_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/fftw_wrappers.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealwrapper_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/rtdgtreal.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/reassign_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dst.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtwrapper_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/spread.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wfacreal.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/utils.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_long_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ifilterbank.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slicingbuf_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealwrapper.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/heap.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgt_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabdual_fac.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/windows.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/integer_manip.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/thirdparty/kissfft/_kiss_fft_guts.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/thirdparty/kissfft/fft.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_firwin.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_ifftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_gabdual_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_gabdual_painless.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftcircshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_maxtree.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_typeindependent.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftrealfftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_idgt_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_idgt_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_dgtreal_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_all_libltfat.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftrealcircshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_dgt_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftrealifftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_idgtreal_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_circshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftifftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/runner_template.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_typecomplexindependent.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_idgtreal_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_pgauss.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/runner_multiinclude.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fftfftshift.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_dgt_long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_long2fir.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_dgtreal_fb.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_fir2long.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/multiinclude.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/test_normalize.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgt_common.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/rtdgtreal.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/macros.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgt_shear.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/typeconstant.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgt_long.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/idgt_long.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/circularbuf.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/fftw_wrappers.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgt_multi.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/idgt_fb.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/idgtreal_fb.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dct.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/blaslapack.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/typecomplexindependent.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/linalg.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/ci_memalloc.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtreal_fb.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/version.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/cblas.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/f77-fcn.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/fftw3.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/kiss_fft.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/slicingbuf.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/ti_windows.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/heap.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/idgtreal_long.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/errno.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/gabdual_painless.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/ci_windows.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtwrapper.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/maxtree.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/basicmacros.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/typeindependent.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtwrapper_typeconstant.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/reassign_typeconstant.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtreal_long.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/goertzel.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/heapint.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/slidgtrealmp.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/wavelets.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dst.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtrealwrapper.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/types.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/ciutils.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgtrealmp.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/memalloc.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/tiutils.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/dgt_fb.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtpghi_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtpghi.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/pghi_typeconstant.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/spsi.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gla.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisilapghi.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/utils.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila_private.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/pghi.c Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/gsrtisilapghi.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/pghi.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/rtisila.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/spsi.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/api.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/utils.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/legla.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/basicmacros.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/gsrtisila.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/types.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/rtpghi.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/generic.h Examining data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/include/phaseret/gla.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/polyboolclipper/clipper.hpp Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/polyboolclipper/clipper.cpp Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/polyboolclipper/polyboolmex.cpp Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/filtcoefs.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/config.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/portaudio.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/mex_dll_core.c Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.h Examining data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/mex_dll_core.h Examining data/octave-ltfat-2.3.1+dfsg/lib/ltfatcompat/utils/list.c Examining data/octave-ltfat-2.3.1+dfsg/lib/ltfatcompat/utils/lcthw_List.h Examining data/octave-ltfat-2.3.1+dfsg/lib/ltfatcompat/utils/dbg.h Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_filterbank_fft.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_dct.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_gabdual_long.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_dst.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_multidgtrealmp.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/oct-memalloc.c Examining data/octave-ltfat-2.3.1+dfsg/oct/ltfat_oct_template_helper.h Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_filterbank_td.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_isepdgt.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_nonsepwin2multi.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_dwiltiii.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_maskedheapintreal.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_cellcoef2tf.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_nonsepdgt_multi.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_iwfac.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_wfac.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_nonsepdgt_shear.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_dwilt.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_heapintreal.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_ifilterbank_td.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_maskedheapint.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/config.h Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_ifilterbank_fftbl.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_sepdgt.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_pgauss.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_filterbankreassign.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_isepdgtreal.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_atrousfilterbank_td.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_ifilterbank_fft.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_filterbank_fftbl.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_chirpzt.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_idwilt.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_gga.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_heapint.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_iatrousfilterbank_td.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_gabreassign.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_idwiltiii.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_sepdgtreal.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_gabtight_long.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_pchirp.cc Examining data/octave-ltfat-2.3.1+dfsg/oct/comp_col2diag.cc FINAL RESULTS: data/octave-ltfat-2.3.1+dfsg/lib/ltfatcompat/utils/dbg.h:35:29: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define log_err(M, ...) sprintf(MEXERRSTRING,"[ERROR] (%s:%d:) " M "\n", __FILE__, __LINE__, ##__VA_ARGS__) data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/error.c:27:5: [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(reason, 500, format, ap ); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h:54:50: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define mu_assert(test, ...) do{ printf(" "); printf(__VA_ARGS__); if (!(test)) { printf(" <--- FAILED"); return 1; } printf("\n"); }while(0) data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1014:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, "This command can only be called if in state \"%s\".\n%s", data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1033:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, "This command cannot be called in state \"%s\".\n%s", data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1958:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( buffer, "%s \n{PortAudio Error [%d]: %s}", data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4710:7: [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(write_point, aboutString); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4716:25: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. write_point += sprintf(write_point, "%s (%d devices), ", apiInfo->name, apiInfo->deviceCount); data/octave-ltfat-2.3.1+dfsg/inst/private/testC/test_ltfatresample.c:14:4: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time(NULL)); data/octave-ltfat-2.3.1+dfsg/src/examples/example_gabanasyn.c:38:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(time(NULL)); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h:93:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time(NULL)); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h:103:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time(NULL)); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h:114:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time(NULL)); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/testing/cUnit/minunit.h:126:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand (time(NULL)); data/octave-ltfat-2.3.1+dfsg/oct/comp_ifilterbank_fftbl.cc:58:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(afrac,a,M*sizeof(double)); data/octave-ltfat-2.3.1+dfsg/oct/comp_maskedheapint.cc:61:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(phase.fortran_vec(), usephase.data(), M * N * W * sizeof(LTFAT_REAL)); data/octave-ltfat-2.3.1+dfsg/oct/comp_maskedheapintreal.cc:58:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(phase.fortran_vec(), usephase.data(), M2 * N * W * sizeof(LTFAT_REAL)); data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:697:44: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define DRWAV_COPY_MEMORY(dst, src, sz) memcpy((dst), (src), (sz)) data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:850:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sizeInBytes[4]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:863:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sizeInBytes[8]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:928:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fmt[16]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:947:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char fmt_cbSize[2]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:965:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 fmtext[22]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1025: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). pFile = fopen(filename, "rb"); data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1042: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). pFile = fopen(filename, "wb"); data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1059: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). pFile = fopen(filename, "rb"); data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1082: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). pFile = fopen(filename, "wb"); data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1321:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char riff[4]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1351:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chunkSizeBytes[4]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1361:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char wave[4]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:1373:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chunkSize[8]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2345:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2365:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2385:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2405:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2606:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2679:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2703:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2727:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:2952:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:3020:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:3044:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/examples/utils/dr_wav.h:3068:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sampleData[4096]; data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/f77-fcn.h:174: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 (cs, F77_CHAR_ARG_USE (s), F77_CHAR_ARG_LEN_USE (s, len)); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:42:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in + p, (L - p)*sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:43:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + L - p, in, p * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:89:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in + p * Hin, Hin * (Win - p) * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:90:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + (Win - p) * Hin, in, Hin * p * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:172:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, L * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:193:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, Lout * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:202:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + ii * Lin, in, Lin * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:204:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + periods * Lin, in, lastL * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:292:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, L * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:419:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, (domod.quot + domod.rem)*sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:452:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, (domod.quot + domod.rem)*sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:479:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, Lout * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:723:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + domod.quot, in, Lin * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:739:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in + domod.quot, Lout * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ci_utils.c:745:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, Lin * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:379:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->prewin, g, p->fwdfifo->winLen * sizeof * g); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:389:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->postwin, g, p->backfifo->winLen * sizeof * g); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:568:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbufchan, buf[w], valid * sizeof * p->buf ); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:579:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pbufchan, buf[w] + valid, over * sizeof * p->buf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:624:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + w * p->readchanstride, pbufchan, valid * sizeof * p->buf ); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:631:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + valid + w * p->readchanstride, p->buf + w * p->bufLen, data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:832:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf[w], pbufchan, valid * sizeof * p->buf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/circularbuf.c:841:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf[w] + valid, pbufchan, over * sizeof * p->buf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dct.c:90:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cout, f, L * W * sizeof * f); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_fb.c:111:1: [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(cout + (n*M + w*M*N),sbuf,M*sizeof*cout); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_ola.c:84:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(plan.buf + Lext * w, f + ii * bl + w * L, sizeof(LTFAT_COMPLEX)*bl); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_ola.c:228:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(plan.buf + Lext * w, f + ii * bl + w * L, sizeof(LTFAT_REAL)*bl); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgt_shearola.c:82:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(plan.buf + Lext * w, f + ii * bl + w * L, sizeof(LTFAT_COMPLEX)*bl); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtreal_fb.c:125:1: [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(cout+(n*M2+w*M2*N),cbuf,M2*sizeof*cbuf); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp.c:36:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((*pout)->chanmask, pb->chanmask, pb->P*sizeof*pb->chanmask); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp.c:109:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( p->params, params, sizeof * p->params); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp.c:847:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(c + accum, p->iterstate->c[k], L * sizeof * c); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_guts.c:147:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(s->cvalinvBuf, s->cvalBuf, cvalNo * sizeof * s->cvalinvBuf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_kernel.c:109:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ktmp->kval + n * ktmp->size.height, data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dgtrealmp_parbuf.c:197:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->g[p->P - 1], g, gl * sizeof * g); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/dst.c:87:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cout,f,L*W*sizeof*f); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/error.c:23:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char reason[500] = {0}; data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/filterbank.c:262:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpPtr, F + (w + 1)*L + foffTmp, toCopy * sizeof * F); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/filterbank.c:271:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpPtr + Gl - over, F + w * L, over * sizeof * F); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/filterbank.c:275:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmpPtr, F + w * L + foffTmp, tmpLg * sizeof * F); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabdual_fac.c:31:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gdualf, gf, L * R * sizeof * gdualf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabdual_fac.c:82:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gdualf, gf, sizeof(LTFAT_COMPLEX)*L * R); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabtight_fac.c:37:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gfwork, gf, L * R * sizeof * gfwork); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/gabtight_fac.c:93:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gfwork, gf, L * R * sizeof * gfwork); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/goertzel.c:240:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fbuffer, fPtr + w * L, L * sizeof * fbuffer); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgt_fb.c:20:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cbuf,cin+n*M+w*M*N,M*sizeof*cbuf); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/idgtreal_fb.c:25:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cbuf,cin+n*M2+w*M2*N, M2*sizeof*cbuf); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ifilterbank.c:121:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, cin, W * N * sizeof * cin); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ifilterbank.c:266:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cbuf_col, cin + w * N, N * sizeof * cin); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c:114:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * p->L, p->L * sizeof * p->tmp); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c:323:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + w * M2, p->tmp + 2 * M2, M2 * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c:334:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * 2 * M2, p->L * sizeof * p->in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c:427:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, inTmp, M2 * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/ippfft_wrappers.c:447:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * M2, M2 * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c:102:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * p->L, p->L * sizeof * p->tmp); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c:309:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out + w * M2, p->tmp + 2 * M2, M2 * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c:320:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * 2 * M2, p->L * sizeof * p->in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c:412:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, inTmp, M2 * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/kissfft_wrappers.c:432:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tmp, in + w * M2, M2 * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/memalloc.c:93:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(outp, ptr, nold < nnew ? nold : nnew); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/rtdgtreal.c:131:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cchan, fftBuf_cpx, M2 * sizeof * c); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/rtdgtreal.c:170:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fftBuf_cpx, cchan, M2 * sizeof * cchan); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/rtdgtreal.c:184:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fchan, fftBuf, gl * sizeof * fchan); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/rtdgtreal.c:589:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, W * M2 * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slicingbuf.c:96:39: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (p->ga != (LTFAT_REAL*) g) memcpy(p->ga, g , p->taperLen * sizeof * g); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slicingbuf.c:103:39: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (p->gs != (LTFAT_REAL*) g) memcpy(p->gs, g , p->taperLen * sizeof * g); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/slicingbuf.c:180:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, W * winLen * sizeof * in); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/utils.c:54:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, L * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/utils.c:136:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(out, in, (domod.quot + 1) * sizeof * out); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/utils.c:273:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cdgt + n * M, cdgtreal + n * M2, M2 * sizeof * cdgtreal); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/utils.c:310:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cdgtreal + n * M2, cdgt + n * M, M2 * sizeof * cdgtreal); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:146:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + buffPtr, wherePtr, ((samples)-buffOver)*sizeof(LTFAT_TYPE)); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:147:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,wherePtr+(samples)-buffOver,buffOver*sizeof(LTFAT_TYPE)); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:229:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gInv,g,gl*sizeof*gInv); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:270:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,tmpIn+tmpInSkip,iniStoCopy*sizeof*buf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:389:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + buffPtr, wherePtr, ((samples)-buffOver)*sizeof*buf); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:390:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,wherePtr+(samples)-buffOver,buffOver*sizeof*buf); \ data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:465:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(gInv,g,gl*sizeof*gInv); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/src/wavelets.c:515:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf,tmpIn+tmpInSkip,iniStoCopy*sizeof*buf); data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/thirdparty/kissfft/fft.c:449:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(fout, tmpbuf, sizeof(kiss_fft_cpx)*st->nfft); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gla.c:129:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cout, cinit, (N * M2 * W) * sizeof * cout); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gla.c:137:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cinit2, cinit, (N * M2 * W) * sizeof * cout); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gla.c:143:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->t, cout, (N * M2 * W) * sizeof * p->t ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gla.c:198:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->t, cout, (N * M2 * W) * sizeof * p->t ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila.c:62:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frames2, frames, gl * N * sizeof * frames); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila.c:65:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cframes2, cframes, M2 * N * sizeof * cframes); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila.c:88:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (c) memcpy(c, cframes2 + lookback * M2, M2 * sizeof * c); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisila.c:298:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->s + M2 + w * (1 + p->maxLookahead)*M2, sinit[w], data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisilapghi.c:115:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->olds, s, p->W * M2 * sizeof * p->olds); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/gsrtisilapghi.c:168:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->olds, sinit[w], (p->M / 2 + 1) * sizeof * p->olds); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:213:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(c, cinit, (N * M2 * W) * sizeof * c); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:216:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->t, c, (N * M2 * W) * sizeof * p->t ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:248:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->t, c, (N * M2 * W) * sizeof * p->t ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:285:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(smallcCol, bigcCol, kernh2 * sizeof * smallcCol); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:293:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(smallcCol, bigcCol, kernh2 * sizeof * smallcCol); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:644:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bufstart, cstart, M2 * sizeof * bufstart); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/legla.c:674:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(bufstart, cstart, M2 * sizeof * bufstart); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/pghi.c:156:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->tgrad, schan, M2 * N * sizeof * schan); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:55:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frame, frames + gl * n, gl * sizeof * frame); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:156:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (c) memcpy(c, p->fftframe, M2 * sizeof * c); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:172:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frameupd, p->frame, gl * sizeof * frameupd); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:183:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->fftframe, c , M2 * sizeof * p->fftframe ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:195:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frameupd, p->frame, gl * sizeof * frameupd); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:270:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(frames2, frames, gl * N * sizeof * frames); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtisila.c:342:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->s + M2 + w * (1 + p->maxLookahead)*M2, sinit[w], data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtpghi.c:90:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->s + 2 * w * M2, sinit[w], 2 * M2 * sizeof * p->s ); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/rtpghi.c:205:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->donemask, mask, M2 * sizeof * p->donemask); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/spsi.c:28:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(chalf, s, W * M2 * N * sizeof * chalf); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/utils.c:8:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cols + n * height, cols + (n + 1)*height, height * sizeof * cols); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/utils.c:11:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cols + (N - 1)*height, newcol, height * sizeof * cols); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/utils.c:23:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cols + n * height, cols + (n + 1)*height, height * sizeof * cols); data/octave-ltfat-2.3.1+dfsg/src/modules/libphaseret/src/utils.c:26:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(cols + (N - 1)*height, newcol, height * sizeof * cols); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c:197: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(buf, &in[highpos - (oLen + 1)], (oLen + 1) * sizeof * buf);\ data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c:218: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(out, rp->ebuf, rp->ebufUsed * sizeof * out); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c:241:10: [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, rp->overlap + zz, (oLen - zz)*sizeof * buf); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c:242:10: [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 + (oLen - zz), in, (zz + 1)*sizeof * buf ); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/ltfatresample.c:276: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(rp->overlap, in + Lin - oLen, oLen * sizeof * in); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:3551:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(poutBuf, pcbs->pbuffer, data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:3761:16: [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(poutBuf, pcbs->pbuffer, data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4559:10: [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(mxGetData(mxSubSampRates), supSampRates, data/octave-ltfat-2.3.1+dfsg/thirdparty/polyboolclipper/polyboolmex.cpp:70: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 ostr[STR_LEN]; //string with polygon operation data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/f77-fcn.h:46:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define F77_CHAR_ARG(x) octave_make_cray_ftn_ch_dsc (x, strlen (x)) data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/f77-fcn.h:48:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). octave_make_cray_const_ftn_ch_dsc (x, strlen (x)) data/octave-ltfat-2.3.1+dfsg/src/modules/libltfat/include/ltfat/thirdparty/f77-fcn.h:117:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define F77_CHAR_ARG(x) x, strlen (x) data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/mex_dll_core.c:151:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). maxFuncNameLen = max(maxFuncNameLen, strlen(_funcLookup[i].name)); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/mex_dll_core.c:160:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). charCount = strlen(_funcLookup[i].name); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1009: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). buffer = mxCalloc( strlen( _stateOpts[i].name) + data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1010:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen( _stateOpts[i].startString ) + 60, sizeof( char )); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1028: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). buffer = mxCalloc( strlen( _stateOpts[i].name) + data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1029:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen( _stateOpts[i].stopString ) + 60, sizeof( char )); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1953:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer = mxCalloc( strlen( Pa_GetErrorText( lastPaError )) data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:1954:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen( msg ) + 40, sizeof( char )); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4693: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 bufLen = strlen(aboutString); data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4701: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). bufLen += strlen(apiInfo->name) + 20; data/octave-ltfat-2.3.1+dfsg/thirdparty/Playrec/pa_dll_playrec.c:4711: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). write_point += strlen(aboutString); ANALYSIS SUMMARY: Hits = 179 Lines analyzed = 60347 in approximately 1.92 seconds (31423 lines/second) Physical Source Lines of Code (SLOC) = 39085 Hits@level = [0] 36 [1] 14 [2] 151 [3] 6 [4] 8 [5] 0 Hits@level+ = [0+] 215 [1+] 179 [2+] 165 [3+] 14 [4+] 8 [5+] 0 Hits/KSLOC@level+ = [0+] 5.50083 [1+] 4.57976 [2+] 4.22157 [3+] 0.358194 [4+] 0.204682 [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.