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/gstreamer1.0-1.18.1/docs/gst-hotdoc-plugins-scanner.c Examining data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c Examining data/gstreamer1.0-1.18.1/gst/gettext.h Examining data/gstreamer1.0-1.18.1/gst/glib-compat-private.h Examining data/gstreamer1.0-1.18.1/gst/glib-compat.c Examining data/gstreamer1.0-1.18.1/gst/glib-compat.h Examining data/gstreamer1.0-1.18.1/gst/gst-i18n-app.h Examining data/gstreamer1.0-1.18.1/gst/gst-i18n-lib.h Examining data/gstreamer1.0-1.18.1/gst/gst.c Examining data/gstreamer1.0-1.18.1/gst/gst.h Examining data/gstreamer1.0-1.18.1/gst/gst_private.h Examining data/gstreamer1.0-1.18.1/gst/gstallocator.c Examining data/gstreamer1.0-1.18.1/gst/gstallocator.h Examining data/gstreamer1.0-1.18.1/gst/gstatomicqueue.c Examining data/gstreamer1.0-1.18.1/gst/gstatomicqueue.h Examining data/gstreamer1.0-1.18.1/gst/gstbin.c Examining data/gstreamer1.0-1.18.1/gst/gstbin.h Examining data/gstreamer1.0-1.18.1/gst/gstbuffer.c Examining data/gstreamer1.0-1.18.1/gst/gstbuffer.h Examining data/gstreamer1.0-1.18.1/gst/gstbufferlist.c Examining data/gstreamer1.0-1.18.1/gst/gstbufferlist.h Examining data/gstreamer1.0-1.18.1/gst/gstbufferpool.c Examining data/gstreamer1.0-1.18.1/gst/gstbufferpool.h Examining data/gstreamer1.0-1.18.1/gst/gstbus.c Examining data/gstreamer1.0-1.18.1/gst/gstbus.h Examining data/gstreamer1.0-1.18.1/gst/gstcaps.c Examining data/gstreamer1.0-1.18.1/gst/gstcaps.h Examining data/gstreamer1.0-1.18.1/gst/gstcapsfeatures.c Examining data/gstreamer1.0-1.18.1/gst/gstcapsfeatures.h Examining data/gstreamer1.0-1.18.1/gst/gstchildproxy.c Examining data/gstreamer1.0-1.18.1/gst/gstchildproxy.h Examining data/gstreamer1.0-1.18.1/gst/gstclock.c Examining data/gstreamer1.0-1.18.1/gst/gstclock.h Examining data/gstreamer1.0-1.18.1/gst/gstcompat.h Examining data/gstreamer1.0-1.18.1/gst/gstcontext.c Examining data/gstreamer1.0-1.18.1/gst/gstcontext.h Examining data/gstreamer1.0-1.18.1/gst/gstcontrolbinding.c Examining data/gstreamer1.0-1.18.1/gst/gstcontrolbinding.h Examining data/gstreamer1.0-1.18.1/gst/gstcontrolsource.c Examining data/gstreamer1.0-1.18.1/gst/gstcontrolsource.h Examining data/gstreamer1.0-1.18.1/gst/gstdatetime.c Examining data/gstreamer1.0-1.18.1/gst/gstdatetime.h Examining data/gstreamer1.0-1.18.1/gst/gstdebugutils.c Examining data/gstreamer1.0-1.18.1/gst/gstdebugutils.h Examining data/gstreamer1.0-1.18.1/gst/gstdevice.c Examining data/gstreamer1.0-1.18.1/gst/gstdevice.h Examining data/gstreamer1.0-1.18.1/gst/gstdevicemonitor.c Examining data/gstreamer1.0-1.18.1/gst/gstdevicemonitor.h Examining data/gstreamer1.0-1.18.1/gst/gstdeviceprovider.c Examining data/gstreamer1.0-1.18.1/gst/gstdeviceprovider.h Examining data/gstreamer1.0-1.18.1/gst/gstdeviceproviderfactory.c Examining data/gstreamer1.0-1.18.1/gst/gstdeviceproviderfactory.h Examining data/gstreamer1.0-1.18.1/gst/gstdynamictypefactory.c Examining data/gstreamer1.0-1.18.1/gst/gstdynamictypefactory.h Examining data/gstreamer1.0-1.18.1/gst/gstelement.c Examining data/gstreamer1.0-1.18.1/gst/gstelement.h Examining data/gstreamer1.0-1.18.1/gst/gstelementfactory.c Examining data/gstreamer1.0-1.18.1/gst/gstelementfactory.h Examining data/gstreamer1.0-1.18.1/gst/gstelementmetadata.h Examining data/gstreamer1.0-1.18.1/gst/gsterror.c Examining data/gstreamer1.0-1.18.1/gst/gsterror.h Examining data/gstreamer1.0-1.18.1/gst/gstevent.c Examining data/gstreamer1.0-1.18.1/gst/gstevent.h Examining data/gstreamer1.0-1.18.1/gst/gstformat.c Examining data/gstreamer1.0-1.18.1/gst/gstformat.h Examining data/gstreamer1.0-1.18.1/gst/gstghostpad.c Examining data/gstreamer1.0-1.18.1/gst/gstghostpad.h Examining data/gstreamer1.0-1.18.1/gst/gstinfo.c Examining data/gstreamer1.0-1.18.1/gst/gstinfo.h Examining data/gstreamer1.0-1.18.1/gst/gstiterator.c Examining data/gstreamer1.0-1.18.1/gst/gstiterator.h Examining data/gstreamer1.0-1.18.1/gst/gstmacros.h Examining data/gstreamer1.0-1.18.1/gst/gstmemory.c Examining data/gstreamer1.0-1.18.1/gst/gstmemory.h Examining data/gstreamer1.0-1.18.1/gst/gstmessage.c Examining data/gstreamer1.0-1.18.1/gst/gstmessage.h Examining data/gstreamer1.0-1.18.1/gst/gstmeta.c Examining data/gstreamer1.0-1.18.1/gst/gstmeta.h Examining data/gstreamer1.0-1.18.1/gst/gstminiobject.c Examining data/gstreamer1.0-1.18.1/gst/gstminiobject.h Examining data/gstreamer1.0-1.18.1/gst/gstobject.c Examining data/gstreamer1.0-1.18.1/gst/gstobject.h Examining data/gstreamer1.0-1.18.1/gst/gstpad.c Examining data/gstreamer1.0-1.18.1/gst/gstpad.h Examining data/gstreamer1.0-1.18.1/gst/gstpadtemplate.c Examining data/gstreamer1.0-1.18.1/gst/gstpadtemplate.h Examining data/gstreamer1.0-1.18.1/gst/gstparamspecs.c Examining data/gstreamer1.0-1.18.1/gst/gstparamspecs.h Examining data/gstreamer1.0-1.18.1/gst/gstparse.c Examining data/gstreamer1.0-1.18.1/gst/gstparse.h Examining data/gstreamer1.0-1.18.1/gst/gstpipeline.c Examining data/gstreamer1.0-1.18.1/gst/gstpipeline.h Examining data/gstreamer1.0-1.18.1/gst/gstplugin.c Examining data/gstreamer1.0-1.18.1/gst/gstplugin.h Examining data/gstreamer1.0-1.18.1/gst/gstpluginfeature.c Examining data/gstreamer1.0-1.18.1/gst/gstpluginfeature.h Examining data/gstreamer1.0-1.18.1/gst/gstpluginloader.c Examining data/gstreamer1.0-1.18.1/gst/gstpluginloader.h Examining data/gstreamer1.0-1.18.1/gst/gstpoll.c Examining data/gstreamer1.0-1.18.1/gst/gstpoll.h Examining data/gstreamer1.0-1.18.1/gst/gstpreset.c Examining data/gstreamer1.0-1.18.1/gst/gstpreset.h Examining data/gstreamer1.0-1.18.1/gst/gstpromise.c Examining data/gstreamer1.0-1.18.1/gst/gstpromise.h Examining data/gstreamer1.0-1.18.1/gst/gstprotection.c Examining data/gstreamer1.0-1.18.1/gst/gstprotection.h Examining data/gstreamer1.0-1.18.1/gst/gstquark.c Examining data/gstreamer1.0-1.18.1/gst/gstquark.h Examining data/gstreamer1.0-1.18.1/gst/gstquery.c Examining data/gstreamer1.0-1.18.1/gst/gstquery.h Examining data/gstreamer1.0-1.18.1/gst/gstregistry.c Examining data/gstreamer1.0-1.18.1/gst/gstregistry.h Examining data/gstreamer1.0-1.18.1/gst/gstregistrybinary.c Examining data/gstreamer1.0-1.18.1/gst/gstregistrychunks.c Examining data/gstreamer1.0-1.18.1/gst/gstregistrychunks.h Examining data/gstreamer1.0-1.18.1/gst/gstsample.c Examining data/gstreamer1.0-1.18.1/gst/gstsample.h Examining data/gstreamer1.0-1.18.1/gst/gstsegment.c Examining data/gstreamer1.0-1.18.1/gst/gstsegment.h Examining data/gstreamer1.0-1.18.1/gst/gststreamcollection.c Examining data/gstreamer1.0-1.18.1/gst/gststreamcollection.h Examining data/gstreamer1.0-1.18.1/gst/gststreams.c Examining data/gstreamer1.0-1.18.1/gst/gststreams.h Examining data/gstreamer1.0-1.18.1/gst/gststructure.c Examining data/gstreamer1.0-1.18.1/gst/gststructure.h Examining data/gstreamer1.0-1.18.1/gst/gstsystemclock.c Examining data/gstreamer1.0-1.18.1/gst/gstsystemclock.h Examining data/gstreamer1.0-1.18.1/gst/gsttaglist.c Examining data/gstreamer1.0-1.18.1/gst/gsttaglist.h Examining data/gstreamer1.0-1.18.1/gst/gsttagsetter.c Examining data/gstreamer1.0-1.18.1/gst/gsttagsetter.h Examining data/gstreamer1.0-1.18.1/gst/gsttask.c Examining data/gstreamer1.0-1.18.1/gst/gsttask.h Examining data/gstreamer1.0-1.18.1/gst/gsttaskpool.c Examining data/gstreamer1.0-1.18.1/gst/gsttaskpool.h Examining data/gstreamer1.0-1.18.1/gst/gsttoc.c Examining data/gstreamer1.0-1.18.1/gst/gsttoc.h Examining data/gstreamer1.0-1.18.1/gst/gsttocsetter.c Examining data/gstreamer1.0-1.18.1/gst/gsttocsetter.h Examining data/gstreamer1.0-1.18.1/gst/gsttracer.c Examining data/gstreamer1.0-1.18.1/gst/gsttracer.h Examining data/gstreamer1.0-1.18.1/gst/gsttracerfactory.c Examining data/gstreamer1.0-1.18.1/gst/gsttracerfactory.h Examining data/gstreamer1.0-1.18.1/gst/gsttracerrecord.c Examining data/gstreamer1.0-1.18.1/gst/gsttracerrecord.h Examining data/gstreamer1.0-1.18.1/gst/gsttracerutils.c Examining data/gstreamer1.0-1.18.1/gst/gsttracerutils.h Examining data/gstreamer1.0-1.18.1/gst/gsttypefind.c Examining data/gstreamer1.0-1.18.1/gst/gsttypefind.h Examining data/gstreamer1.0-1.18.1/gst/gsttypefindfactory.c Examining data/gstreamer1.0-1.18.1/gst/gsttypefindfactory.h Examining data/gstreamer1.0-1.18.1/gst/gsturi.c Examining data/gstreamer1.0-1.18.1/gst/gsturi.h Examining data/gstreamer1.0-1.18.1/gst/gstutils.c Examining data/gstreamer1.0-1.18.1/gst/gstutils.h Examining data/gstreamer1.0-1.18.1/gst/gstvalue.c Examining data/gstreamer1.0-1.18.1/gst/gstvalue.h Examining data/gstreamer1.0-1.18.1/gst/math-compat.h Examining data/gstreamer1.0-1.18.1/gst/parse/types.h Examining data/gstreamer1.0-1.18.1/gst/printf/asnprintf.c Examining data/gstreamer1.0-1.18.1/gst/printf/gst-printf.h Examining data/gstreamer1.0-1.18.1/gst/printf/printf-args.c Examining data/gstreamer1.0-1.18.1/gst/printf/printf-args.h Examining data/gstreamer1.0-1.18.1/gst/printf/printf-extension.c Examining data/gstreamer1.0-1.18.1/gst/printf/printf-extension.h Examining data/gstreamer1.0-1.18.1/gst/printf/printf-parse.c Examining data/gstreamer1.0-1.18.1/gst/printf/printf-parse.h Examining data/gstreamer1.0-1.18.1/gst/printf/printf.c Examining data/gstreamer1.0-1.18.1/gst/printf/printf.h Examining data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c Examining data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.h Examining data/gstreamer1.0-1.18.1/gst/gstregistrybinary.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/base-prelude.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/base.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstadapter.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstadapter.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstaggregator.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstaggregator.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbaseparse.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbaseparse.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesink.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesink.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesrc.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesrc.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasetransform.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbasetransform.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitreader-docs.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitreader.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitreader.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitwriter-docs.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitwriter.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbitwriter.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytereader-docs.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytereader.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytereader.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytewriter-docs.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytewriter.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstbytewriter.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstcollectpads.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstcollectpads.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstdataqueue.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstdataqueue.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstflowcombiner.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstflowcombiner.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstindex.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstindex.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstmemindex.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstpushsrc.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstpushsrc.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.h Examining data/gstreamer1.0-1.18.1/libs/gst/base/gsttypefindhelper.c Examining data/gstreamer1.0-1.18.1/libs/gst/base/gsttypefindhelper.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/check-prelude.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/check.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstbufferstraw.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstbufferstraw.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstcheck.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstcheck.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstconsistencychecker.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstconsistencychecker.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstharness.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/gstharness.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/gsttestclock.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/gsttestclock.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_error.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_error.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_impl.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_list.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_list.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_print.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_print.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_str.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_str.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/alarm.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/clock_gettime.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/getline.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/gettimeofday.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/libcompat.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/libcompat.h Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/localtime_r.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/strdup.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/strsignal.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/timer_create.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/timer_delete.c Examining data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/timer_settime.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/controller-prelude.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/controller.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstargbcontrolbinding.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstargbcontrolbinding.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstdirectcontrolbinding.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstdirectcontrolbinding.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstinterpolationcontrolsource.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstinterpolationcontrolsource.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstlfocontrolsource.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstlfocontrolsource.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstproxycontrolbinding.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gstproxycontrolbinding.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gsttimedvaluecontrolsource.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gsttimedvaluecontrolsource.h Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gsttriggercontrolsource.c Examining data/gstreamer1.0-1.18.1/libs/gst/controller/gsttriggercontrolsource.h Examining data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-completion-helper.c Examining data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-plugin-scanner.c Examining data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnet.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetaddressmeta.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetaddressmeta.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetclientclock.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetclientclock.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetcontrolmessagemeta.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetcontrolmessagemeta.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnettimepacket.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnettimepacket.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnettimeprovider.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnettimeprovider.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetutils.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstnetutils.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstntppacket.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstntppacket.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstptp_private.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c Examining data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/net-prelude.h Examining data/gstreamer1.0-1.18.1/libs/gst/net/net.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstcapsfilter.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstcapsfilter.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstclocksync.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstclocksync.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstconcat.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstconcat.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstdataurisrc.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstdataurisrc.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstdownloadbuffer.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstdownloadbuffer.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstelements.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstelements_private.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstelements_private.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfakesink.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfakesink.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfakesrc.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfakesrc.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfdsink.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfdsink.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfdsrc.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfdsrc.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfilesink.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfilesink.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfunnel.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstfunnel.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstidentity.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstidentity.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstinputselector.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstinputselector.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstmultiqueue.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstmultiqueue.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstoutputselector.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstoutputselector.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstqueue.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstqueue.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstsparsefile.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstsparsefile.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gststreamiddemux.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gststreamiddemux.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gsttee.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gsttee.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gsttypefindelement.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gsttypefindelement.h Examining data/gstreamer1.0-1.18.1/plugins/elements/gstvalve.c Examining data/gstreamer1.0-1.18.1/plugins/elements/gstvalve.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstlatency.c Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstlatency.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstleaks.c Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstleaks.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstlog.c Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstlog.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstrusage.c Examining data/gstreamer1.0-1.18.1/plugins/tracers/gstrusage.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gststats.c Examining data/gstreamer1.0-1.18.1/plugins/tracers/gststats.h Examining data/gstreamer1.0-1.18.1/plugins/tracers/gsttracers.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/caps.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/capsnego.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/complexity.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/controller.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/gstbufferstress.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/gstclockstress.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/gstpollstress.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/gstpoolstress.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/init.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/mass-elements.c Examining data/gstreamer1.0-1.18.1/tests/benchmarks/tracerserialize.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/capsfilter.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/clocksync.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/concat.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/dataurisrc.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/fakesink.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/fakesrc.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/fdsrc.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/filesrc.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/funnel.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/identity.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/leaks.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/multiqueue.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/queue.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/queue2.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/selector.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/streamiddemux.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/tee.c Examining data/gstreamer1.0-1.18.1/tests/check/elements/valve.c Examining data/gstreamer1.0-1.18.1/tests/check/generic/sinks.c Examining data/gstreamer1.0-1.18.1/tests/check/generic/states.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/capslist.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/gst.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstabi.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstatomicqueue.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstbin.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstbuffer.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferlist.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferpool.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstbus.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstcaps.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstcapsfeatures.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstchildproxy.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstclock.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstcontext.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstcontroller.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstcpp.cc Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstdeinit.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstdevice.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstelementfactory.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstevent.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstghostpad.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstindex.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstinfo.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstiterator.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstmemory.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstmessage.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstmeta.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstminiobject.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstobject.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstpad.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstparamspecs.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstpipeline.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstplugin.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstpoll.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstpreset.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstprintf.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstpromise.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstprotection.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstquery.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstregistry.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstsegment.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gststream.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gststructure.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstsystemclock.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttag.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttagsetter.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttask.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttoc.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttocsetter.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsttracerrecord.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gsturi.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/gstvalue.c Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_arm.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_hppa.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_i386.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_i386w.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_ppc32.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_ppc64.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_sparc.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_x86_64.h Examining data/gstreamer1.0-1.18.1/tests/check/gst/struct_x86_64w.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/adapter.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/aggregator.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/baseparse.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/basesink.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/basesrc.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bitreader-noinline.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bitreader.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bitwriter.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bytereader-noinline.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bytereader.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bytewriter-noinline.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/bytewriter.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/collectpads.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/controller.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/flowcombiner.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/gstharness.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/gstlibscpp.cc Examining data/gstreamer1.0-1.18.1/tests/check/libs/gstnetclientclock.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/gstnettimeprovider.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/gsttestclock.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/libsabi.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/queuearray.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/sparsefile.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_arm.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_hppa.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_i386.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_ppc32.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_ppc64.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_sparc.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/struct_x86_64.h Examining data/gstreamer1.0-1.18.1/tests/check/libs/test_transform.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/transform1.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/transform2.c Examining data/gstreamer1.0-1.18.1/tests/check/libs/typefindhelper.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/cleanup.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/parse-disabled.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/parse-launch.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/queue-error.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/seek.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/simple-launch-lines.c Examining data/gstreamer1.0-1.18.1/tests/check/pipelines/stress.c Examining data/gstreamer1.0-1.18.1/tests/check/tools/gstinspect.c Examining data/gstreamer1.0-1.18.1/tests/examples/adapter/adapter_test.c Examining data/gstreamer1.0-1.18.1/tests/examples/controller/absolute-example.c Examining data/gstreamer1.0-1.18.1/tests/examples/controller/audio-example.c Examining data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c Examining data/gstreamer1.0-1.18.1/tests/examples/controller/controller-graph.c Examining data/gstreamer1.0-1.18.1/tests/examples/controller/text-color-example.c Examining data/gstreamer1.0-1.18.1/tests/examples/helloworld/helloworld.c Examining data/gstreamer1.0-1.18.1/tests/examples/memory/memory_test.c Examining data/gstreamer1.0-1.18.1/tests/examples/memory/my-memory.c Examining data/gstreamer1.0-1.18.1/tests/examples/memory/my-memory.h Examining data/gstreamer1.0-1.18.1/tests/examples/memory/my-vidmem.c Examining data/gstreamer1.0-1.18.1/tests/examples/memory/my-vidmem.h Examining data/gstreamer1.0-1.18.1/tests/examples/netclock/netclock-client.c Examining data/gstreamer1.0-1.18.1/tests/examples/netclock/netclock-server.c Examining data/gstreamer1.0-1.18.1/tests/examples/ptp/ptp-print-times.c Examining data/gstreamer1.0-1.18.1/tests/examples/stepping/framestep1.c Examining data/gstreamer1.0-1.18.1/tests/examples/streamiddemux/streamiddemux-stream.c Examining data/gstreamer1.0-1.18.1/tests/examples/streams/rtpool-test.c Examining data/gstreamer1.0-1.18.1/tests/examples/streams/stream-status.c Examining data/gstreamer1.0-1.18.1/tests/examples/streams/testrtpool.c Examining data/gstreamer1.0-1.18.1/tests/examples/streams/testrtpool.h Examining data/gstreamer1.0-1.18.1/tests/misc/netclock-replay.c Examining data/gstreamer1.0-1.18.1/tests/validate/gst-tester.c Examining data/gstreamer1.0-1.18.1/tools/gst-inspect.c Examining data/gstreamer1.0-1.18.1/tools/gst-launch.c Examining data/gstreamer1.0-1.18.1/tools/gst-stats.c Examining data/gstreamer1.0-1.18.1/tools/gst-typefind.c Examining data/gstreamer1.0-1.18.1/tools/tools.h Examining data/gstreamer1.0-1.18.1/debian/gst-codec-info.c FINAL RESULTS: data/gstreamer1.0-1.18.1/docs/gst-hotdoc-plugins-scanner.c:737:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "%s %c %d", rank_names[best_i], data/gstreamer1.0-1.18.1/gst/gstinfo.c:1288:23: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define FPRINTF_DEBUG fprintf data/gstreamer1.0-1.18.1/gst/gstpreset.c:307:26: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. preset_merge (GKeyFile * system, GKeyFile * user) data/gstreamer1.0-1.18.1/gst/gstpreset.c:315:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_key_file_set_comment (system, NULL, NULL, str, NULL); data/gstreamer1.0-1.18.1/gst/gstpreset.c:324:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_key_file_set_comment (system, groups[i], NULL, str, NULL); data/gstreamer1.0-1.18.1/gst/gstpreset.c:333:31: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. if (g_key_file_has_group (system, groups[i])) { data/gstreamer1.0-1.18.1/gst/gstpreset.c:334:32: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_key_file_remove_group (system, groups[i], NULL); data/gstreamer1.0-1.18.1/gst/gstpreset.c:341:33: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_key_file_set_comment (system, groups[i], keys[j], str, NULL); data/gstreamer1.0-1.18.1/gst/gstpreset.c:345:29: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. g_key_file_set_value (system, groups[i], keys[j], str); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:715:15: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. retcount = snprintf (result + length, maxlen, buf, \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:719:15: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. retcount = snprintf (result + length, maxlen, buf, \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:723:15: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. retcount = snprintf (result + length, maxlen, buf, \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:735:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, arg); \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:738:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], arg); \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:741:12: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.h:37:22: [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 __printf__ printf data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c:379: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 (buf, BUFSIZ, msg, ap); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_error.c:48: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 (stderr, fmt, args); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_str.c:92:9: [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. n = vsnprintf (p, size, fmt, ap); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/libcompat.h:219:9: [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. #define vsnprintf rpl_vsnprintf data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/libcompat.h:224:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define snprintf rpl_snprintf data/gstreamer1.0-1.18.1/plugins/elements/gstelements_private.c:82: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 (end, flag_strings + flag_idx[i]); data/gstreamer1.0-1.18.1/tools/gst-inspect.c:224:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (s, "%s %c %d", rank_names[best_i], data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:43:26: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. SETUP_RANDOM_SIZE (void *random, gint size) data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:47:7: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (random) data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:48:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. g_free (random); data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:52:24: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. ((unsigned char *) random)[i] = i; data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:55:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define SETUP_RANDOM(random,type) SETUP_RANDOM_SIZE(random,sizeof(type)) data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:55:53: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. #define SETUP_RANDOM(random,type) SETUP_RANDOM_SIZE(random,sizeof(type)) data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:58:18: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. RANDOM_OK (void *random) data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:63:28: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (((unsigned char *) random)[i] != i) { data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:64:26: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. SETUP_RANDOM_SIZE (random, _random_size); data/gstreamer1.0-1.18.1/gst/gstinfo.c:361:63: [3] (random) g_random_int: 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. name = _replace_pattern_in_gst_debug_file_name (name, "%r", g_random_int ()); data/gstreamer1.0-1.18.1/gst/gststreams.c:240:46: [3] (random) g_random_int: 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. g_strdup_printf ("%08x%08x%08x%08x", g_random_int (), g_random_int (), data/gstreamer1.0-1.18.1/gst/gststreams.c:240:63: [3] (random) g_random_int: 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. g_strdup_printf ("%08x%08x%08x%08x", g_random_int (), g_random_int (), data/gstreamer1.0-1.18.1/gst/gststreams.c:241:9: [3] (random) g_random_int: 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. g_random_int (), g_random_int ()); data/gstreamer1.0-1.18.1/gst/gststreams.c:241:26: [3] (random) g_random_int: 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. g_random_int (), g_random_int ()); data/gstreamer1.0-1.18.1/gst/gstutils.c:4028:48: [3] (random) g_random_int: 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. g_strdup_printf ("%08x%08x%08x%08x", g_random_int (), g_random_int (), data/gstreamer1.0-1.18.1/gst/gstutils.c:4028:65: [3] (random) g_random_int: 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. g_strdup_printf ("%08x%08x%08x%08x", g_random_int (), g_random_int (), data/gstreamer1.0-1.18.1/gst/gstutils.c:4029:11: [3] (random) g_random_int: 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. g_random_int (), g_random_int ()); data/gstreamer1.0-1.18.1/gst/gstutils.c:4029:28: [3] (random) g_random_int: 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. g_random_int (), g_random_int ()); data/gstreamer1.0-1.18.1/libs/gst/base/gstaggregator.c:593:50: [3] (random) g_random_int: 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. g_snprintf (s_id, sizeof (s_id), "agg-%08x", g_random_int ()); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c:127:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv ("CK_DEFAULT_TIMEOUT"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c:137:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv ("CK_TIMEOUT_MULTIPLIER"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c:315: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 *env = getenv ("CK_TIMEOUT_MULTIPLIER"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:66:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv ("CK_LOG_FILE_NAME"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:92:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv ("CK_XML_LOG_FILE_NAME"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:117:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. return getenv ("CK_TAP_LOG_FILE_NAME"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:240: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 *tmp = getenv ("TEMP"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:241:22: [3] (tmpfile) tempnam: Temporary file race condition (CWE-377). char *tmp_file = tempnam (tmp, "check_"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:261:25: [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. const char *tmp_dir = getenv ("TEMP"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_print.c:225: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 *env = getenv ("CK_VERBOSITY"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c:652: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 *env = getenv ("CK_FORK"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c:712: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. tcname = getenv ("CK_RUN_CASE"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c:714:13: [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. sname = getenv ("CK_RUN_SUITE"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c:716:20: [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. include_tags = getenv ("CK_INCLUDE_TAGS"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_run.c:718:20: [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. exclude_tags = getenv ("CK_EXCLUDE_TAGS"); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:426:30: [3] (random) g_random_int: 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. clock_id = (((guint64) g_random_int ()) << 32) | (g_random_int ()); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:426:57: [3] (random) g_random_int: 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. clock_id = (((guint64) g_random_int ()) << 32) | (g_random_int ()); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1040:9: [3] (random) g_rand_int_range: 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. g_rand_int_range (delay_req_rand, 0, data/gstreamer1.0-1.18.1/plugins/elements/gstfakesrc.c:611:18: [3] (random) g_random_int_range: 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. *ptr++ = g_random_int_range (0, 256); data/gstreamer1.0-1.18.1/plugins/elements/gstfakesrc.c:678:14: [3] (random) g_random_int_range: 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. size = g_random_int_range (src->sizemin, src->sizemax); data/gstreamer1.0-1.18.1/tests/benchmarks/controller.c:129:9: [3] (random) g_random_double_range: 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. g_random_double_range (50.0, 3000.0)); data/gstreamer1.0-1.18.1/tests/benchmarks/controller.c:144:9: [3] (random) g_random_int_range: 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. j = g_random_int_range (0, NUM_CP - 1); data/gstreamer1.0-1.18.1/tests/benchmarks/controller.c:146:9: [3] (random) g_random_double_range: 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. g_random_double_range (50.0, 3000.0)); data/gstreamer1.0-1.18.1/tests/benchmarks/gstpollstress.c:37:8: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. gint random; data/gstreamer1.0-1.18.1/tests/benchmarks/gstpollstress.c:48:13: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. switch (random) { data/gstreamer1.0-1.18.1/tests/benchmarks/gstpollstress.c:100:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. while (random) { data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:91:37: [3] (random) g_rand_int: 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. ((guint8 *)info.data)[i] = (g_rand_int (rand) >> 24) & 0xff; \ data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:111:40: [3] (random) g_rand_int: 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. ((guint8 *)info.data)[j] = (g_rand_int (rand) >> 24) & 0xff; \ data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:137:41: [3] (random) g_rand_int: 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. ((guint8 *)info.data)[k] = (g_rand_int (rand) >> 24) & 0xff; \ data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:164:39: [3] (random) g_rand_int: 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. ((guint8 *)info.data)[j] = (g_rand_int (rand) >> 24) & 0xff; \ data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:186:49: [3] (random) g_rand_int: 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. fail_unless_equals_int (byte_written, g_rand_int (rand) >> 24); \ data/gstreamer1.0-1.18.1/tests/check/elements/filesink.c:200:12: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. tmpdir = g_get_tmp_dir (); data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferlist.c:377:11: [3] (random) g_random_int_range: 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. idx = g_random_int_range (0, gst_buffer_list_length (list)); data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferlist.c:391:11: [3] (random) g_random_int_range: 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. num = g_random_int_range (1, 5); data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferlist.c:392:11: [3] (random) g_random_int_range: 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. idx = g_random_int_range (0, gst_buffer_list_length (list) - num); data/gstreamer1.0-1.18.1/tests/check/gst/gstbufferlist.c:415:11: [3] (random) g_random_int_range: 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. idx = g_random_int_range (0, gst_buffer_list_length (list)); data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c:811:28: [3] (random) g_random_boolean: 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. p = gst_pad_new (name, g_random_boolean ()? GST_PAD_SRC : GST_PAD_SINK); data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c:818:9: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean () || pads->len > 100) { data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c:819:11: [3] (random) g_random_int_range: 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. n = g_random_int_range (0, pads->len); data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c:880:9: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean ()) { data/gstreamer1.0-1.18.1/tests/check/gst/gstelement.c:883:16: [3] (random) g_random_boolean: 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. } else if (g_random_boolean ()) { data/gstreamer1.0-1.18.1/tests/check/gst/gstpromise.c:479:20: [3] (random) g_random_int: 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. item->result = g_random_int () % 4; data/gstreamer1.0-1.18.1/tests/check/gst/gstsystemclock.c:255:14: [3] (random) g_random_int_range: 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. offset = g_random_int_range (d->time_offset_min, d->time_offset_max); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:326:22: [3] (random) g_rand_int: 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. val = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:326:49: [3] (random) g_rand_int: 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. val = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:327:22: [3] (random) g_rand_int: 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. num = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:327:49: [3] (random) g_rand_int: 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. num = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:328:24: [3] (random) g_rand_int: 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. denom = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:328:51: [3] (random) g_rand_int: 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. denom = ((guint64) g_rand_int (rand)) << 32 | g_rand_int (rand); data/gstreamer1.0-1.18.1/tests/check/libs/basesrc.c:800:19: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (num == 1 || g_random_boolean ()) { data/gstreamer1.0-1.18.1/tests/check/libs/queuearray.c:220:9: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean ()) { data/gstreamer1.0-1.18.1/tests/check/libs/queuearray.c:234:11: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean () && g_random_boolean () && in_array[i]) { data/gstreamer1.0-1.18.1/tests/check/libs/queuearray.c:234:34: [3] (random) g_random_boolean: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (g_random_boolean () && g_random_boolean () && in_array[i]) { data/gstreamer1.0-1.18.1/tools/gst-launch.c:966:45: [3] (buffer) g_get_tmp_dir: This function is synonymous with 'getenv("TMP")';it returns untrustable input if the environment can beset by an attacker. It 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. gchar *access_name = g_strconcat (g_get_tmp_dir (), G_DIR_SEPARATOR_S, data/gstreamer1.0-1.18.1/docs/gst-hotdoc-plugins-scanner.c:722:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *rank_names[4] = { "none", "marginal", "secondary", data/gstreamer1.0-1.18.1/docs/gst-hotdoc-plugins-scanner.c:824: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 s[20]; data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:52:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 *) random)[i] = i; data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:63:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (((unsigned char *) random)[i] != i) { data/gstreamer1.0-1.18.1/gst/gst.c:339: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 buffer[MAX_PATH]; data/gstreamer1.0-1.18.1/gst/gst.c:352: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 pathbuf[PROC_PIDPATHINFO_MAXSIZE]; data/gstreamer1.0-1.18.1/gst/gstallocator.c:116: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 (dinfo.data, sinfo.data + offset, size); data/gstreamer1.0-1.18.1/gst/gstallocator.c:462:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (copy->data, mem->data + mem->mem.offset + offset, size); data/gstreamer1.0-1.18.1/gst/gstbuffer.c:286: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 (ptr, (guint8 *) sinfo.data, tocopy); data/gstreamer1.0-1.18.1/gst/gstbuffer.c:1944: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 ((guint8 *) info.data + offset, ptr, tocopy); data/gstreamer1.0-1.18.1/gst/gstbuffer.c:1995: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 (ptr, (guint8 *) info.data + offset, tocopy); data/gstreamer1.0-1.18.1/gst/gstbufferlist.c:451: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 (list->buffers, &list->arr[0], list->n_buffers * sizeof (void *)); data/gstreamer1.0-1.18.1/gst/gstcapsfeatures.c:542: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 (tmp, feature, len - 1); data/gstreamer1.0-1.18.1/gst/gstdebugutils.c:859: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). if ((out = fopen (full_file_name, "wb"))) { data/gstreamer1.0-1.18.1/gst/gstinfo.c:635: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 (pos + MAX_BUFFER_DUMP_STRING_LEN - 6, "..", 2); data/gstreamer1.0-1.18.1/gst/gstinfo.c:636: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 (pos + MAX_BUFFER_DUMP_STRING_LEN - 4, pos + count - 4, 4); data/gstreamer1.0-1.18.1/gst/gstinfo.c:2913:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[32]; data/gstreamer1.0-1.18.1/gst/gstinfo.c:3093:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[sizeof (SYMBOL_INFO) + MAX_SYM_NAME * sizeof (TCHAR)]; data/gstreamer1.0-1.18.1/gst/gstinfo.c:3370: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 (p, l->data, len); data/gstreamer1.0-1.18.1/gst/gstpad.c:3570: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 (data->called_probes, tmp, data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:414: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 *argv[6] = { NULL, }; data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:621: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 + HEADER_SIZE, payload, payload_len); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:655: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 (out + padsize, chunk->data, chunk->size); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:765:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open ("/dev/urandom", O_RDONLY); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:931: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 (version_info + sizeof (guint32), GST_MAGIC_BINARY_VERSION_STR, data/gstreamer1.0-1.18.1/gst/gstpoll.c:1441: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 (set->active_fds->data, set->fds->data, data/gstreamer1.0-1.18.1/gst/gstregistrybinary.c:118: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 (cache->mem + offset, data, length); data/gstreamer1.0-1.18.1/gst/gstregistrybinary.c:384:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. if (!memcpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR, data/gstreamer1.0-1.18.1/gst/gstsegment.c:121:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dest, src, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/gst/gststructure.c:207: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 (impl->fields, &impl->arr[0], data/gstreamer1.0-1.18.1/gst/gststructure.c:1068: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 (f, field, sizeof (GstStructureField)); data/gstreamer1.0-1.18.1/gst/gstvalue.c:231: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 (vlist->fields, &vlist->arr[0], vlist->len * sizeof (GValue)); data/gstreamer1.0-1.18.1/gst/gstvalue.c:2331: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 (abbrs, dyn_abbrs, sizeof (GstValueAbbreviation) * _num); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3090:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (string + i * 2, "%02x", data[i]); data/gstreamer1.0-1.18.1/gst/math-compat.h:104: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 __c[4]; data/gstreamer1.0-1.18.1/gst/printf/printf-extension.c:42:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buf, "%p", ptr); data/gstreamer1.0-1.18.1/gst/printf/printf.c:122: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 (string, result, length + 1); data/gstreamer1.0-1.18.1/gst/printf/printf.c:139: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 (string, result, MIN (length + 1, n)); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:86: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 buffer[128]; data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:250:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[4]; data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:338: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 (memory, result, length); \ data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:347:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (result + length, cp, n); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:393: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. char tmpbuf[700]; data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:619: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, dp->width_start, n); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.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 (p, dp->precision_start, n); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:1011: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 (result + length, tmp, count); data/gstreamer1.0-1.18.1/libs/gst/base/gstadapter.c:742: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 (data, adapter->assembled_data, toreuse); data/gstreamer1.0-1.18.1/libs/gst/base/gstbaseparse.c:1340: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 (&parse->segment, &out_segment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbaseparse.c:4717: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 (&parse->segment, &seeksegment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesink.c:1827: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 (current, pending, sizeof (GstStepInfo)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesink.c:4256: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 (&seeksegment, &sink->segment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesrc.c:1756: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 (&seeksegment, &src->segment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbasesrc.c:1810: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 (&src->segment, &seeksegment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/libs/gst/base/gstbitwriter.h:241: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 (&bitwriter->data[bitwriter->bit_size >> 3], data, nbytes); data/gstreamer1.0-1.18.1/libs/gst/base/gstbytewriter.h:322: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 ((guint8 *) & writer->parent.data[writer->parent.byte], data, size); data/gstreamer1.0-1.18.1/libs/gst/base/gstdataqueue.c:773: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 (level, (&priv->cur_level), sizeof (GstDataQueueSize)); data/gstreamer1.0-1.18.1/libs/gst/base/gstindex.c:532:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (new_entry, entry, sizeof (GstIndexEntry)); data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.c:355: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 (array2, array->array + (elt_size * array->head), t2 * elt_size); data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.c:356: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 (array2 + t2 * elt_size, array->array, t1 * elt_size); data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.c:395: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 (array->array + elt_size * array->tail, p_struct, elt_size); data/gstreamer1.0-1.18.1/libs/gst/base/gstqueuearray.c:605: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_struct, array->array + elt_size * actual_idx, elt_size); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check.c:366: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[BUFSIZ]; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:165: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 buffer[100]; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:282:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char t[sizeof "yyyy-mm-dd hh:mm:ss"] = { 0 }; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_log.c:455:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen (filename, "w"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:238:10: [2] (tmpfile) tmpfile: Function tmpfile() has a security flaw on some systems (e.g., older System V systems) (CWE-377). file = tmpfile (); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:255:12: [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 = fopen (uniq_tmp_file, "w+b"); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_msg.c:268:18: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if (-1 < (fd = mkstemp (*name))) { data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.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 (*buf, val, strsz); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.c:187: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 (val, *buf, strsz); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_print.c:163: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 result[10]; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/strsignal.c:26:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char signame[40]; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/strsignal.c:28: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 (signame, "SIG #%d", sig); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:320: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 (ifr.ifr_name, *ptr, IFNAMSIZ); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:404: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 (mac_addr, LLADDR (sdl), sdl->sdl_alen); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:793: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 (&domain->master_clock_identity, &best->master_clock_identity, data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:893: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 (&sender->master_clock_identity, &msg->source_port_identity, data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:915: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 (&announce->master_clock_identity, &msg->source_port_identity, data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1493: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 (&domain->master_clock_identity, &msg->source_port_identity, data/gstreamer1.0-1.18.1/plugins/elements/gstelements_private.c:180: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, iov[i].iov_base, iov[i].iov_len); data/gstreamer1.0-1.18.1/plugins/elements/gstfilesink.c:172:8: [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). fd = open (filename, flags, 0666); data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.c:126:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags | O_LARGEFILE, mode); data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.c:128:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open (filename, flags, mode); data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.c:1493:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dst, ring_buffer + offset, length); data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.c:2114: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 (ring_buffer + writing_pos, data, to_write); data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.c:2159:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ring_buffer + writing_pos, data, block_one); data/gstreamer1.0-1.18.1/plugins/elements/gstqueue2.c:2172:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ring_buffer, data + block_one, block_two); data/gstreamer1.0-1.18.1/plugins/elements/gsttypefindelement.c:484: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 (&seeksegment, &typefind->segment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/plugins/elements/gsttypefindelement.c:517: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 (&typefind->segment, &seeksegment, sizeof (GstSegment)); data/gstreamer1.0-1.18.1/tests/benchmarks/complexity.c:42: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). complexity_order = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/complexity.c:43: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). n_elements = atoi (argv[2]); data/gstreamer1.0-1.18.1/tests/benchmarks/gstbufferstress.c:78:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num_threads = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/gstbufferstress.c:79: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). nbbuffers = atoi (argv[2]); data/gstreamer1.0-1.18.1/tests/benchmarks/gstclockstress.c:61:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num_threads = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/gstpollstress.c:156:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). num_threads = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/gstpoolstress.c:45: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). nbuffers = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/mass-elements.c:41: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). identities = atoi (argv[1]); data/gstreamer1.0-1.18.1/tests/benchmarks/mass-elements.c:43: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). buffers = atoi (argv[2]); data/gstreamer1.0-1.18.1/tests/check/elements/fdsrc.c:179:21: [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). fail_if ((in_fd = open (TESTFILE, O_RDONLY)) < 0); data/gstreamer1.0-1.18.1/tests/check/generic/sinks.c:1386: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). timeout = MAX (10, atoi (g_getenv ("CK_DEFAULT_TIMEOUT"))); data/gstreamer1.0-1.18.1/tests/check/gst/gstbuffer.c:118: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 (info.data, "data", 4); data/gstreamer1.0-1.18.1/tests/check/gst/gstbuffer.c:292: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[3] = { 0, 0, 0 }; data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:51: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 (&tm, localtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:75: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 (&tm, localtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:119: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 (&tm, gmtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:145: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 (&tm, localtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:191: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 (&tt, localtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:428: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 (&tm, gmtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:451: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 (&tm, localtime (&t), sizeof (struct tm)); data/gstreamer1.0-1.18.1/tests/check/gst/gstutils.c:1092: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 (uarray, carray, 8); data/gstreamer1.0-1.18.1/tests/check/libs/baseparse.c:536: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 (data, &raw_buffer[offset], buffer_size); data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:203: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). if (!(f = fopen ("ctrl_i1.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:226: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). if (!(f = fopen ("ctrl_i2.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:285: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). if (!(f = fopen ("ctrl_l1.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:316: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). if (!(f = fopen ("ctrl_l2.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:401: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). if (!(f = fopen ("ctrl_cl1.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/controller/control-sources.c:415: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). if (!(f = fopen ("ctrl_cl2.dat", "w"))) data/gstreamer1.0-1.18.1/tests/examples/netclock/netclock-client.c:38:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi (argv[2]); data/gstreamer1.0-1.18.1/tests/examples/netclock/netclock-server.c:40: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). clock_port = atoi (argv[1]); data/gstreamer1.0-1.18.1/tools/gst-inspect.c:209:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *rank_names[4] = { "none", "marginal", "secondary", data/gstreamer1.0-1.18.1/tools/gst-inspect.c:235: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 s[40]; data/gstreamer1.0-1.18.1/tools/gst-inspect.c:1633: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 s[40]; data/gstreamer1.0-1.18.1/tools/gst-launch.c:1137: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 (argvn, argv + 1, sizeof (char *) * (argc - 1)); data/gstreamer1.0-1.18.1/tools/gst-stats.c:1022: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). if ((log = fopen (filename, "rt"))) { data/gstreamer1.0-1.18.1/docs/gst-hotdoc-plugins-scanner.c:29:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (str); data/gstreamer1.0-1.18.1/docs/random/omega/testing/gstobject.c:14:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i = 0; i < width - strlen (str); i++) data/gstreamer1.0-1.18.1/gst/gstdatetime.c:832:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (string); data/gstreamer1.0-1.18.1/gst/gstdatetime.c:922:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (pos && strlen (pos) >= 3) { data/gstreamer1.0-1.18.1/gst/gstdebugutils.c:194: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). strlen (value_str) > PARAM_MAX_LENGTH) data/gstreamer1.0-1.18.1/gst/gstdebugutils.c:379:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (value_str) > 25) { data/gstreamer1.0-1.18.1/gst/gstdevice.c:377:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (klass); data/gstreamer1.0-1.18.1/gst/gstdeviceproviderfactory.c:510:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (classes[0]); data/gstreamer1.0-1.18.1/gst/gstelement.c:1040: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). if (!templ_name_ptr || strlen (name) <= templ_name_ptr - templ_name data/gstreamer1.0-1.18.1/gst/gstelement.c:1073: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). templ_postfix_len = strlen (templ_name_ptr + 2); data/gstreamer1.0-1.18.1/gst/gstelement.c:1074: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). name_postfix_len = strlen (name_ptr); data/gstreamer1.0-1.18.1/gst/gstelement.c:1088:50: [1] (buffer) strlen: Does not handle 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 = (next_specifier) ? name - name_ptr : strlen (name_ptr); data/gstreamer1.0-1.18.1/gst/gstinfo.c:344:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gsize token_len = strlen (token); data/gstreamer1.0-1.18.1/gst/gstinfo.c:631: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). pos += strlen ("(buffer)"); data/gstreamer1.0-1.18.1/gst/gstinfo.c:638:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (pos + count) + 1); data/gstreamer1.0-1.18.1/gst/gstinfo.c:2541:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (c + 4); data/gstreamer1.0-1.18.1/gst/gstinfo.c:3261:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). output_len = strlen (output); data/gstreamer1.0-1.18.1/gst/gstinfo.c:3318:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). log->log_size -= strlen (buf); data/gstreamer1.0-1.18.1/gst/gstinfo.c:3369:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (l->data); data/gstreamer1.0-1.18.1/gst/gstobject.c:567: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). l = strlen (type_name); data/gstreamer1.0-1.18.1/gst/gstobject.c:574: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). l = strlen (name); data/gstreamer1.0-1.18.1/gst/gstparse.c:193:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gstr = g_string_sized_new (strlen (str)); data/gstreamer1.0-1.18.1/gst/gstplugin.c:719:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (bname + prefix_len); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:251:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (filename); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:303:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (guint8 *) entry->filename, strlen (entry->filename) + 1); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:334:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (entry->filename); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:766:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (fd, l->tx_buf, l->tx_buf_size); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:932: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). strlen (GST_MAGIC_BINARY_VERSION_STR)); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:957:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (l->fd_r.fd, in, to_read); data/gstreamer1.0-1.18.1/gst/gstpluginloader.c:994:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). res = read (l->fd_r.fd, in, to_read); data/gstreamer1.0-1.18.1/gst/gstpoll.c:195:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((num_read = read (set->control_read_fd.fd, buf, 1)) != 1) { data/gstreamer1.0-1.18.1/gst/gstregistry.c:363:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (path) == 0) data/gstreamer1.0-1.18.1/gst/gstregistrybinary.c:386:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). || !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STR, data/gstreamer1.0-1.18.1/gst/gstregistrychunks.c:145: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). chunk->size = strlen ((gchar *) chunk->data) + 1; data/gstreamer1.0-1.18.1/gst/gstregistrychunks.c:166: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). chunk->size = strlen ((gchar *) chunk->data) + 1; data/gstreamer1.0-1.18.1/gst/gsturi.c:109:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (find); data/gstreamer1.0-1.18.1/gst/gsturi.c:305: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). result = g_malloc (strlen (escaped_string) + 1); data/gstreamer1.0-1.18.1/gst/gsturi.c:326: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). g_assert ((gsize) (out - result) <= strlen (escaped_string)); data/gstreamer1.0-1.18.1/gst/gsturi.c:481:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (unescaped, unescaped + 1, strlen (unescaped + 1) + 1); data/gstreamer1.0-1.18.1/gst/gsturi.c:1312: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). strlen (next_sep + pct_sep_len) + 1); data/gstreamer1.0-1.18.1/gst/gsturi.c:1363:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (next_sep + 1, next_sep + 3, strlen (next_sep + 3) + 1); data/gstreamer1.0-1.18.1/gst/gsturi.c:1391:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (next_sep + 1, next_sep + 3, strlen (next_sep + 3) + 1); data/gstreamer1.0-1.18.1/gst/gsturi.c:1397:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memmove (next_sep + 1, next_sep + 3, strlen (next_sep + 3) + 1); data/gstreamer1.0-1.18.1/gst/gstutils.c:4019:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). g_checksum_update (cs, (const guchar *) uri, strlen (uri)); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3109:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (s); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3193:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). caps_str = g_base64_encode ((guchar *) tmp, strlen (tmp) + 1); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3205:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). seg_str = g_base64_encode ((guchar *) tmp, strlen (tmp) + 1); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3216:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info_str = g_base64_encode ((guchar *) tmp, strlen (tmp) + 1); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3740:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gchar *read, *write; data/gstreamer1.0-1.18.1/gst/gstvalue.c:3759:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (*read) { data/gstreamer1.0-1.18.1/gst/gstvalue.c:3760:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (GST_ASCII_IS_STRING (*read)) { data/gstreamer1.0-1.18.1/gst/gstvalue.c:3771:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (*read >= '0' && *read <= '3') { data/gstreamer1.0-1.18.1/gst/gstvalue.c:3771:28: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (*read >= '0' && *read <= '3') { data/gstreamer1.0-1.18.1/gst/gstvalue.c:3775:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read[1] < '0' || read[1] > '7' || read[2] < '0' || read[2] > '7') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3775:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read[1] < '0' || read[1] > '7' || read[2] < '0' || read[2] > '7') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3775:47: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read[1] < '0' || read[1] > '7' || read[2] < '0' || read[2] > '7') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3775:64: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read[1] < '0' || read[1] > '7' || read[2] < '0' || read[2] > '7') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3779:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). *write++ = ((read[0] - '0') << 6) + data/gstreamer1.0-1.18.1/gst/gstvalue.c:3780:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ((read[1] - '0') << 3) + (read[2] - '0'); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3780:39: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ((read[1] - '0') << 3) + (read[2] - '0'); data/gstreamer1.0-1.18.1/gst/gstvalue.c:3797:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (*read != '"' || read[1] != '\0') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3797:23: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (*read != '"' || read[1] != '\0') data/gstreamer1.0-1.18.1/gst/gstvalue.c:3821: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). } else if (G_LIKELY (*s != '"' || s[strlen (s) - 1] != '"')) { data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:48:24: [1] (buffer) wcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define local_wcslen wcslen data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:561:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). : strlen (a.arg[dp->arg_index].a.a_string); data/gstreamer1.0-1.18.1/gst/printf/vasnprintf.c:572: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). tmp_length += strlen (a.arg[dp->arg_index].ext_string); data/gstreamer1.0-1.18.1/libs/gst/base/gstaggregator.c:1965:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (req_name == NULL || strlen (req_name) < 6 data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_error.c:52: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). if (fmt[0] != '\0' && fmt[strlen (fmt) - 1] == ':') data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.c:167: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). strsz = strlen (val); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.c:259: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). len = 4 + 4 + (lmsg->file ? strlen (lmsg->file) : 0) + 4; data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/check_pack.c:282:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = 4 + 4 + (fmsg->msg ? strlen (fmsg->msg) : 0); data/gstreamer1.0-1.18.1/libs/gst/check/libcheck/libcompat/getline.c:39:23: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((character = fgetc (stream)) != EOF) { data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:93:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gssize read; data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:105:70: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_message ("Received %" G_GSSIZE_FORMAT " bytes from %s socket", read, data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:108:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). header.size = read; data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:127:57: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_io_channel_write_chars (stdout_channel, buffer, read, &written, &err); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:136:25: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (written != read) { data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:151:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gsize read; data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:161:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). &read, &err); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:170:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read != sizeof (header)) { data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:171:56: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_error ("Unexpected read size: %" G_GSIZE_FORMAT, read); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:176:68: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = g_io_channel_read_chars (channel, buffer, header.size, &read, &err); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:185:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read != header.size) { data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:186:56: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_error ("Unexpected read size: %" G_GSIZE_FORMAT, read); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:203:68: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). g_message ("Sent %" G_GSSIZE_FORMAT " bytes to %s socket", read, data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:266:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (ifr.ifr_name, ifc.ifc_req[i].ifr_name, IFNAMSIZ); data/gstreamer1.0-1.18.1/libs/gst/helpers/gst-ptp-helper.c:346:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (ifr.ifr_name, ifc.ifc_req[i].ifr_name, IFNAMSIZ); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1789:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gsize read; data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1799:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). &read, &err); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1813:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read != sizeof (header)) { data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1814:58: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GST_ERROR ("Unexpected read size: %" G_GSIZE_FORMAT, read); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1823:68: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). status = g_io_channel_read_chars (channel, buffer, header.size, &read, &err); data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1837:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } else if (read != header.size) { data/gstreamer1.0-1.18.1/libs/gst/net/gstptpclock.c:1838:58: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). GST_ERROR ("Unexpected read size: %" G_GSIZE_FORMAT, read); data/gstreamer1.0-1.18.1/plugins/elements/gstdataurisrc.c:391: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). bsize = strlen (bdata); data/gstreamer1.0-1.18.1/plugins/elements/gstdataurisrc.c:397:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gsize read; data/gstreamer1.0-1.18.1/plugins/elements/gstdataurisrc.c:403:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). &read, &written, NULL); data/gstreamer1.0-1.18.1/plugins/elements/gstelements_private.c:83: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). end += strlen (end); data/gstreamer1.0-1.18.1/plugins/elements/gstfdsrc.c:450:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). readbytes = read (src->fd, info.data, blocksize); data/gstreamer1.0-1.18.1/plugins/elements/gstfdsrc.c:662: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). sp += strlen ("size="); data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.c:369:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read (src->fd, data + bytes_read, to_read); data/gstreamer1.0-1.18.1/plugins/elements/gstfilesrc.c:657: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). memmove (location, location + 1, strlen (location + 1) + 1); data/gstreamer1.0-1.18.1/plugins/elements/gsttypefindelement.c:816:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (uri); data/gstreamer1.0-1.18.1/tests/check/elements/fakesink.c:1018:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s += strlen ("offset: "); data/gstreamer1.0-1.18.1/tests/check/elements/fakesink.c:1114:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s += strlen ("offset: "); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:572:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fail_unless_equals_int (strlen (str), strlen ("2012-06-26T22:46:43Z")); data/gstreamer1.0-1.18.1/tests/check/gst/gstdatetime.c:572: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). fail_unless_equals_int (strlen (str), strlen ("2012-06-26T22:46:43Z")); data/gstreamer1.0-1.18.1/tests/check/gst/gstpad.c:1044:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size = strlen (str); data/gstreamer1.0-1.18.1/tests/check/gst/gstpoll.c:84:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). fail_unless (read (rfd.fd, &c, 1) == 1, "read() failed"); data/gstreamer1.0-1.18.1/tools/gst-inspect.c:1051:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). indent_len = strlen (query->signal_name) + data/gstreamer1.0-1.18.1/tools/gst-inspect.c:1052:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen (g_type_name (query->return_type)) + 24; ANALYSIS SUMMARY: Hits = 331 Lines analyzed = 298668 in approximately 6.68 seconds (44696 lines/second) Physical Source Lines of Code (SLOC) = 185188 Hits@level = [0] 112 [1] 111 [2] 124 [3] 73 [4] 23 [5] 0 Hits@level+ = [0+] 443 [1+] 331 [2+] 220 [3+] 96 [4+] 23 [5+] 0 Hits/KSLOC@level+ = [0+] 2.39216 [1+] 1.78737 [2+] 1.18798 [3+] 0.518392 [4+] 0.124198 [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.