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/pytango-9.3.1/examples/interfacechangeEvents/ClassFactory.cpp
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServer.cpp
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServer.h
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerClass.cpp
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerClass.h
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerDynAttrUtils.cpp
Examining data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerStateMachine.cpp
Examining data/pytango-9.3.1/examples/interfacechangeEvents/main.cpp
Examining data/pytango-9.3.1/examples/pipeEvents/ClassFactory.cpp
Examining data/pytango-9.3.1/examples/pipeEvents/PipeServer.cpp
Examining data/pytango-9.3.1/examples/pipeEvents/PipeServer.h
Examining data/pytango-9.3.1/examples/pipeEvents/PipeServerClass.cpp
Examining data/pytango-9.3.1/examples/pipeEvents/PipeServerClass.h
Examining data/pytango-9.3.1/examples/pipeEvents/PipeServerStateMachine.cpp
Examining data/pytango-9.3.1/examples/pipeEvents/main.cpp
Examining data/pytango-9.3.1/examples/pipes/ClassFactory.cpp
Examining data/pytango-9.3.1/examples/pipes/PipeServer.cpp
Examining data/pytango-9.3.1/examples/pipes/PipeServer.h
Examining data/pytango-9.3.1/examples/pipes/PipeServerClass.cpp
Examining data/pytango-9.3.1/examples/pipes/PipeServerClass.h
Examining data/pytango-9.3.1/examples/pipes/PipeServerStateMachine.cpp
Examining data/pytango-9.3.1/examples/pipes/main.cpp
Examining data/pytango-9.3.1/ext/api_util.cpp
Examining data/pytango-9.3.1/ext/archive_event_info.cpp
Examining data/pytango-9.3.1/ext/attr_conf_event_data.cpp
Examining data/pytango-9.3.1/ext/attribute_alarm_info.cpp
Examining data/pytango-9.3.1/ext/attribute_dimension.cpp
Examining data/pytango-9.3.1/ext/attribute_event_info.cpp
Examining data/pytango-9.3.1/ext/attribute_info.cpp
Examining data/pytango-9.3.1/ext/attribute_info_ex.cpp
Examining data/pytango-9.3.1/ext/attribute_proxy.cpp
Examining data/pytango-9.3.1/ext/base_types.cpp
Examining data/pytango-9.3.1/ext/base_types_numpy.hpp
Examining data/pytango-9.3.1/ext/callback.cpp
Examining data/pytango-9.3.1/ext/callback.h
Examining data/pytango-9.3.1/ext/change_event_info.cpp
Examining data/pytango-9.3.1/ext/command_info.cpp
Examining data/pytango-9.3.1/ext/connection.cpp
Examining data/pytango-9.3.1/ext/constants.cpp
Examining data/pytango-9.3.1/ext/data_ready_event_data.cpp
Examining data/pytango-9.3.1/ext/database.cpp
Examining data/pytango-9.3.1/ext/db.cpp
Examining data/pytango-9.3.1/ext/defs.h
Examining data/pytango-9.3.1/ext/dev_command_info.cpp
Examining data/pytango-9.3.1/ext/dev_error.cpp
Examining data/pytango-9.3.1/ext/device_attribute.cpp
Examining data/pytango-9.3.1/ext/device_attribute.h
Examining data/pytango-9.3.1/ext/device_attribute_config.cpp
Examining data/pytango-9.3.1/ext/device_attribute_history.cpp
Examining data/pytango-9.3.1/ext/device_attribute_numpy.hpp
Examining data/pytango-9.3.1/ext/device_data.cpp
Examining data/pytango-9.3.1/ext/device_data_history.cpp
Examining data/pytango-9.3.1/ext/device_info.cpp
Examining data/pytango-9.3.1/ext/device_pipe.cpp
Examining data/pytango-9.3.1/ext/device_pipe.h
Examining data/pytango-9.3.1/ext/device_proxy.cpp
Examining data/pytango-9.3.1/ext/devintr_change_event_data.cpp
Examining data/pytango-9.3.1/ext/enums.cpp
Examining data/pytango-9.3.1/ext/event_data.cpp
Examining data/pytango-9.3.1/ext/exception.cpp
Examining data/pytango-9.3.1/ext/exception.h
Examining data/pytango-9.3.1/ext/fast_from_py.h
Examining data/pytango-9.3.1/ext/fast_from_py_numpy.hpp
Examining data/pytango-9.3.1/ext/from_py.cpp
Examining data/pytango-9.3.1/ext/from_py.h
Examining data/pytango-9.3.1/ext/group.cpp
Examining data/pytango-9.3.1/ext/group_reply.cpp
Examining data/pytango-9.3.1/ext/group_reply_list.cpp
Examining data/pytango-9.3.1/ext/locker_info.cpp
Examining data/pytango-9.3.1/ext/locking_thread.cpp
Examining data/pytango-9.3.1/ext/periodic_event_info.cpp
Examining data/pytango-9.3.1/ext/pipe_event_data.cpp
Examining data/pytango-9.3.1/ext/pipe_info.cpp
Examining data/pytango-9.3.1/ext/poll_device.cpp
Examining data/pytango-9.3.1/ext/precompiled_header.cpp
Examining data/pytango-9.3.1/ext/precompiled_header.hpp
Examining data/pytango-9.3.1/ext/pytango.cpp
Examining data/pytango-9.3.1/ext/pytgutils.cpp
Examining data/pytango-9.3.1/ext/pytgutils.h
Examining data/pytango-9.3.1/ext/pyutils.cpp
Examining data/pytango-9.3.1/ext/pyutils.h
Examining data/pytango-9.3.1/ext/server/attr.cpp
Examining data/pytango-9.3.1/ext/server/attr.h
Examining data/pytango-9.3.1/ext/server/attribute.cpp
Examining data/pytango-9.3.1/ext/server/attribute.h
Examining data/pytango-9.3.1/ext/server/auto_monitor.cpp
Examining data/pytango-9.3.1/ext/server/command.cpp
Examining data/pytango-9.3.1/ext/server/command.h
Examining data/pytango-9.3.1/ext/server/device_class.cpp
Examining data/pytango-9.3.1/ext/server/device_class.h
Examining data/pytango-9.3.1/ext/server/device_impl.cpp
Examining data/pytango-9.3.1/ext/server/device_impl.h
Examining data/pytango-9.3.1/ext/server/dserver.cpp
Examining data/pytango-9.3.1/ext/server/encoded_attribute.cpp
Examining data/pytango-9.3.1/ext/server/fwdAttr.cpp
Examining data/pytango-9.3.1/ext/server/log4tango.cpp
Examining data/pytango-9.3.1/ext/server/multi_attribute.cpp
Examining data/pytango-9.3.1/ext/server/multi_class_attribute.cpp
Examining data/pytango-9.3.1/ext/server/pipe.cpp
Examining data/pytango-9.3.1/ext/server/pipe.h
Examining data/pytango-9.3.1/ext/server/subdev.cpp
Examining data/pytango-9.3.1/ext/server/tango_util.cpp
Examining data/pytango-9.3.1/ext/server/user_default_attr_prop.cpp
Examining data/pytango-9.3.1/ext/server/user_default_pipe_prop.cpp
Examining data/pytango-9.3.1/ext/server/wattribute.cpp
Examining data/pytango-9.3.1/ext/server/wattribute_numpy.hpp
Examining data/pytango-9.3.1/ext/tango_numpy.h
Examining data/pytango-9.3.1/ext/tgutils.h
Examining data/pytango-9.3.1/ext/time_val.cpp
Examining data/pytango-9.3.1/ext/to_py.cpp
Examining data/pytango-9.3.1/ext/to_py.h
Examining data/pytango-9.3.1/ext/to_py_numpy.hpp
Examining data/pytango-9.3.1/ext/version.cpp

FINAL RESULTS:

data/pytango-9.3.1/ext/server/device_class.cpp:161:27:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				 Tango::PipeWriteType access,
data/pytango-9.3.1/ext/server/device_class.cpp:171:86:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	PyTango::Pipe::PyPipe* py_pipe_ptr = new PyTango::Pipe::PyPipe(name, display_level, access);
data/pytango-9.3.1/ext/server/device_class.h:92:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		     Tango::PipeWriteType access,
data/pytango-9.3.1/ext/fast_from_py_numpy.hpp: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(vd_data, PyArray_DATA(py_val), len*sizeof(TangoScalarType));
data/pytango-9.3.1/ext/fast_from_py_numpy.hpp:219: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(vd_data, PyArray_DATA(py_val), len*sizeof(TangoScalarType));
data/pytango-9.3.1/ext/pyutils.cpp:172:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(name_dup, name, name_length);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:106:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:220:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:334:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:444:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:558:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/ext/server/encoded_attribute.cpp:672:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(p, PyBytes_AsString(row), w_bytes);
data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerClass.h:69:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
data/pytango-9.3.1/examples/interfacechangeEvents/IfchangeServerClass.h:86:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(Tango::DeviceImpl *dev,Tango::Attribute &att)
data/pytango-9.3.1/examples/pipeEvents/PipeServerClass.h:73:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(Tango::DeviceImpl *dev)
data/pytango-9.3.1/examples/pipes/PipeServerClass.h:73:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	virtual void read(Tango::DeviceImpl *dev)
data/pytango-9.3.1/ext/pyutils.cpp:45:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size = strlen(in);
data/pytango-9.3.1/ext/pyutils.cpp:96:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	out = strncpy(out, PyBytes_AsString(bytes_in), size);
data/pytango-9.3.1/ext/pyutils.cpp:104:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	out = strncpy(out, PyBytes_AsString(in), size);
data/pytango-9.3.1/ext/pyutils.cpp:165: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).
    size_t name_length = (strlen(name) + 1) * sizeof(char);
data/pytango-9.3.1/ext/server/attr.cpp:67:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void PyAttr::read(Tango::DeviceImpl *dev, Tango::Attribute &att)
data/pytango-9.3.1/ext/server/attr.cpp:209:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        .def("read", &Tango::Attr::read)
data/pytango-9.3.1/ext/server/attr.h:43:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(Tango::DeviceImpl *dev,Tango::Attribute &att);
data/pytango-9.3.1/ext/server/attr.h:183:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline virtual void read(Tango::DeviceImpl *dev, Tango::Attribute &att)
data/pytango-9.3.1/ext/server/attr.h:185:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return PyAttr::read(dev, att);
data/pytango-9.3.1/ext/server/attr.h:266:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline virtual void read(Tango::DeviceImpl *dev, Tango::Attribute &att)
data/pytango-9.3.1/ext/server/attr.h:268:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return PyAttr::read(dev, att);
data/pytango-9.3.1/ext/server/attr.h:350:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    inline virtual void read(Tango::DeviceImpl *dev, Tango::Attribute &att)
data/pytango-9.3.1/ext/server/attr.h:352:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return PyAttr::read(dev, att);
data/pytango-9.3.1/ext/server/pipe.cpp:60:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void _Pipe::read(Tango::DeviceImpl *dev, Tango::Pipe &pipe)
data/pytango-9.3.1/ext/server/pipe.h:29:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        void read(Tango::DeviceImpl *, Tango::Pipe &);
data/pytango-9.3.1/ext/server/pipe.h:56:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual void read(Tango::DeviceImpl *dev)
data/pytango-9.3.1/ext/server/pipe.h:57:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	{ _Pipe::read(dev, *this); }
data/pytango-9.3.1/ext/server/pipe.h:73:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        virtual void read(Tango::DeviceImpl *dev)
data/pytango-9.3.1/ext/server/pipe.h:74:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	{ _Pipe::read(dev, *this); }

ANALYSIS SUMMARY:

Hits = 35
Lines analyzed = 25769 in approximately 0.65 seconds (39490 lines/second)
Physical Source Lines of Code (SLOC) = 17016
Hits@level = [0]   0 [1]  23 [2]   9 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  35 [1+]  35 [2+]  12 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 2.05689 [1+] 2.05689 [2+] 0.705219 [3+] 0.176305 [4+] 0.176305 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.