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/dvbstreamer-2.1.0/include/atsctext.h
Examining data/dvbstreamer-2.1.0/include/cache.h
Examining data/dvbstreamer-2.1.0/include/commands.h
Examining data/dvbstreamer-2.1.0/include/dbase.h
Examining data/dvbstreamer-2.1.0/include/deferredproc.h
Examining data/dvbstreamer-2.1.0/include/deliverymethod.h
Examining data/dvbstreamer-2.1.0/include/dispatchers.h
Examining data/dvbstreamer-2.1.0/include/dvbadapter.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/atsc/eit.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/atsc/ett.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/atsc/mgt.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/atsc/stt.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/atsc/vct.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/cat.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/datetime.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/demux.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/descriptor.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_02.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_03.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_04.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_05.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_06.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_07.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_08.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_09.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0a.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0b.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0c.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0d.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0e.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_0f.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_13.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_14.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_42.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_43.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_47.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_48.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_4d.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_4e.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_52.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_55.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_56.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_59.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_5a.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_62.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_66.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_69.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_73.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_76.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dr_83.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/dvbpsi.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/eit.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/nit.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/pat.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/pmt.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/psi.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/sdt.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/sections.h
Examining data/dvbstreamer-2.1.0/include/dvbpsi/tdttot.h
Examining data/dvbstreamer-2.1.0/include/dvbtext.h
Examining data/dvbstreamer-2.1.0/include/epgchannel.h
Examining data/dvbstreamer-2.1.0/include/epgtypes.h
Examining data/dvbstreamer-2.1.0/include/events.h
Examining data/dvbstreamer-2.1.0/include/list.h
Examining data/dvbstreamer-2.1.0/include/lnb.h
Examining data/dvbstreamer-2.1.0/include/logging.h
Examining data/dvbstreamer-2.1.0/include/main.h
Examining data/dvbstreamer-2.1.0/include/messageq.h
Examining data/dvbstreamer-2.1.0/include/multiplexes.h
Examining data/dvbstreamer-2.1.0/include/nitprocessor.h
Examining data/dvbstreamer-2.1.0/include/parsezap.h
Examining data/dvbstreamer-2.1.0/include/patprocessor.h
Examining data/dvbstreamer-2.1.0/include/pids.h
Examining data/dvbstreamer-2.1.0/include/plugin.h
Examining data/dvbstreamer-2.1.0/include/pluginmgr.h
Examining data/dvbstreamer-2.1.0/include/pmtprocessor.h
Examining data/dvbstreamer-2.1.0/include/properties.h
Examining data/dvbstreamer-2.1.0/include/psipprocessor.h
Examining data/dvbstreamer-2.1.0/include/remoteintf.h
Examining data/dvbstreamer-2.1.0/include/sdtprocessor.h
Examining data/dvbstreamer-2.1.0/include/servicefilter.h
Examining data/dvbstreamer-2.1.0/include/services.h
Examining data/dvbstreamer-2.1.0/include/standard/atsc.h
Examining data/dvbstreamer-2.1.0/include/standard/dvb.h
Examining data/dvbstreamer-2.1.0/include/standard/mpeg2.h
Examining data/dvbstreamer-2.1.0/include/tdtprocessor.h
Examining data/dvbstreamer-2.1.0/include/ts.h
Examining data/dvbstreamer-2.1.0/include/tuning.h
Examining data/dvbstreamer-2.1.0/include/types.h
Examining data/dvbstreamer-2.1.0/include/udp.h
Examining data/dvbstreamer-2.1.0/include/utf8.h
Examining data/dvbstreamer-2.1.0/include/yamlutils.h
Examining data/dvbstreamer-2.1.0/include/objects.h
Examining data/dvbstreamer-2.1.0/src/commands.c
Examining data/dvbstreamer-2.1.0/src/commands/cmd_epg.c
Examining data/dvbstreamer-2.1.0/src/commands/cmd_info.c
Examining data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c
Examining data/dvbstreamer-2.1.0/src/commands/cmd_servicefilter.c
Examining data/dvbstreamer-2.1.0/src/constants.c
Examining data/dvbstreamer-2.1.0/src/convertdvbdb.c
Examining data/dvbstreamer-2.1.0/src/dbase.c
Examining data/dvbstreamer-2.1.0/src/deliverymethod.c
Examining data/dvbstreamer-2.1.0/src/dispatchers.c
Examining data/dvbstreamer-2.1.0/src/dvbctrl.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/datetime.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/demux.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptor.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_02.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_03.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_04.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_05.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_06.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_07.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_08.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_09.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0a.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0b.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0c.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0d.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0e.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0f.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_13.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_14.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_42.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_43.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_47.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_52.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_55.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_56.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_59.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_5a.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_62.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_66.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_69.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_73.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_76.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_83.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/dvbpsi.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/dvbpsi_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/psi.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/sections.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_eit.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_ett.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_mgt.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_stt.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_vct.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/cat.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/cat_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/eit.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/eit_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/nit.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/pat.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/pat_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/pmt.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/pmt_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/sdt.c
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/sdt_private.h
Examining data/dvbstreamer-2.1.0/src/dvbpsi/tables/tdttot.c
Examining data/dvbstreamer-2.1.0/src/epgchannel.c
Examining data/dvbstreamer-2.1.0/src/epgtypes.c
Examining data/dvbstreamer-2.1.0/src/events.c
Examining data/dvbstreamer-2.1.0/src/fileadapter.c
Examining data/dvbstreamer-2.1.0/src/list.c
Examining data/dvbstreamer-2.1.0/src/lnb.c
Examining data/dvbstreamer-2.1.0/src/logging.c
Examining data/dvbstreamer-2.1.0/src/main.c
Examining data/dvbstreamer-2.1.0/src/multiplexes.c
Examining data/dvbstreamer-2.1.0/src/objects.c
Examining data/dvbstreamer-2.1.0/src/parsezap.c
Examining data/dvbstreamer-2.1.0/src/pids.c
Examining data/dvbstreamer-2.1.0/src/pluginmgr.c
Examining data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c
Examining data/dvbstreamer-2.1.0/src/plugins/cam.c
Examining data/dvbstreamer-2.1.0/src/plugins/datetime.c
Examining data/dvbstreamer-2.1.0/src/plugins/dsmcc.c
Examining data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c
Examining data/dvbstreamer-2.1.0/src/plugins/en50221.c
Examining data/dvbstreamer-2.1.0/src/plugins/en50221.h
Examining data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c
Examining data/dvbstreamer-2.1.0/src/plugins/eventsdispatcher.c
Examining data/dvbstreamer-2.1.0/src/plugins/fileoutput.c
Examining data/dvbstreamer-2.1.0/src/plugins/freesat_huffman.h
Examining data/dvbstreamer-2.1.0/src/plugins/freesat_tables.h
Examining data/dvbstreamer-2.1.0/src/plugins/lcnquery.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-carousel.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-carousel.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-util.c
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-util.h
Examining data/dvbstreamer-2.1.0/src/plugins/libdsmcc/libdsmcc.h
Examining data/dvbstreamer-2.1.0/src/plugins/outputs.c
Examining data/dvbstreamer-2.1.0/src/plugins/pipeoutput.c
Examining data/dvbstreamer-2.1.0/src/plugins/sap.c
Examining data/dvbstreamer-2.1.0/src/plugins/sap.h
Examining data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c
Examining data/dvbstreamer-2.1.0/src/plugins/sicapture.c
Examining data/dvbstreamer-2.1.0/src/plugins/traffic.c
Examining data/dvbstreamer-2.1.0/src/plugins/udp.c
Examining data/dvbstreamer-2.1.0/src/plugins/udpoutput.c
Examining data/dvbstreamer-2.1.0/src/plugins/manualfilters.c
Examining data/dvbstreamer-2.1.0/src/plugins/freesat_huffman.c
Examining data/dvbstreamer-2.1.0/src/properties.c
Examining data/dvbstreamer-2.1.0/src/remoteintf.c
Examining data/dvbstreamer-2.1.0/src/servicefilter.c
Examining data/dvbstreamer-2.1.0/src/setup.c
Examining data/dvbstreamer-2.1.0/src/standard/atsc/atsc.c
Examining data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c
Examining data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c
Examining data/dvbstreamer-2.1.0/src/standard/dvb/dvb.c
Examining data/dvbstreamer-2.1.0/src/standard/dvb/nitprocessor.c
Examining data/dvbstreamer-2.1.0/src/standard/dvb/tdtprocessor.c
Examining data/dvbstreamer-2.1.0/src/standard/dvb/dvbtext.c
Examining data/dvbstreamer-2.1.0/src/standard/dvb/sdtprocessor.c
Examining data/dvbstreamer-2.1.0/src/standard/mpeg2/mpeg2.c
Examining data/dvbstreamer-2.1.0/src/standard/mpeg2/patprocessor.c
Examining data/dvbstreamer-2.1.0/src/standard/mpeg2/pmtprocessor.c
Examining data/dvbstreamer-2.1.0/src/threading/deferredproc.c
Examining data/dvbstreamer-2.1.0/src/threading/messageq.c
Examining data/dvbstreamer-2.1.0/src/ts.c
Examining data/dvbstreamer-2.1.0/src/tuning.c
Examining data/dvbstreamer-2.1.0/src/utf8.c
Examining data/dvbstreamer-2.1.0/src/yamlutils.c
Examining data/dvbstreamer-2.1.0/src/services.c
Examining data/dvbstreamer-2.1.0/src/dvbadapter.c
Examining data/dvbstreamer-2.1.0/src/cache.c

FINAL RESULTS:

data/dvbstreamer-2.1.0/src/dbase.c:173:19:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
            len = readlink(path, path, sizeof(path) - 1);
data/dvbstreamer-2.1.0/include/commands.h:115: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.
        snprintf(context->errorMessage, MAX_ERR_MSG,_msgformat);\
data/dvbstreamer-2.1.0/include/dvbadapter.h:154:64:  [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.
int DVBFrontEndTune(DVBAdapter_t *adapter, DVBDeliverySystem_e system, char *params);
data/dvbstreamer-2.1.0/include/dvbadapter.h:163:76:  [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.
char* DVBFrontEndParametersGet(DVBAdapter_t *adapter, DVBDeliverySystem_e *system);
data/dvbstreamer-2.1.0/include/dvbadapter.h:209:79:  [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.
bool DVBFrontEndParameterSupported(DVBAdapter_t *adapter, DVBDeliverySystem_e system, char *param, char *value);
data/dvbstreamer-2.1.0/include/dvbadapter.h:217:84:  [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.
bool DVBFrontEndDeliverySystemSupported(DVBAdapter_t *adapter, DVBDeliverySystem_e system);
data/dvbstreamer-2.1.0/include/epgchannel.h:65:56:  [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.
int EPGChannelNewRating(EPGEventRef_t *eventRef, char *system, char *rating);
data/dvbstreamer-2.1.0/include/epgtypes.h:79:11:  [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.
    char *system; /**< System the rating pertains to. */
data/dvbstreamer-2.1.0/src/commands.c:183:14:  [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.
    result = vfprintf(context->outfp, fmt, args);
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:114:50:  [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.
                                msg->data.rating.system, msg->data.rating.rating);
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:176:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(buffer, temp);
data/dvbstreamer-2.1.0/src/commands/cmd_info.c:594:25:  [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.
    DVBDeliverySystem_e system;
data/dvbstreamer-2.1.0/src/commands/cmd_info.c:595:54:  [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.
    char *params = DVBFrontEndParametersGet(adapter,&system);
data/dvbstreamer-2.1.0/src/commands/cmd_info.c:596:65:  [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.
    CommandPrintf("Delivery System: %s\n", DVBDeliverySystemStr[system]);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:93:25:  [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.
    DVBDeliverySystem_e system;
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:373:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(propertyName, "%s.locktimeout", propertyParent);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:385:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(propertyName, "%s.dvb.t", propertyParent);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:392:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(propertyName, "%s.dvb.s", propertyParent);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:398:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(propertyName, "%s.atsc", propertyParent);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1013:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(params, "Frequency: %u\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1039:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(params, "Frequency: %u\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1069:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(params, "Frequency: %u\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1087:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(params, "Frequency: %u\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1277:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(tparams, "Inversion: AUTO\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1297:29:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                            sprintf(tparams, "Inversion: AUTO\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1321:33:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                                sprintf(tparams, "Inversion: AUTO\n"
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1641:56:  [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.
                                delSys = currentEntry->system;
data/dvbstreamer-2.1.0/src/convertdvbdb.c:255:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(statement, "SELECT " QPSKPARAM_FREQ "," QPSKPARAM_INVERSION "," QPSKPARAM_FEC_INNER "," 
data/dvbstreamer-2.1.0/src/convertdvbdb.c:267:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buffer, "Frequency: %d\n"
data/dvbstreamer-2.1.0/src/convertdvbdb.c:290:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(statement, "SELECT " QAMPARAM_FREQ "," QAMPARAM_INVERSION "," QAMPARAM_FEC_INNER "," QAMPARAM_MODULATION "," QAMPARAM_SYMBOL_RATE 
data/dvbstreamer-2.1.0/src/convertdvbdb.c:300:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buffer, "Frequency: %d\n"
data/dvbstreamer-2.1.0/src/convertdvbdb.c:320:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(statement, "SELECT " OFDMPARAM_FREQ "," OFDMPARAM_INVERSION "," OFDMPARAM_BW "," OFDMPARAM_FEC_LP "," OFDMPARAM_FEC_HP "," 
data/dvbstreamer-2.1.0/src/convertdvbdb.c:337:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buffer, "Frequency: %d\n"
data/dvbstreamer-2.1.0/src/convertdvbdb.c:359:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(statement, "SELECT " VSBPARAM_FREQ "," VSBPARAM_MODULATION
data/dvbstreamer-2.1.0/src/convertdvbdb.c:367:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buffer, "Frequency: %d\n"
data/dvbstreamer-2.1.0/src/dbase.c:65:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dbaseFile, "%s/adapter%d.db", DataDirectory, adapter);
data/dvbstreamer-2.1.0/src/dbase.c:185:17:  [4] (shell) execl:
  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.
                execl(path, path, dbaseFile, NULL);
data/dvbstreamer-2.1.0/src/dvbadapter.c:678:84:  [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.
bool DVBFrontEndDeliverySystemSupported(DVBAdapter_t * adapter,DVBDeliverySystem_e system)
data/dvbstreamer-2.1.0/src/dvbadapter.c:683:57:  [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 (adapter->supportedDelSystems->systems[i] == system)
data/dvbstreamer-2.1.0/src/dvbadapter.c:691:64:  [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.
int DVBFrontEndTune(DVBAdapter_t *adapter, DVBDeliverySystem_e system, char *params)
data/dvbstreamer-2.1.0/src/dvbadapter.c:697:42:  [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.
        adapter->currentDeliverySystem = system;
data/dvbstreamer-2.1.0/src/dvbadapter.c:700: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.
        ConvertYamlToFEParams(system, &document, &adapter->frontEndParams, &adapter->satelliteSettings);
data/dvbstreamer-2.1.0/src/dvbadapter.c:703:36:  [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.
        ConvertYamlToDTVProperties(system, &document, adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:712:76:  [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.
char* DVBFrontEndParametersGet(DVBAdapter_t *adapter, DVBDeliverySystem_e *system)
data/dvbstreamer-2.1.0/src/dvbadapter.c:741:79:  [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.
bool DVBFrontEndParameterSupported(DVBAdapter_t *adapter, DVBDeliverySystem_e system, char *param, char *value)
data/dvbstreamer-2.1.0/src/dvbadapter.c:744:53:  [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 (DVBFrontEndDeliverySystemSupported(adapter, system))
data/dvbstreamer-2.1.0/src/dvbadapter.c:1455:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(value->u.string + strlen(value->u.string),
data/dvbstreamer-2.1.0/src/dvbctrl.c:105:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/dvbctrl.c:121:23:  [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).
            case 'L': strcpy(logFilename, optarg);
data/dvbstreamer-2.1.0/src/dvbctrl.c:166:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(logFilename, "dvbctrl-%s-%d.log", host, adapterNumber);
data/dvbstreamer-2.1.0/src/dvbctrl.c:319:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(line, argv[i]);
data/dvbstreamer-2.1.0/src/dvbctrl.c:414:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(line, "auth %s %s", username, password);
data/dvbstreamer-2.1.0/src/epgchannel.c:120:56:  [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.
int EPGChannelNewRating(EPGEventRef_t *eventRef, char *system, char *rating)
data/dvbstreamer-2.1.0/src/epgchannel.c:129:38:  [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.
    msg->data.rating.system = strdup(system);
data/dvbstreamer-2.1.0/src/epgchannel.c:181:35:  [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.
            free(msg->data.rating.system);
data/dvbstreamer-2.1.0/src/epgtypes.c:69:18:  [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.
    free(rating->system);
data/dvbstreamer-2.1.0/src/fileadapter.c:263:84:  [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.
bool DVBFrontEndDeliverySystemSupported(DVBAdapter_t * adapter,DVBDeliverySystem_e system)
data/dvbstreamer-2.1.0/src/fileadapter.c:268:57:  [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 (adapter->supportedDelSystems->systems[i] == system)
data/dvbstreamer-2.1.0/src/fileadapter.c:277:64:  [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.
int DVBFrontEndTune(DVBAdapter_t *adapter, DVBDeliverySystem_e system, char *params)
data/dvbstreamer-2.1.0/src/fileadapter.c:283:42:  [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.
        adapter->currentDeliverySystem = system;
data/dvbstreamer-2.1.0/src/fileadapter.c:293:76:  [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.
char* DVBFrontEndParametersGet(DVBAdapter_t *adapter, DVBDeliverySystem_e *system)
data/dvbstreamer-2.1.0/src/fileadapter.c:299:78:  [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.
bool DVBFrontEndParameterSupported(DVBAdapter_t *adapter,DVBDeliverySystem_e system, char *param, char *value)
data/dvbstreamer-2.1.0/src/fileadapter.c:587:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s/file%d/info", DataDirectory, adapter->adapter);
data/dvbstreamer-2.1.0/src/fileadapter.c:642:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(path, "%s/file%d/%u", DataDirectory, adapter, freq);
data/dvbstreamer-2.1.0/src/fileadapter.c:715:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(value->u.string + strlen(value->u.string), 
data/dvbstreamer-2.1.0/src/logging.c:110:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(logFile, "/var/log/%s", filename);
data/dvbstreamer-2.1.0/src/logging.c:114:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(logFile, "%s/%s", DataDirectory, filename);
data/dvbstreamer-2.1.0/src/logging.c:178:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
                if (sscanf(line, "%s %d\n", module, &level) == 2)
data/dvbstreamer-2.1.0/src/logging.c:231:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stderr, format, valist);
data/dvbstreamer-2.1.0/src/logging.c:278:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(logFP, format, valist);
data/dvbstreamer-2.1.0/src/main.c:162:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/main.c:179:27:  [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).
                case 'L': strcpy(logFilename, optarg);
data/dvbstreamer-2.1.0/src/main.c:254:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(logFilename, "%s/levels-%d.log", DataDirectory, adapterNumber);
data/dvbstreamer-2.1.0/src/main.c:838:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(PidFile, "%s/dvbstreamer-%d.pid", DataDirectory, adapter);
data/dvbstreamer-2.1.0/src/parsezap.c:364:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#define PARAMADD(p...) sprintf(params + strlen(params), p)
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:484:29:  [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(desc->lang, lang);
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:589:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(text, cur->text[i]);
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:280:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(buffer, temp);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:28:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(filecache->name, channel_name);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:635:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(dir->dirpath, dir->parent->dirpath);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:637:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(dir->dirpath, dir->name);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:640:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(dirbuf, "%s/%s/%s", "/tmp/cache/", filecache->name, dir->dirpath);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:748:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "/tmp/cache/%s/%s/%s", filecache->name, file->parent->dirpath, file->filename);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:769:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(filei->filename, file->filename);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:771:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(filei->path, buf);
data/dvbstreamer-2.1.0/src/plugins/manualfilters.c:387:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argument, formatstr, &pid) == 0)
data/dvbstreamer-2.1.0/src/plugins/outputs.c:268:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(propertyPath, "%s.%s", propertiesParent, output->name);
data/dvbstreamer-2.1.0/src/plugins/outputs.c:308:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(propertyPath, "%s.%s", propertiesParent, currentOutput->name);
data/dvbstreamer-2.1.0/src/plugins/sap.c:150:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(session->sdp, sdp);
data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c:47:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(filterName, SectionFilterNameFormat, pid); \
data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c:158:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(filterName, SectionFilterNameFormat, pid);
data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c:317:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(argument, formatstr, &pid) == 0)
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:247:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(hostbuffer, DEFAULT_HOST);
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:251:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(portbuffer, DEFAULT_PORT);
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:481:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(sdp,typevalue);\
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:487:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(sdp,typevalue);\
data/dvbstreamer-2.1.0/src/properties.c:651:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(nodeName, elementStart);
data/dvbstreamer-2.1.0/src/servicefilter.c:160:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(result->propertyPath, "filters.service.%s", name);
data/dvbstreamer-2.1.0/src/services.c:479:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(where, SERVICES_TABLE "." SERVICE_MULTIPLEXUID"=%d", multiplex->uid);
data/dvbstreamer-2.1.0/src/services.c:587:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buffer, "%04x.%04x.%04x : \"%s\"", service->networkId & 0xffff, service->tsId & 0xffff, service->id & 0xffff, service->name);
data/dvbstreamer-2.1.0/src/setup.c:94:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/setup.c:110:23:  [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).
            case 'L': strcpy(logFilename, optarg);
data/dvbstreamer-2.1.0/src/setup.c:267:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    fprintf(stderr,"Usage:%s <options>\n"
data/dvbstreamer-2.1.0/src/utf8.c:459:11:  [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.
    cnt = vsnprintf(buf, sz, fmt, ap);
data/dvbstreamer-2.1.0/src/dvbctrl.c:105:47:  [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.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/dvbctrl.c:111:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt(argc, argv, "vVh:a:u:p:f:L:i");
data/dvbstreamer-2.1.0/src/main.c:162:47:  [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.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/main.c:170:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt(argc, argv, "vVdDro:a:f:u:p:n:F:i:RL:I");
data/dvbstreamer-2.1.0/src/setup.c:94:47:  [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.
    sprintf(DataDirectory, "%s/.dvbstreamer", getenv("HOME"));
data/dvbstreamer-2.1.0/src/setup.c:100:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        c = getopt(argc, argv, "vVdro:a:t:s:S:c:A:l:hL:i:");
data/dvbstreamer-2.1.0/include/atsctext.h:38:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lang[3]; /**< ISO639.2/B language code. */
data/dvbstreamer-2.1.0/include/commands.h:105: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 errorMessage[MAX_ERR_MSG]; /**< Error message text from the last command executed. */
data/dvbstreamer-2.1.0/include/epgtypes.h:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lang[4]; /**< 3 character language code + \0 */
data/dvbstreamer-2.1.0/include/properties.h:79: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 *elements[PROPERTY_MAX_PATH_ELEMENTS];
data/dvbstreamer-2.1.0/src/commands.c:218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/dvbstreamer-2.1.0/src/commands.c:221:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(file, "r");
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:82:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char startTimeStr[25];
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:83: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 endTimeStr[25];
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:132: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 temp[10];
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:153:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&amp;");
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:156:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&lt;");
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:159:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&gt;");
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:88:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *docs[0];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char polarisation[11];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:319:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char propertyName[PROPERTIES_PATH_MAX];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:734: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 *modulations[MAX_MODULATIONS];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:947: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 modStr[7];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:950: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 bwStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:951: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 fecHiStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:952: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 fecLoStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:953: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 transModeStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:954: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 guardIntStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:955: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 hierarchyStr[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:956: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 polarisationStr[2];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:958: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 params[256];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1229: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 tparams[256];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1230: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 sparams[256];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1464:60:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                        result->frequencies[i].satNumber = atoi((const char *)node->data.scalar.value);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1902: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 temp[5];
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1906:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(temp, "%d", toScan.count);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1911:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(temp, "%d", toScan.pos);
data/dvbstreamer-2.1.0/src/commands/cmd_servicefilter.c:240: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 *tmpArgs[2];
data/dvbstreamer-2.1.0/src/commands/cmd_servicefilter.c:248: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 *tmpArgs[1];
data/dvbstreamer-2.1.0/src/convertdvbdb.c:229: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 statement[256];
data/dvbstreamer-2.1.0/src/convertdvbdb.c:230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/dvbstreamer-2.1.0/src/convertdvbdb.c:407: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 statement[256];
data/dvbstreamer-2.1.0/src/convertdvbdb.c:408: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(statement, "INSERT OR REPLACE INTO " METADATA_TABLE " "
data/dvbstreamer-2.1.0/src/dbase.c:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char dbaseFile[PATH_MAX];
data/dvbstreamer-2.1.0/src/dbase.c:168:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char path[PATH_MAX];
data/dvbstreamer-2.1.0/src/dbase.c:172:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(path, "/proc/%d/exe", getpid());
data/dvbstreamer-2.1.0/src/dbase.c:177:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(filename + 1, "convertdvbdb");
data/dvbstreamer-2.1.0/src/dvbadapter.c:161: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 frontEndPath[30];            /**< Path to the frontend device */
data/dvbstreamer-2.1.0/src/dvbadapter.c:180: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 demuxPath[30];               /**< Path to the demux device */
data/dvbstreamer-2.1.0/src/dvbadapter.c:186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char dvrPath[30];                 /**< Path to the dvr device */
data/dvbstreamer-2.1.0/src/dvbadapter.c:426:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result->frontEndPath, "/dev/dvb/adapter%d/frontend0", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:427:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result->demuxPath, "/dev/dvb/adapter%d/demux0", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:428:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(result->dvrPath, "/dev/dvb/adapter%d/dvr0", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:435:46:  [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).
                result->filters[i].demuxFd = open(result->demuxPath, O_RDWR);
data/dvbstreamer-2.1.0/src/dvbadapter.c:455:30:  [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).
        result->frontEndFd = open(result->frontEndPath, O_RDWR);
data/dvbstreamer-2.1.0/src/dvbadapter.c:524:25:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        result->dvrFd = open(result->dvrPath, O_RDONLY | O_NONBLOCK);
data/dvbstreamer-2.1.0/src/dvbadapter.c:551:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char sysPath[PATH_MAX];
data/dvbstreamer-2.1.0/src/dvbadapter.c:553:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char text[256] = {0};
data/dvbstreamer-2.1.0/src/dvbadapter.c:555:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sysPath, "/sys/class/dvb/dvb%d.demux0/device/speed", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:557:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(sysPath, "r");
data/dvbstreamer-2.1.0/src/dvbadapter.c:571:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sysPath, "/sys/class/dvb/dvb%d.demux0/device/manufacturer", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:572:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(sysPath, "r");
data/dvbstreamer-2.1.0/src/dvbadapter.c:580:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(sysPath, "/sys/class/dvb/dvb%d.demux0/device/product", adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:581:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(sysPath, "r");
data/dvbstreamer-2.1.0/src/dvbadapter.c:731: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(props, &adapter->frontEndPropertyArray, sizeof(struct dtv_property) * properties.num);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1120:46:  [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).
        adapter->filters[idxToUse].demuxFd = open(adapter->demuxPath, O_RDWR);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1289:43:  [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).
                    adapter->frontEndFd = open(adapter->frontEndPath, O_RDWR);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1420: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 adapterStr[4];
data/dvbstreamer-2.1.0/src/dvbadapter.c:1422: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(adapterStr, "%d", adapter->adapter);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1656: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 temp[25];
data/dvbstreamer-2.1.0/src/dvbadapter.c:1657: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(temp, "%u", feparams->frequency);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1665:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", feparams->u.qpsk.symbol_rate);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1668:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", satSettings->satellite_number);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1673:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", feparams->u.qam.symbol_rate);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1803: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 temp[25];
data/dvbstreamer-2.1.0/src/dvbadapter.c:1805: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(temp, "%u", GET_U32_PROP(PROP_IDX_FREQ));
data/dvbstreamer-2.1.0/src/dvbadapter.c:1814:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", GET_U32_PROP(PROP_IDX_DVBS_SYMBOL_RATE));
data/dvbstreamer-2.1.0/src/dvbadapter.c:1818:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", satSettings->satellite_number);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1826:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", GET_U32_PROP(PROP_IDX_DVBS2_SYMBOL_RATE));
data/dvbstreamer-2.1.0/src/dvbadapter.c:1834:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", satSettings->satellite_number);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1840:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp, "%u", GET_U32_PROP(PROP_IDX_DVBC_SYMBOL_RATE));
data/dvbstreamer-2.1.0/src/dvbadapter.c:1846:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp,"%u", GET_U32_PROP(PROP_IDX_DVBT_BANDWIDTH));
data/dvbstreamer-2.1.0/src/dvbadapter.c:1866:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(temp,"%u", GET_U32_PROP(PROP_IDX_DVBT_BANDWIDTH));
data/dvbstreamer-2.1.0/src/dvbctrl.c:71:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char line[MAX_LINE_LENGTH];
data/dvbstreamer-2.1.0/src/dvbctrl.c:75:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char DataDirectory[PATH_MAX];
data/dvbstreamer-2.1.0/src/dvbctrl.c:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char portnumber[10];    
data/dvbstreamer-2.1.0/src/dvbctrl.c:99: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 logFilename[PATH_MAX] = {0};
data/dvbstreamer-2.1.0/src/dvbctrl.c:131:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                adapterNumber = atoi(optarg);
data/dvbstreamer-2.1.0/src/dvbctrl.c:162:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(logFilename, "dvbctrl-%d.log", adapterNumber);
data/dvbstreamer-2.1.0/src/dvbctrl.c:184: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(portnumber, "%d", REMOTEINTERFACE_PORT + adapterNumber);
data/dvbstreamer-2.1.0/src/dvbctrl.c:202: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(&address, addrinfo->ai_addr, addrinfo->ai_addrlen);
data/dvbstreamer-2.1.0/src/dvbctrl.c:213:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((char *)&(address.sin_addr), hostinfo->h_addr, hostinfo->h_length);
data/dvbstreamer-2.1.0/src/dvbctrl.c:275:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                fp = fopen(filename, "r");
data/dvbstreamer-2.1.0/src/dvbctrl.c:496: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).
        *errno = atoi(start);
data/dvbstreamer-2.1.0/src/dvbpsi/datetime.c:57: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_date_time, gmtime(&secs), sizeof(struct tm));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptor.c:63: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_descriptor->p_data, p_data, i_length);
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_02.c:140: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_dup_decoded, p_decoded, sizeof(dvbpsi_vstream_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_03.c:113: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_dup_decoded, p_decoded, sizeof(dvbpsi_astream_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_04.c:114: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_dup_decoded, p_decoded, sizeof(dvbpsi_hierarchy_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_05.c:87: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_decoded->i_additional_info,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_05.c:116: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_descriptor->p_data + 4,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_05.c:126: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_dup_decoded, p_decoded, sizeof(dvbpsi_registration_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_06.c:110: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_dup_decoded, p_decoded, sizeof(dvbpsi_ds_alignment_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_07.c:121: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_dup_decoded, p_decoded, sizeof(dvbpsi_target_bg_grid_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_08.c:118: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_dup_decoded, p_decoded, sizeof(dvbpsi_vwindow_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_09.c:85: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_decoded->i_private_data,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_09.c:113: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_descriptor->p_data + 4,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_09.c:123: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_dup_decoded, p_decoded, sizeof(dvbpsi_ca_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0a.c:122: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_dup_decoded, p_decoded, sizeof(dvbpsi_iso639_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0b.c:117: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_dup_decoded, p_decoded, sizeof(dvbpsi_system_clock_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0c.c:120: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_dup_decoded,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0d.c:88: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_decoded->i_additional_info,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0d.c:117: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_descriptor->p_data + 4,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0d.c:127: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_dup_decoded, p_decoded, sizeof(dvbpsi_copyright_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0e.c:115:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p_dup_decoded, p_decoded, sizeof(dvbpsi_max_bitrate_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_0f.c:117: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_dup_decoded, p_decoded, sizeof(dvbpsi_private_data_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_13.c:71: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_decoded->s_private_data, &p_descriptor->p_data[4], p_decoded->i_private_data_len);
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_14.c:85: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_decoded->p_selector, &p_descriptor->p_data[5 ], selector_len);    
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_14.c:86: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_decoded->p_private_data, &p_descriptor->p_data[5 + selector_len], private_data_len);
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_42.c:76: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_decoded->i_stuffing_byte,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_42.c:101: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_descriptor->p_data,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_42.c:111: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_dup_decoded, p_decoded, sizeof(dvbpsi_stuffing_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_43.c:133: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_dup_decoded, p_decoded, sizeof(dvbpsi_sat_deliv_sys_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_47.c:76: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_decoded->i_char,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_47.c:101: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_descriptor->p_data,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_47.c:111: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_dup_decoded, p_decoded, sizeof(dvbpsi_bouquet_name_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c:94: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_decoded->i_service_provider_name,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c:109: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_decoded->i_service_name,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c:135: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_descriptor->p_data + 2,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c:141: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_descriptor->p_data + 3 + p_decoded->i_service_provider_name_length,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_48.c:151: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_dup_decoded, p_decoded, sizeof(dvbpsi_service_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:83:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( p_decoded->i_iso_639_code, &p_descriptor->p_data[0], 3 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:86: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_decoded->i_event_name, &p_descriptor->p_data[3+1], i_len1 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:89: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_decoded->i_text, &p_descriptor->p_data[4+i_len1+1], i_len2 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:113: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_descriptor->p_data[0], p_decoded->i_iso_639_code, 3 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:116: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_descriptor->p_data[4], p_decoded->i_event_name, i_len1 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:119: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_descriptor->p_data[3+i_len1+1], p_decoded->i_text, i_len2 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4d.c:127: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_dup_decoded, p_decoded, sizeof(dvbpsi_short_event_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:77:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy( &p_decoded->i_iso_639_code[0], &p_descriptor->p_data[1], 3 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:87: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_decoded->i_buffer[i_pos], &p[1], p[0] );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:93: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_decoded->i_buffer[i_pos], &p[1], p[0] );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:102: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_decoded->i_buffer[i_pos],
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.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( &p[1], p_decoded->i_iso_639_code, 3 );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:147: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[1], p_decoded->i_item_description[i], p[0] );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:151: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[1], p_decoded->i_item[i], p[0] );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:156: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[1], p_decoded->i_text, p[0] );
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_4e.c:164: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_dup_decoded, p_decoded, sizeof(dvbpsi_extended_event_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_52.c:110: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_dup_decoded, p_decoded, sizeof(dvbpsi_stream_identifier_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_55.c:137: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_dup_decoded, p_decoded, sizeof(dvbpsi_parental_rating_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_56.c:94: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_decoded->p_pages[i].i_iso6392_language_code,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_56.c:130: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_descriptor->p_data + 8 * i,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_56.c:148: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_dup_decoded, p_decoded, sizeof(dvbpsi_teletext_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_59.c:97: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_decoded->p_subtitle[i].i_iso6392_language_code,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_59.c:136: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_descriptor->p_data + 8 * i,
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_59.c:160: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_dup_decoded, p_decoded, sizeof(dvbpsi_subtitling_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_5a.c:136: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_dup_decoded, p_decoded, sizeof(dvbpsi_terr_deliv_sys_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_66.c:70: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_decoded->s_id_selector, &p_descriptor->p_data[2], p_decoded->i_id_selector_len);
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_69.c:116: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_dup_decoded, p_decoded, sizeof(dvbpsi_PDC_dr_t));
data/dvbstreamer-2.1.0/src/dvbpsi/descriptors/dr_73.c:60: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_decoded->authority, p_descriptor->p_data, p_descriptor->i_length);
data/dvbstreamer-2.1.0/src/dvbpsi/dvbpsi.c:150: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_section->p_payload_end, p_payload_pos, h_dvbpsi->i_need);
data/dvbstreamer-2.1.0/src/dvbpsi/dvbpsi.c:260: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_section->p_payload_end, p_payload_pos, i_available);
data/dvbstreamer-2.1.0/src/dvbpsi/psi.c:217: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_cloned->p_data, p_section->p_data, p_section->i_max_size);
data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_eit.c:240: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_event->i_title, p_title, i_title_length);
data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_ett.c:242: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_etm, p_section->p_payload_start + 5, i_etm_length);
data/dvbstreamer-2.1.0/src/dvbpsi/tables/atsc_vct.c:290: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_channel->i_short_name, p_short_name, sizeof(uint16_t) * 7);
data/dvbstreamer-2.1.0/src/dvbpsi/tables/cat.c:446: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_current->p_payload_end + 2,
data/dvbstreamer-2.1.0/src/dvbpsi/tables/pmt.c:580: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_current->p_payload_end + 2,
data/dvbstreamer-2.1.0/src/dvbpsi/tables/pmt.c:666: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_current->p_payload_end + 2,
data/dvbstreamer-2.1.0/src/dvbpsi/tables/sdt.c:591: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_current->p_payload_end + 2, p_descriptor->p_data, p_descriptor->i_length);
data/dvbstreamer-2.1.0/src/epgchannel.c:145: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(msg->data.detail.lang, lang, sizeof(eventDetail->lang));
data/dvbstreamer-2.1.0/src/events.c:300: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(sourceName, name, sourceNameLen);
data/dvbstreamer-2.1.0/src/fileadapter.c:543: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[188 * 10];
data/dvbstreamer-2.1.0/src/fileadapter.c:582:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[PATH_MAX];
data/dvbstreamer-2.1.0/src/fileadapter.c:583: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 type[10];
data/dvbstreamer-2.1.0/src/fileadapter.c:588:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(path, "r");
data/dvbstreamer-2.1.0/src/fileadapter.c:639:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char path[PATH_MAX];
data/dvbstreamer-2.1.0/src/fileadapter.c:643:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(path, "r");
data/dvbstreamer-2.1.0/src/fileadapter.c:664:27:  [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(path, O_RDONLY);
data/dvbstreamer-2.1.0/src/fileadapter.c:680: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 adapterStr[4];
data/dvbstreamer-2.1.0/src/fileadapter.c:682: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(adapterStr, "%d", adapter->adapter);
data/dvbstreamer-2.1.0/src/logging.c:91:17:  [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).
        logFP = fopen(filepath, "a");
data/dvbstreamer-2.1.0/src/logging.c:111: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).
    logFP = fopen(logFile, "a");
data/dvbstreamer-2.1.0/src/logging.c:115:17:  [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).
        logFP = fopen(logFile, "a");
data/dvbstreamer-2.1.0/src/logging.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[256];
data/dvbstreamer-2.1.0/src/logging.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char module[128];
data/dvbstreamer-2.1.0/src/logging.c:170:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(path, "r");
data/dvbstreamer-2.1.0/src/logging.c:260: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 timeBuffer[24]; /* "YYYY-MM-DD HH:MM:SS" */
data/dvbstreamer-2.1.0/src/logging.c:296:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char numericName[20];
data/dvbstreamer-2.1.0/src/logging.c:305: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(numericName, "0x%08lx", (unsigned long)thread);
data/dvbstreamer-2.1.0/src/main.c:127:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char DataDirectory[PATH_MAX];
data/dvbstreamer-2.1.0/src/main.c:129:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char PidFile[PATH_MAX];
data/dvbstreamer-2.1.0/src/main.c:136:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char hexVersionStr[5]; /* XXXX\0 */
data/dvbstreamer-2.1.0/src/main.c:159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logFilename[PATH_MAX] = {0};
data/dvbstreamer-2.1.0/src/main.c:187:43:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                case 'a': adapterNumber = atoi(optarg);
data/dvbstreamer-2.1.0/src/main.c:246:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(logFilename, "dvbstreamer-%d.log", adapterNumber);
data/dvbstreamer-2.1.0/src/main.c:416:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char serverNameBuffer[40];
data/dvbstreamer-2.1.0/src/main.c:419:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(serverNameBuffer, "DVBStreamer Adapter %d", adapterNumber);
data/dvbstreamer-2.1.0/src/main.c:577: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(hexVersionStr, "%02x%02x", DVBSTREAMER_MAJOR, DVBSTREAMER_MINOR);
data/dvbstreamer-2.1.0/src/main.c:834:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(PidFile, "/var/run/dvbstreamer-%d.pid", adapter);
data/dvbstreamer-2.1.0/src/main.c:835: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).
        fp = fopen(PidFile, "wt");
data/dvbstreamer-2.1.0/src/main.c:839:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fp = fopen(PidFile, "wt");
data/dvbstreamer-2.1.0/src/multiplexes.c:88: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).
        int n = atoi(mux);
data/dvbstreamer-2.1.0/src/multiplexes.c:278: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 idStr[16];
data/dvbstreamer-2.1.0/src/multiplexes.c:281: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(idStr, "%d", mux->uid);
data/dvbstreamer-2.1.0/src/multiplexes.c:283: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(idStr, "%04x.%04x", mux->networkId & 0xffff, mux->tsId & 0xffff);
data/dvbstreamer-2.1.0/src/objects.c:70: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    sig[8];
data/dvbstreamer-2.1.0/src/objects.c:376: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(result->sig, "ObjectP", 8);
data/dvbstreamer-2.1.0/src/parsezap.c:189: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       str[255];
data/dvbstreamer-2.1.0/src/parsezap.c:193: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(path, "rb");
data/dvbstreamer-2.1.0/src/parsezap.c:343: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 params[256];
data/dvbstreamer-2.1.0/src/parsezap.c:344: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 frequency[16] = {0};
data/dvbstreamer-2.1.0/src/parsezap.c:346: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 satelliteNumber[4] = {0};
data/dvbstreamer-2.1.0/src/parsezap.c:360:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(params, "Frequency: %lu\n", _freq);\
data/dvbstreamer-2.1.0/src/parsezap.c:361:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(frequency, "%lu", _freq);\
data/dvbstreamer-2.1.0/src/pids.c:254: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[pos + 2], current->p_data, current->i_length);
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:273: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 lang[4];
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:361:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char startTimeStr[25];
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:362:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endTimeStr[25];
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:365: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 lang[4];
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:425:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[(16 * 3) + 1];
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:435:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(line + strlen(line), "%02x ", descriptor->p_data[i]);
data/dvbstreamer-2.1.0/src/plugins/datetime.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char secondsStr[20];
data/dvbstreamer-2.1.0/src/plugins/datetime.c:149: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 timeStr[256];
data/dvbstreamer-2.1.0/src/plugins/datetime.c:155: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(secondsStr, "%ld", t);
data/dvbstreamer-2.1.0/src/plugins/dsmcc.c:370: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 idStr[SERVICE_ID_STRING_LENGTH];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lang[4];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:70: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 *text[16];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:75:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[MAX_STRING_LEN];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:76: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 description[MAX_STRING_LEN];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:384:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char startTimeStr[25];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:385:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char endTimeStr[25];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:413:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char lang[4];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:452:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char lang[4];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:495:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char cc[4];
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:694: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(event->name, sedescriptor->i_event_name, sedescriptor->i_event_name_length);
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:696: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(event->description, sedescriptor->i_text, sedescriptor->i_text_length);
data/dvbstreamer-2.1.0/src/plugins/en50221.c:303: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, p_content, i_length );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:435: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, p_data, i_size );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:871: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, p_data, i_size );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:887: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( ca_msg.msg, p_apdu, i_size + p - p_apdu );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1104:21:  [2] (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_data[i + 2], p_dr->p_data, p_dr->i_length );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1157:21:  [2] (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_data[i + 2], p_dr->p_data, p_dr->i_length );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1949:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char psz_tmp[128];
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1954: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( psz_tmp, "/dev/dvb/adapter%d/ca0", adapter );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1955:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if( (i_ca_handle = open(psz_tmp, O_RDWR | O_NONBLOCK)) < 0 )
data/dvbstreamer-2.1.0/src/plugins/en50221.h:158: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_answer, *pp_pointer, i_size );                            \
data/dvbstreamer-2.1.0/src/plugins/en50221.h:165: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_answer, p_object, sizeof(en50221_mmi_object_t) );
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:235:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[256];
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:236: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 temp[10];
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:257:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&amp;");
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:260:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&lt;");
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:263:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(temp, "&gt;");
data/dvbstreamer-2.1.0/src/plugins/eventsdispatcher.c:349:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char timeStr[21]; /* xxxx-xx-xx xx:xx:xx */
data/dvbstreamer-2.1.0/src/plugins/fileoutput.c:130:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    instance->fp = fopen((char*)(arg + prefixLen), mode);
data/dvbstreamer-2.1.0/src/plugins/freesat_huffman.c:141:17:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
                strcpy(&uncompressed[p], "...");
data/dvbstreamer-2.1.0/src/plugins/lcnquery.c:304:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int lcn = atoi(argv[0]);
data/dvbstreamer-2.1.0/src/plugins/lcnquery.c:330:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int lcn = atoi(argv[0]);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:64:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdr->objkey, Data + off, hdr->objkey_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:78:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(hdr->objkind, Data + off, hdr->objkind_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:91: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(hdr->objinfo, Data + off, hdr->objinfo_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:113: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(comp->id, Data + off, comp->id_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:123: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(comp->kind, Data + off, comp->kind_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:193: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(bind->objinfo, Data + off, bind->objinfo_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:530: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(tap->selector_data, Data + off, tap->selector_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:610: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(loc->objkey, Data + off, loc->objkey_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-biop.c:683: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(ior->type_id, Data + off, ior->type_id_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:530: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(dir->name, bind->name.comps[0].id, bind->name.comps[0].id_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:538: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(dir->key, bind->ior.body.full.obj_loc.objkey, dir->key_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:545: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(dir->p_key, objkey, objkey_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:628: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 dirbuf[256];
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:684: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(file->data, cachep->data + cachep->curp,
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:690: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(file->key, bm->hdr.objkey, file->key_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:722: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(file->data, cachep->data + cachep->curp,
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:738:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[128];
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:749:19:  [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).
        data_fd = fopen(buf, "wb");
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:910: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(newfile->key, bind->ior.body.full.obj_loc.objkey,
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:920: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(newfile->filename, bind->name.comps[0].id,
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:935: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(newfile->p_key, key, key_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:953: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(newfile->p_key, dir->key, dir->key_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.c:18: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(type->text, Data, desc->len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.c:29: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(name->text, Data, desc->len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.c:38: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(info->lang_code, Data, 3);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.c:42: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(info->text, Data + 3, desc->len - 3);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-descriptor.h:18:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lang_code[3];
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.c:240:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(car->gate->user_data, Data + off, car->gate->data_len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.c:687:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(lb->blockdata, Data, ddb->len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.c:707:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(cachep->data + cachep->curp, lb->blockdata, lb->len);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-receiver.h:76:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char flags[2];
data/dvbstreamer-2.1.0/src/plugins/outputs.c:267:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char propertyPath[PROPERTIES_PATH_MAX];
data/dvbstreamer-2.1.0/src/plugins/outputs.c:306:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char propertyPath[PROPERTIES_PATH_MAX];
data/dvbstreamer-2.1.0/src/plugins/pipeoutput.c:132:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    instance->fd = open(path, O_RDWR);
data/dvbstreamer-2.1.0/src/plugins/sap.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sdp[1000];
data/dvbstreamer-2.1.0/src/plugins/sap.c:149: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(&session->originatingSource, originatingSource, sizeof(struct sockaddr_storage));
data/dvbstreamer-2.1.0/src/plugins/sap.c:197: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(&packet[4], &inAddr->sin_addr, 4);
data/dvbstreamer-2.1.0/src/plugins/sap.c:203: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(&packet[4], &in6Addr->sin6_addr, 16);
data/dvbstreamer-2.1.0/src/plugins/sap.c:205:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&packet[mimeTypeOffset], mimeType, sizeof(mimeType));
data/dvbstreamer-2.1.0/src/plugins/sap.c:206: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(&packet[mimeTypeOffset + sizeof(mimeType)], session->sdp, strlen(session->sdp));
data/dvbstreamer-2.1.0/src/plugins/sap.c:246: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 (&sockAddr4->sin_addr.s_addr, &ip, sizeof (ip));
data/dvbstreamer-2.1.0/src/plugins/sap.c:256: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 (&sockAddr6->sin6_addr.s6_addr,
data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c:45:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char filterName[20]; /* Section(PID 0x%04x) */ \
data/dvbstreamer-2.1.0/src/plugins/sectionfilters.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char filterName[20]; /* Section(PID 0x%04x) */
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:164: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 hostbuffer[256];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char portbuffer[6]; /* 65536\0 */
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:223:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ttlbuffer[4];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:232:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        ttl = (unsigned char)atoi(ttlbuffer) & 255;
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:291: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(&state->address, addrinfo->ai_addr, addrinfo->ai_addrlen);
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:298:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        sockaddr.sin_port=htons(atoi(portbuffer));
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:306:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((char *)&(sockaddr.sin_addr), hostinfo->h_addr, hostinfo->h_length);
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:308: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(&state->address, &sockaddr, sizeof(sockaddr));
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:413: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 sdp[1000] = {0};
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:414: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 hostname[256];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:415: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 addrtype[4];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:416: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 ipaddr[256];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:417: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 typevalue[256];
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:447:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(addrtype, "IP4");
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:453:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(addrtype, "IP6");
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:469:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(addrtype, "IP4");
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:473:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(addrtype, "IP6");
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:480:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(typevalue,"%c=" value "\r\n", type);\
data/dvbstreamer-2.1.0/src/plugins/udpoutput.c:486:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(typevalue,"%c=" fmt "\r\n", type, values);\
data/dvbstreamer-2.1.0/src/properties.c:638: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 nodeName[PROPERTIES_PATH_MAX];
data/dvbstreamer-2.1.0/src/remoteintf.c:149: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 portnumber[10];
data/dvbstreamer-2.1.0/src/remoteintf.c:151: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(portnumber, "%d", REMOTEINTERFACE_PORT + adapter);
data/dvbstreamer-2.1.0/src/remoteintf.c:169: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(&address, addrinfo->ai_addr, addrinfo->ai_addrlen);
data/dvbstreamer-2.1.0/src/remoteintf.c:289:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char connectionStr[MAX_CONNECTION_STR_LENGTH];
data/dvbstreamer-2.1.0/src/remoteintf.c:340: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 connectionStr[MAX_CONNECTION_STR_LENGTH];
data/dvbstreamer-2.1.0/src/remoteintf.c:341:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[MAX_LINE_LENGTH];
data/dvbstreamer-2.1.0/src/remoteintf.c:437: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 connectionStr[MAX_CONNECTION_STR_LENGTH];
data/dvbstreamer-2.1.0/src/remoteintf.c:473:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(output + strlen(output), ":%d", ((struct sockaddr_in*)connAddr)->sin_port);
data/dvbstreamer-2.1.0/src/remoteintf.c:480:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(output + strlen(output), "]:%d", ((struct sockaddr_in*)connAddr)->sin_port);
data/dvbstreamer-2.1.0/src/remoteintf.c:484:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(output, "<unknown>");
data/dvbstreamer-2.1.0/src/servicefilter.c:67:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char            propertyPath[PROPERTIES_PATH_MAX];
data/dvbstreamer-2.1.0/src/servicefilter.c:383:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(&filter->packets[PACKETS_INDEX_PMT], &filter->pmtPackets, TSPACKET_SIZE * filter->pmtPacketCount);
data/dvbstreamer-2.1.0/src/servicefilter.c:389:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&filter->pmtPackets[filter->pmtPacketCount], packet, TSPACKET_SIZE);
data/dvbstreamer-2.1.0/src/servicefilter.c:651:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char serviceId[16] = "";
data/dvbstreamer-2.1.0/src/servicefilter.c:656:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(serviceId, "%04x.%04x.%04x", service->networkId, service->tsId, service->id);
data/dvbstreamer-2.1.0/src/services.c:478: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 where[50];
data/dvbstreamer-2.1.0/src/services.c:573:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buffer, "%04x.%04x.%04x", service->networkId & 0xffff, service->tsId & 0xffff, service->id & 0xffff);
data/dvbstreamer-2.1.0/src/services.c:677: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 idStr[20] = {0};
data/dvbstreamer-2.1.0/src/services.c:682:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(idStr, "%04x.%04x.%04x", service->networkId & 0xffff, service->tsId & 0xffff, service->id & 0xffff);
data/dvbstreamer-2.1.0/src/setup.c:75:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char DataDirectory[PATH_MAX];
data/dvbstreamer-2.1.0/src/setup.c:91:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char logFilename[PATH_MAX] = {0};
data/dvbstreamer-2.1.0/src/setup.c:117:33:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                adapterNumber = atoi(optarg);
data/dvbstreamer-2.1.0/src/setup.c:193:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(logFilename, "setupdvbstreamer-%d.log", adapterNumber);
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:87:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char huffman1co[1684] = { 
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:225:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char huffman2co[1526] = { 
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:324:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char TextBuffer[1024]; 
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:325:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char SegmentBuffer[512];
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:326:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char DecompressionBuffer[512];
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:242:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char serviceName[10 + (7 * 6) + 1];
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:251:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(serviceName, "%d-%d ", channel->i_major_number, channel->i_minor_number);
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line[(16 * 3) + 1];
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:368:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(line + strlen(line), "%02x ", descriptor->p_data[i]);
data/dvbstreamer-2.1.0/src/standard/dvb/dvbtext.c:58:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char ResultBuffer[256 * 6];
data/dvbstreamer-2.1.0/src/standard/dvb/dvbtext.c:69:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char asciiBuffer[256]; /* Used when no ISO6937 conversion is provided. */
data/dvbstreamer-2.1.0/src/standard/dvb/dvbtext.c:212:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char from[14];
data/dvbstreamer-2.1.0/src/utf8.c:37:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char trailingBytesForUTF8[256] = {
data/dvbstreamer-2.1.0/src/utf8.c:260: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 digs[9]="\0\0\0\0\0\0\0\0\0";
data/dvbstreamer-2.1.0/src/utf8.c:318: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 temp[4];
data/dvbstreamer-2.1.0/src/utf8.c:333:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&buf[c], temp, amt);
data/dvbstreamer-2.1.0/src/yamlutils.c:37:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer[STRING_SECTION_SIZE];
data/dvbstreamer-2.1.0/src/yamlutils.c:144: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(current, section->buffer + offset, toCopy);
data/dvbstreamer-2.1.0/src/yamlutils.c:170: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(output->currentSection->buffer + output->currentSectionPos, buffer + offset, available);            
data/dvbstreamer-2.1.0/src/yamlutils.c:177: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(output->currentSection->buffer + output->currentSectionPos, buffer + offset, left);
data/dvbstreamer-2.1.0/src/commands.c:243:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(line) > 0)
data/dvbstreamer-2.1.0/src/commands.c:295:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (command && (strlen(command) > 0))
data/dvbstreamer-2.1.0/src/commands.c:340: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).
        textlen = strlen(text);
data/dvbstreamer-2.1.0/src/commands.c:483:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(resultArg, line + argStart, argLen);
data/dvbstreamer-2.1.0/src/commands.c:493:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(resultCmd, line, eoc);
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:136:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(text);
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:170: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).
        if (strlen(temp) + bufferIndex >= sizeof(buffer) - 1)
data/dvbstreamer-2.1.0/src/commands/cmd_epg.c:177: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).
        bufferIndex += strlen(temp);
data/dvbstreamer-2.1.0/src/commands/cmd_info.c:325: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).
        else if (strncmp(argv[i], providerStr, strlen(providerStr)) == 0)
data/dvbstreamer-2.1.0/src/commands/cmd_info.c:327:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            provider = argv[i] + strlen(providerStr);
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1010:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            if (sscanf(initialdata, "T %u %4s %4s %4s %6s %4s %4s %4s",
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1037:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            if (sscanf(initialdata, "C %u %u %4s %6s", &frequency, &symbolRate, fecHiStr, modStr) == 4)
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1051:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            if (sscanf(initialdata, "S %u %1[HVLR] %u %4s\n", &frequency, polarisationStr, &symbolRate, fecHiStr) == 4)
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1085:17:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            if (sscanf(initialdata, "A %u %7s\n", &frequency, modStr) == 2)
data/dvbstreamer-2.1.0/src/commands/cmd_scanning.c:1459:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(result->frequencies[i].polarisation, (const char *)node->data.scalar.value, sizeof(result->frequencies[i].polarisation));
data/dvbstreamer-2.1.0/src/dvbadapter.c:930:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(15000);
data/dvbstreamer-2.1.0/src/dvbadapter.c:936:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(15000);
data/dvbstreamer-2.1.0/src/dvbadapter.c:942:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(15000);
data/dvbstreamer-2.1.0/src/dvbadapter.c:948:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(15000);
data/dvbstreamer-2.1.0/src/dvbadapter.c:954:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(15000);
data/dvbstreamer-2.1.0/src/dvbadapter.c:1275:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(adapter->cmdRecvFd, &cmd, 1) == 1)
data/dvbstreamer-2.1.0/src/dvbadapter.c:1448:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size +=  2 + strlen(DVBDeliverySystemStr[adapter->supportedDelSystems->systems[i]]) + 1;
data/dvbstreamer-2.1.0/src/dvbadapter.c:1455:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(value->u.string + strlen(value->u.string),
data/dvbstreamer-2.1.0/src/dvbctrl.c:304:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(line, " ");
data/dvbstreamer-2.1.0/src/dvbctrl.c:311:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(line, "\"");
data/dvbstreamer-2.1.0/src/dvbctrl.c:316:25:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                        strcat(line, "\'");   
data/dvbstreamer-2.1.0/src/dvbctrl.c:322:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(line, "\"");
data/dvbstreamer-2.1.0/src/dvbctrl.c:326:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    strcat(line, "\'"); 
data/dvbstreamer-2.1.0/src/dvbctrl.c:459:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str);
data/dvbstreamer-2.1.0/src/events.c:386:108:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            int keyId = yaml_document_add_scalar(&document, (yaml_char_t*)YAML_STR_TAG, (yaml_char_t*)key, strlen(key), YAML_ANY_SCALAR_STYLE);
data/dvbstreamer-2.1.0/src/events.c:465:111:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    node = yaml_document_add_scalar(document, (yaml_char_t*)YAML_DEFAULT_SCALAR_TAG, (yaml_char_t*)eventName, strlen(eventName), YAML_ANY_SCALAR_STYLE);
data/dvbstreamer-2.1.0/src/fileadapter.c:507:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(adapter->cmdRecvFd, &cmd, 1) == 1)
data/dvbstreamer-2.1.0/src/fileadapter.c:546:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int r = read(adapter->frontEndFd, buffer, sizeof(buffer));
data/dvbstreamer-2.1.0/src/fileadapter.c:708:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size +=  2 + strlen(DVBDeliverySystemStr[adapter->supportedDelSystems->systems[i]]) + 1;
data/dvbstreamer-2.1.0/src/fileadapter.c:715:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(value->u.string + strlen(value->u.string), 
data/dvbstreamer-2.1.0/src/parsezap.c:364: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).
#define PARAMADD(p...) sprintf(params + strlen(params), p)
data/dvbstreamer-2.1.0/src/parsezap.c:386:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(satelliteNumber, field, sizeof(satelliteNumber) - 1);
data/dvbstreamer-2.1.0/src/parsezap.c:502:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(satelliteNumber, "0");
data/dvbstreamer-2.1.0/src/plugins/atsctoepg.c:435: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).
        sprintf(line + strlen(line), "%02x ", descriptor->p_data[i]);
data/dvbstreamer-2.1.0/src/plugins/datetime.c:154: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).
    timeStr[strlen(timeStr)-1] = 0;
data/dvbstreamer-2.1.0/src/plugins/dvbtoepg.c:580: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).
                len += strlen(cur->text[i]);
data/dvbstreamer-2.1.0/src/plugins/en50221.c:350:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        i_size = read( i_ca_handle, p_data, MAX_TPDU_SIZE );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1629: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).
        i_size = 1 + strlen( p_object->u.answ.psz_answ );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1632:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( (char *)&p_data[1], p_object->u.answ.psz_answ, i_size - 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1699:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( psz_text, (char *)d, l );
data/dvbstreamer-2.1.0/src/plugins/en50221.c:1725:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( p_mmi->last_object.u.enq.psz_text, (char *)d, l );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:173: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).
                      strlen(p_object->u.enq.psz_text) + 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:178: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).
                      strlen(p_object->u.answ.psz_answ) + 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:184: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).
                      strlen(p_object->u.menu.psz_title) + 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:186: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).
                      strlen(p_object->u.menu.psz_subtitle) + 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:188: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).
                      strlen(p_object->u.menu.psz_bottom) + 1 );
data/dvbstreamer-2.1.0/src/plugins/en50221.h:200: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).
                          strlen(p_object->u.menu.ppsz_choices[i]) + 1 );
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:240:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(text);
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:274: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).
        if (strlen(temp) + bufferIndex >= sizeof(buffer) - 1)
data/dvbstreamer-2.1.0/src/plugins/epgtoxmltv.c:281: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).
        bufferIndex += strlen(temp);
data/dvbstreamer-2.1.0/src/plugins/eventsdispatcher.c:336:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strncmp(eventFilter, eventDesc->eventName, strlen(eventFilter)) == 0)
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:27: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).
        filecache->name = (char*)malloc(strlen(channel_name) + 1);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:282:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(filecache->gateway->name, "/");
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:284:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(filecache->gateway->dirpath, "/");
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:633: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).
                       malloc(strlen(dir->parent->dirpath) + strlen(dir->name) + 2);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:633:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       malloc(strlen(dir->parent->dirpath) + strlen(dir->name) + 2);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:636:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(dir->dirpath, "/");
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:768:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        filei->filename = malloc(strlen(file->filename) + 1);
data/dvbstreamer-2.1.0/src/plugins/libdsmcc/dsmcc-cache.c:770: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).
        filei->path = malloc(strlen(buf) + 1);
data/dvbstreamer-2.1.0/src/plugins/sap.c:206:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memcpy(&packet[mimeTypeOffset + sizeof(mimeType)], session->sdp, strlen(session->sdp));
data/dvbstreamer-2.1.0/src/plugins/sap.c:207: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).
    return mimeTypeOffset + sizeof(mimeType) + strlen(session->sdp);
data/dvbstreamer-2.1.0/src/plugins/traffic.c:347:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(200000);
data/dvbstreamer-2.1.0/src/properties.c:645:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(nodeName, elementStart, len);
data/dvbstreamer-2.1.0/src/remoteintf.c:473:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(output + strlen(output), ":%d", ((struct sockaddr_in*)connAddr)->sin_port);
data/dvbstreamer-2.1.0/src/remoteintf.c:480:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sprintf(output + strlen(output), "]:%d", ((struct sockaddr_in*)connAddr)->sin_port);
data/dvbstreamer-2.1.0/src/services.c:583:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer = malloc(SERVICE_ID_STRING_LENGTH + 5 /* : ""*/ + strlen(service->name));
data/dvbstreamer-2.1.0/src/standard/atsc/atsctext.c:500: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).
            inBytesLeft = strlen(DecompressionBuffer);
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:255:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        outbuf = serviceName + strlen(serviceName);
data/dvbstreamer-2.1.0/src/standard/atsc/psipprocessor.c:368: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).
        sprintf(line + strlen(line), "%02x ", descriptor->p_data[i]);
data/dvbstreamer-2.1.0/src/standard/dvb/sdtprocessor.c:293:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(str) + 1;
data/dvbstreamer-2.1.0/src/ts.c:881:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = read(DVBDVRGetFD(adapter), (char*)reader->buffer, sizeof(reader->buffer));
data/dvbstreamer-2.1.0/src/yamlutils.c:69:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yaml_parser_set_input_string(&parser, (const unsigned char*)str, strlen(str));
data/dvbstreamer-2.1.0/src/yamlutils.c:104:95:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    keyId = yaml_document_add_scalar(document, (yaml_char_t*)YAML_STR_TAG, (yaml_char_t*)key, strlen(key), YAML_ANY_SCALAR_STYLE);
data/dvbstreamer-2.1.0/src/yamlutils.c:105:99:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    valueId = yaml_document_add_scalar(document, (yaml_char_t*)YAML_STR_TAG, (yaml_char_t*)value, strlen(value), YAML_ANY_SCALAR_STYLE); 

ANALYSIS SUMMARY:

Hits = 548
Lines analyzed = 63708 in approximately 2.72 seconds (23460 lines/second)
Physical Source Lines of Code (SLOC) = 42196
Hits@level = [0]  89 [1]  79 [2] 359 [3]   6 [4] 103 [5]   1
Hits@level+ = [0+] 637 [1+] 548 [2+] 469 [3+] 110 [4+] 104 [5+]   1
Hits/KSLOC@level+ = [0+] 15.0962 [1+] 12.987 [2+] 11.1148 [3+] 2.60688 [4+] 2.46469 [5+] 0.0236989
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.