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/odil-0.12.0/examples/cpp/dicomdir.cpp
Examining data/odil-0.12.0/examples/cpp/dump.cpp
Examining data/odil-0.12.0/examples/cpp/find.cpp
Examining data/odil-0.12.0/examples/cpp/genericscp.cpp
Examining data/odil-0.12.0/examples/cpp/get.cpp
Examining data/odil-0.12.0/examples/cpp/move.cpp
Examining data/odil-0.12.0/examples/cpp/qido-rs-client.cpp
Examining data/odil-0.12.0/examples/cpp/store.cpp
Examining data/odil-0.12.0/examples/cpp/stow-rs-client.cpp
Examining data/odil-0.12.0/examples/cpp/wado-rs-client.cpp
Examining data/odil-0.12.0/src/odil/Association.cpp
Examining data/odil-0.12.0/src/odil/Association.h
Examining data/odil-0.12.0/src/odil/AssociationAcceptor.cpp
Examining data/odil-0.12.0/src/odil/AssociationAcceptor.h
Examining data/odil-0.12.0/src/odil/AssociationParameters.cpp
Examining data/odil-0.12.0/src/odil/AssociationParameters.h
Examining data/odil-0.12.0/src/odil/BasicDirectoryCreator.cpp
Examining data/odil-0.12.0/src/odil/BasicDirectoryCreator.h
Examining data/odil-0.12.0/src/odil/DataSet.cpp
Examining data/odil-0.12.0/src/odil/DataSet.h
Examining data/odil-0.12.0/src/odil/EchoSCP.cpp
Examining data/odil-0.12.0/src/odil/EchoSCP.h
Examining data/odil-0.12.0/src/odil/EchoSCU.cpp
Examining data/odil-0.12.0/src/odil/EchoSCU.h
Examining data/odil-0.12.0/src/odil/Element.cpp
Examining data/odil-0.12.0/src/odil/Element.h
Examining data/odil-0.12.0/src/odil/ElementsDictionary.cpp
Examining data/odil-0.12.0/src/odil/ElementsDictionary.h
Examining data/odil-0.12.0/src/odil/Exception.cpp
Examining data/odil-0.12.0/src/odil/Exception.h
Examining data/odil-0.12.0/src/odil/FindSCP.cpp
Examining data/odil-0.12.0/src/odil/FindSCP.h
Examining data/odil-0.12.0/src/odil/FindSCU.cpp
Examining data/odil-0.12.0/src/odil/FindSCU.h
Examining data/odil-0.12.0/src/odil/GetSCP.cpp
Examining data/odil-0.12.0/src/odil/GetSCP.h
Examining data/odil-0.12.0/src/odil/GetSCU.cpp
Examining data/odil-0.12.0/src/odil/GetSCU.h
Examining data/odil-0.12.0/src/odil/MoveSCP.cpp
Examining data/odil-0.12.0/src/odil/MoveSCP.h
Examining data/odil-0.12.0/src/odil/MoveSCU.cpp
Examining data/odil-0.12.0/src/odil/MoveSCU.h
Examining data/odil-0.12.0/src/odil/NCreateSCP.cpp
Examining data/odil-0.12.0/src/odil/NCreateSCP.h
Examining data/odil-0.12.0/src/odil/NSetSCP.cpp
Examining data/odil-0.12.0/src/odil/NSetSCP.h
Examining data/odil-0.12.0/src/odil/NSetSCU.cpp
Examining data/odil-0.12.0/src/odil/NSetSCU.h
Examining data/odil-0.12.0/src/odil/Reader.cpp
Examining data/odil-0.12.0/src/odil/Reader.h
Examining data/odil-0.12.0/src/odil/SCP.cpp
Examining data/odil-0.12.0/src/odil/SCP.h
Examining data/odil-0.12.0/src/odil/SCPDispatcher.cpp
Examining data/odil-0.12.0/src/odil/SCPDispatcher.h
Examining data/odil-0.12.0/src/odil/SCU.cpp
Examining data/odil-0.12.0/src/odil/SCU.h
Examining data/odil-0.12.0/src/odil/StoreSCP.cpp
Examining data/odil-0.12.0/src/odil/StoreSCP.h
Examining data/odil-0.12.0/src/odil/StoreSCU.cpp
Examining data/odil-0.12.0/src/odil/StoreSCU.h
Examining data/odil-0.12.0/src/odil/StringStream.h
Examining data/odil-0.12.0/src/odil/Tag.cpp
Examining data/odil-0.12.0/src/odil/Tag.h
Examining data/odil-0.12.0/src/odil/UIDsDictionary.cpp
Examining data/odil-0.12.0/src/odil/UIDsDictionary.h
Examining data/odil-0.12.0/src/odil/VR.cpp
Examining data/odil-0.12.0/src/odil/VR.h
Examining data/odil-0.12.0/src/odil/VRFinder.cpp
Examining data/odil-0.12.0/src/odil/VRFinder.h
Examining data/odil-0.12.0/src/odil/Value.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (
                this->_data_sets->begin(), this->_data_sets->end(),
                other._data_sets->begin(),
                [](std::shared_ptr<DataSet const> x, std::shared_ptr<DataSet const> y) 
Parsing failed to find end of parameter list; semicolon terminated it in (
            left.begin(), left.end(), right.begin(),
            [](std::shared_ptr<DataSet const> x, std::shared_ptr<DataSet const> y) {
                return (
                    (x && y && *x =
Examining data/odil-0.12.0/src/odil/Value.h
Examining data/odil-0.12.0/src/odil/Writer.cpp
Examining data/odil-0.12.0/src/odil/Writer.h
Examining data/odil-0.12.0/src/odil/asio.cpp
Examining data/odil-0.12.0/src/odil/base64.cpp
Examining data/odil-0.12.0/src/odil/base64.h
Examining data/odil-0.12.0/src/odil/dcmtk/ElementAccessor.cpp
Examining data/odil-0.12.0/src/odil/dcmtk/ElementAccessor.h
Examining data/odil-0.12.0/src/odil/dcmtk/ElementTraits.cpp
Examining data/odil-0.12.0/src/odil/dcmtk/ElementTraits.h
Examining data/odil-0.12.0/src/odil/dcmtk/Exception.cpp
Examining data/odil-0.12.0/src/odil/dcmtk/Exception.h
Examining data/odil-0.12.0/src/odil/dcmtk/VRTraits.h
Examining data/odil-0.12.0/src/odil/dcmtk/conversion.cpp
Examining data/odil-0.12.0/src/odil/dcmtk/conversion.h
Examining data/odil-0.12.0/src/odil/dul/EventData.h
Examining data/odil-0.12.0/src/odil/dul/StateMachine.cpp
Examining data/odil-0.12.0/src/odil/dul/StateMachine.h
Examining data/odil-0.12.0/src/odil/dul/Transport.cpp
Examining data/odil-0.12.0/src/odil/dul/Transport.h
Examining data/odil-0.12.0/src/odil/endian.h
Examining data/odil-0.12.0/src/odil/json_converter.cpp
Examining data/odil-0.12.0/src/odil/json_converter.h
Examining data/odil-0.12.0/src/odil/logging.cpp
Examining data/odil-0.12.0/src/odil/logging.h
Examining data/odil-0.12.0/src/odil/message/CEchoRequest.cpp
Examining data/odil-0.12.0/src/odil/message/CEchoRequest.h
Examining data/odil-0.12.0/src/odil/message/CEchoResponse.cpp
Examining data/odil-0.12.0/src/odil/message/CEchoResponse.h
Examining data/odil-0.12.0/src/odil/message/CFindRequest.cpp
Examining data/odil-0.12.0/src/odil/message/CFindRequest.h
Examining data/odil-0.12.0/src/odil/message/CFindResponse.cpp
Examining data/odil-0.12.0/src/odil/message/CFindResponse.h
Examining data/odil-0.12.0/src/odil/message/CGetRequest.cpp
Examining data/odil-0.12.0/src/odil/message/CGetRequest.h
Examining data/odil-0.12.0/src/odil/message/CGetResponse.cpp
Examining data/odil-0.12.0/src/odil/message/CGetResponse.h
Examining data/odil-0.12.0/src/odil/message/CMoveRequest.cpp
Examining data/odil-0.12.0/src/odil/message/CMoveRequest.h
Examining data/odil-0.12.0/src/odil/message/CMoveResponse.cpp
Examining data/odil-0.12.0/src/odil/message/CMoveResponse.h
Examining data/odil-0.12.0/src/odil/message/CStoreRequest.cpp
Examining data/odil-0.12.0/src/odil/message/CStoreRequest.h
Examining data/odil-0.12.0/src/odil/message/CStoreResponse.cpp
Examining data/odil-0.12.0/src/odil/message/CStoreResponse.h
Examining data/odil-0.12.0/src/odil/message/Cancellation.cpp
Examining data/odil-0.12.0/src/odil/message/Cancellation.h
Examining data/odil-0.12.0/src/odil/message/Message.cpp
Examining data/odil-0.12.0/src/odil/message/Message.h
Examining data/odil-0.12.0/src/odil/message/NCreateRequest.cpp
Examining data/odil-0.12.0/src/odil/message/NCreateRequest.h
Examining data/odil-0.12.0/src/odil/message/NCreateResponse.cpp
Examining data/odil-0.12.0/src/odil/message/NCreateResponse.h
Examining data/odil-0.12.0/src/odil/message/NSetRequest.cpp
Examining data/odil-0.12.0/src/odil/message/NSetRequest.h
Examining data/odil-0.12.0/src/odil/message/NSetResponse.cpp
Examining data/odil-0.12.0/src/odil/message/NSetResponse.h
Examining data/odil-0.12.0/src/odil/message/Request.cpp
Examining data/odil-0.12.0/src/odil/message/Request.h
Examining data/odil-0.12.0/src/odil/message/Response.cpp
Examining data/odil-0.12.0/src/odil/message/Response.h
Examining data/odil-0.12.0/src/odil/odil.h
Examining data/odil-0.12.0/src/odil/pdu/AAbort.cpp
Examining data/odil-0.12.0/src/odil/pdu/AAbort.h
Examining data/odil-0.12.0/src/odil/pdu/AAssociate.cpp
Examining data/odil-0.12.0/src/odil/pdu/AAssociate.h
Examining data/odil-0.12.0/src/odil/pdu/AAssociateAC.cpp
Examining data/odil-0.12.0/src/odil/pdu/AAssociateAC.h
Examining data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp
Examining data/odil-0.12.0/src/odil/pdu/AAssociateRJ.h
Examining data/odil-0.12.0/src/odil/pdu/AAssociateRQ.cpp
Examining data/odil-0.12.0/src/odil/pdu/AAssociateRQ.h
Examining data/odil-0.12.0/src/odil/pdu/AReleaseRP.cpp
Examining data/odil-0.12.0/src/odil/pdu/AReleaseRP.h
Examining data/odil-0.12.0/src/odil/pdu/AReleaseRQ.cpp
Examining data/odil-0.12.0/src/odil/pdu/AReleaseRQ.h
Examining data/odil-0.12.0/src/odil/pdu/ApplicationContext.cpp
Examining data/odil-0.12.0/src/odil/pdu/ApplicationContext.h
Examining data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp
Examining data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.h
Examining data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.cpp
Examining data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.h
Examining data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.cpp
Examining data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.h
Examining data/odil-0.12.0/src/odil/pdu/Item.cpp
Examining data/odil-0.12.0/src/odil/pdu/Item.h
Examining data/odil-0.12.0/src/odil/pdu/MaximumLength.cpp
Examining data/odil-0.12.0/src/odil/pdu/MaximumLength.h
Examining data/odil-0.12.0/src/odil/pdu/Object.cpp
Examining data/odil-0.12.0/src/odil/pdu/Object.h
Examining data/odil-0.12.0/src/odil/pdu/PDataTF.cpp
Examining data/odil-0.12.0/src/odil/pdu/PDataTF.h
Examining data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp
Examining data/odil-0.12.0/src/odil/pdu/PresentationContext.h
Examining data/odil-0.12.0/src/odil/pdu/PresentationContextAC.cpp
Examining data/odil-0.12.0/src/odil/pdu/PresentationContextAC.h
Examining data/odil-0.12.0/src/odil/pdu/PresentationContextRQ.cpp
Examining data/odil-0.12.0/src/odil/pdu/PresentationContextRQ.h
Examining data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp
Examining data/odil-0.12.0/src/odil/pdu/RoleSelection.h
Examining data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp
Examining data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.h
Examining data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp
Examining data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.h
Examining data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp
Examining data/odil-0.12.0/src/odil/pdu/UserIdentityAC.h
Examining data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp
Examining data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.h
Examining data/odil-0.12.0/src/odil/pdu/UserInformation.cpp
Examining data/odil-0.12.0/src/odil/pdu/UserInformation.h
Examining data/odil-0.12.0/src/odil/registry.cpp
Examining data/odil-0.12.0/src/odil/registry.h
Examining data/odil-0.12.0/src/odil/registry_0000.cpp
Examining data/odil-0.12.0/src/odil/registry_0000.h
Examining data/odil-0.12.0/src/odil/registry_0002.cpp
Examining data/odil-0.12.0/src/odil/registry_0002.h
Examining data/odil-0.12.0/src/odil/registry_0004.cpp
Examining data/odil-0.12.0/src/odil/registry_0004.h
Examining data/odil-0.12.0/src/odil/registry_0008.cpp
Examining data/odil-0.12.0/src/odil/registry_0008.h
Examining data/odil-0.12.0/src/odil/registry_0010.cpp
Examining data/odil-0.12.0/src/odil/registry_0010.h
Examining data/odil-0.12.0/src/odil/registry_0012.cpp
Examining data/odil-0.12.0/src/odil/registry_0012.h
Examining data/odil-0.12.0/src/odil/registry_0014.cpp
Examining data/odil-0.12.0/src/odil/registry_0014.h
Examining data/odil-0.12.0/src/odil/registry_0016.cpp
Examining data/odil-0.12.0/src/odil/registry_0016.h
Examining data/odil-0.12.0/src/odil/registry_0018.cpp
Examining data/odil-0.12.0/src/odil/registry_0018.h
Examining data/odil-0.12.0/src/odil/registry_0020.cpp
Examining data/odil-0.12.0/src/odil/registry_0020.h
Examining data/odil-0.12.0/src/odil/registry_0022.cpp
Examining data/odil-0.12.0/src/odil/registry_0022.h
Examining data/odil-0.12.0/src/odil/registry_0024.cpp
Examining data/odil-0.12.0/src/odil/registry_0024.h
Examining data/odil-0.12.0/src/odil/registry_0028.cpp
Examining data/odil-0.12.0/src/odil/registry_0028.h
Examining data/odil-0.12.0/src/odil/registry_0032.cpp
Examining data/odil-0.12.0/src/odil/registry_0032.h
Examining data/odil-0.12.0/src/odil/registry_0034.cpp
Examining data/odil-0.12.0/src/odil/registry_0034.h
Examining data/odil-0.12.0/src/odil/registry_0038.cpp
Examining data/odil-0.12.0/src/odil/registry_0038.h
Examining data/odil-0.12.0/src/odil/registry_003a.cpp
Examining data/odil-0.12.0/src/odil/registry_003a.h
Examining data/odil-0.12.0/src/odil/registry_0040.cpp
Examining data/odil-0.12.0/src/odil/registry_0040.h
Examining data/odil-0.12.0/src/odil/registry_0042.cpp
Examining data/odil-0.12.0/src/odil/registry_0042.h
Examining data/odil-0.12.0/src/odil/registry_0044.cpp
Examining data/odil-0.12.0/src/odil/registry_0044.h
Examining data/odil-0.12.0/src/odil/registry_0046.cpp
Examining data/odil-0.12.0/src/odil/registry_0046.h
Examining data/odil-0.12.0/src/odil/registry_0048.cpp
Examining data/odil-0.12.0/src/odil/registry_0048.h
Examining data/odil-0.12.0/src/odil/registry_0050.cpp
Examining data/odil-0.12.0/src/odil/registry_0050.h
Examining data/odil-0.12.0/src/odil/registry_0052.cpp
Examining data/odil-0.12.0/src/odil/registry_0052.h
Examining data/odil-0.12.0/src/odil/registry_0054.cpp
Examining data/odil-0.12.0/src/odil/registry_0054.h
Examining data/odil-0.12.0/src/odil/registry_0060.cpp
Examining data/odil-0.12.0/src/odil/registry_0060.h
Examining data/odil-0.12.0/src/odil/registry_0062.cpp
Examining data/odil-0.12.0/src/odil/registry_0062.h
Examining data/odil-0.12.0/src/odil/registry_0064.cpp
Examining data/odil-0.12.0/src/odil/registry_0064.h
Examining data/odil-0.12.0/src/odil/registry_0066.cpp
Examining data/odil-0.12.0/src/odil/registry_0066.h
Examining data/odil-0.12.0/src/odil/registry_0068.cpp
Examining data/odil-0.12.0/src/odil/registry_0068.h
Examining data/odil-0.12.0/src/odil/registry_0070.cpp
Examining data/odil-0.12.0/src/odil/registry_0070.h
Examining data/odil-0.12.0/src/odil/registry_0072.cpp
Examining data/odil-0.12.0/src/odil/registry_0072.h
Examining data/odil-0.12.0/src/odil/registry_0074.cpp
Examining data/odil-0.12.0/src/odil/registry_0074.h
Examining data/odil-0.12.0/src/odil/registry_0076.cpp
Examining data/odil-0.12.0/src/odil/registry_0076.h
Examining data/odil-0.12.0/src/odil/registry_0078.cpp
Examining data/odil-0.12.0/src/odil/registry_0078.h
Examining data/odil-0.12.0/src/odil/registry_0080.cpp
Examining data/odil-0.12.0/src/odil/registry_0080.h
Examining data/odil-0.12.0/src/odil/registry_0082.cpp
Examining data/odil-0.12.0/src/odil/registry_0082.h
Examining data/odil-0.12.0/src/odil/registry_0088.cpp
Examining data/odil-0.12.0/src/odil/registry_0088.h
Examining data/odil-0.12.0/src/odil/registry_0100.cpp
Examining data/odil-0.12.0/src/odil/registry_0100.h
Examining data/odil-0.12.0/src/odil/registry_0400.cpp
Examining data/odil-0.12.0/src/odil/registry_0400.h
Examining data/odil-0.12.0/src/odil/registry_2000.cpp
Examining data/odil-0.12.0/src/odil/registry_2000.h
Examining data/odil-0.12.0/src/odil/registry_2010.cpp
Examining data/odil-0.12.0/src/odil/registry_2010.h
Examining data/odil-0.12.0/src/odil/registry_2020.cpp
Examining data/odil-0.12.0/src/odil/registry_2020.h
Examining data/odil-0.12.0/src/odil/registry_2030.cpp
Examining data/odil-0.12.0/src/odil/registry_2030.h
Examining data/odil-0.12.0/src/odil/registry_2040.cpp
Examining data/odil-0.12.0/src/odil/registry_2040.h
Examining data/odil-0.12.0/src/odil/registry_2050.cpp
Examining data/odil-0.12.0/src/odil/registry_2050.h
Examining data/odil-0.12.0/src/odil/registry_2100.cpp
Examining data/odil-0.12.0/src/odil/registry_2100.h
Examining data/odil-0.12.0/src/odil/registry_2110.cpp
Examining data/odil-0.12.0/src/odil/registry_2110.h
Examining data/odil-0.12.0/src/odil/registry_2120.cpp
Examining data/odil-0.12.0/src/odil/registry_2120.h
Examining data/odil-0.12.0/src/odil/registry_2130.cpp
Examining data/odil-0.12.0/src/odil/registry_2130.h
Examining data/odil-0.12.0/src/odil/registry_2200.cpp
Examining data/odil-0.12.0/src/odil/registry_2200.h
Examining data/odil-0.12.0/src/odil/registry_3002.cpp
Examining data/odil-0.12.0/src/odil/registry_3002.h
Examining data/odil-0.12.0/src/odil/registry_3004.cpp
Examining data/odil-0.12.0/src/odil/registry_3004.h
Examining data/odil-0.12.0/src/odil/registry_3006.cpp
Examining data/odil-0.12.0/src/odil/registry_3006.h
Examining data/odil-0.12.0/src/odil/registry_3008.cpp
Examining data/odil-0.12.0/src/odil/registry_3008.h
Examining data/odil-0.12.0/src/odil/registry_300a.cpp
Examining data/odil-0.12.0/src/odil/registry_300a.h
Examining data/odil-0.12.0/src/odil/registry_300c.cpp
Examining data/odil-0.12.0/src/odil/registry_300c.h
Examining data/odil-0.12.0/src/odil/registry_300e.cpp
Examining data/odil-0.12.0/src/odil/registry_300e.h
Examining data/odil-0.12.0/src/odil/registry_3010.cpp
Examining data/odil-0.12.0/src/odil/registry_3010.h
Examining data/odil-0.12.0/src/odil/registry_4000.cpp
Examining data/odil-0.12.0/src/odil/registry_4000.h
Examining data/odil-0.12.0/src/odil/registry_4008.cpp
Examining data/odil-0.12.0/src/odil/registry_4008.h
Examining data/odil-0.12.0/src/odil/registry_4010.cpp
Examining data/odil-0.12.0/src/odil/registry_4010.h
Examining data/odil-0.12.0/src/odil/registry_4ffe.cpp
Examining data/odil-0.12.0/src/odil/registry_4ffe.h
Examining data/odil-0.12.0/src/odil/registry_5200.cpp
Examining data/odil-0.12.0/src/odil/registry_5200.h
Examining data/odil-0.12.0/src/odil/registry_5400.cpp
Examining data/odil-0.12.0/src/odil/registry_5400.h
Examining data/odil-0.12.0/src/odil/registry_5600.cpp
Examining data/odil-0.12.0/src/odil/registry_5600.h
Examining data/odil-0.12.0/src/odil/registry_7fe0.cpp
Examining data/odil-0.12.0/src/odil/registry_7fe0.h
Examining data/odil-0.12.0/src/odil/registry_fffa.cpp
Examining data/odil-0.12.0/src/odil/registry_fffa.h
Examining data/odil-0.12.0/src/odil/registry_fffc.cpp
Examining data/odil-0.12.0/src/odil/registry_fffc.h
Examining data/odil-0.12.0/src/odil/registry_fffe.cpp
Examining data/odil-0.12.0/src/odil/registry_fffe.h
Examining data/odil-0.12.0/src/odil/registry_misc.cpp
Examining data/odil-0.12.0/src/odil/registry_misc.h
Examining data/odil-0.12.0/src/odil/uid.cpp
Examining data/odil-0.12.0/src/odil/uid.h
Examining data/odil-0.12.0/src/odil/unicode.cpp
Examining data/odil-0.12.0/src/odil/unicode.h
Examining data/odil-0.12.0/src/odil/webservices/BulkData.h
Examining data/odil-0.12.0/src/odil/webservices/HTTPRequest.cpp
Examining data/odil-0.12.0/src/odil/webservices/HTTPRequest.h
Examining data/odil-0.12.0/src/odil/webservices/HTTPResponse.cpp
Examining data/odil-0.12.0/src/odil/webservices/HTTPResponse.h
Examining data/odil-0.12.0/src/odil/webservices/ItemWithParameters.cpp
Examining data/odil-0.12.0/src/odil/webservices/ItemWithParameters.h
Examining data/odil-0.12.0/src/odil/webservices/Message.cpp
Examining data/odil-0.12.0/src/odil/webservices/Message.h
Examining data/odil-0.12.0/src/odil/webservices/QIDORSRequest.cpp
Examining data/odil-0.12.0/src/odil/webservices/QIDORSRequest.h
Examining data/odil-0.12.0/src/odil/webservices/QIDORSResponse.cpp
Examining data/odil-0.12.0/src/odil/webservices/QIDORSResponse.h
Examining data/odil-0.12.0/src/odil/webservices/STOWRSRequest.cpp
Examining data/odil-0.12.0/src/odil/webservices/STOWRSRequest.h
Examining data/odil-0.12.0/src/odil/webservices/STOWRSResponse.cpp
Examining data/odil-0.12.0/src/odil/webservices/STOWRSResponse.h
Examining data/odil-0.12.0/src/odil/webservices/Selector.cpp
Examining data/odil-0.12.0/src/odil/webservices/Selector.h
Examining data/odil-0.12.0/src/odil/webservices/URL.cpp
Examining data/odil-0.12.0/src/odil/webservices/URL.h
Examining data/odil-0.12.0/src/odil/webservices/Utils.h
Examining data/odil-0.12.0/src/odil/webservices/WADORSRequest.cpp
Examining data/odil-0.12.0/src/odil/webservices/WADORSRequest.h
Examining data/odil-0.12.0/src/odil/webservices/WADORSResponse.cpp
Examining data/odil-0.12.0/src/odil/webservices/WADORSResponse.h
Examining data/odil-0.12.0/src/odil/webservices/multipart_related.cpp
Examining data/odil-0.12.0/src/odil/webservices/multipart_related.h
Examining data/odil-0.12.0/src/odil/write_ds.cpp
Examining data/odil-0.12.0/src/odil/write_ds.h
Examining data/odil-0.12.0/src/odil/xml_converter.cpp
Examining data/odil-0.12.0/src/odil/xml_converter.h
Examining data/odil-0.12.0/tests/MessageFixtureBase.h
Examining data/odil-0.12.0/tests/PeerFixtureBase.h
Examining data/odil-0.12.0/tests/code/Association.cpp
Examining data/odil-0.12.0/tests/code/AssociationAcceptor.cpp
Examining data/odil-0.12.0/tests/code/AssociationParameters.cpp
Examining data/odil-0.12.0/tests/code/BasicDirectoryCreator.cpp
Examining data/odil-0.12.0/tests/code/DataSet.cpp
Examining data/odil-0.12.0/tests/code/DcmtkException.cpp
Examining data/odil-0.12.0/tests/code/EchoSCP.cpp
Examining data/odil-0.12.0/tests/code/EchoSCU.cpp
Examining data/odil-0.12.0/tests/code/Element.cpp
Examining data/odil-0.12.0/tests/code/ElementAccessor.cpp
Examining data/odil-0.12.0/tests/code/Exception.cpp
Examining data/odil-0.12.0/tests/code/FindSCP.cpp
Examining data/odil-0.12.0/tests/code/FindSCU.cpp
Examining data/odil-0.12.0/tests/code/GetSCP.cpp
Examining data/odil-0.12.0/tests/code/GetSCU.cpp
Examining data/odil-0.12.0/tests/code/MoveSCP.cpp
Examining data/odil-0.12.0/tests/code/MoveSCU.cpp
Examining data/odil-0.12.0/tests/code/NCreateSCP.cpp
Examining data/odil-0.12.0/tests/code/Reader.cpp
Examining data/odil-0.12.0/tests/code/SCPDispatcher.cpp
Examining data/odil-0.12.0/tests/code/SCU.cpp
Examining data/odil-0.12.0/tests/code/StoreSCU.cpp
Examining data/odil-0.12.0/tests/code/Tag.cpp
Examining data/odil-0.12.0/tests/code/VR.cpp
Examining data/odil-0.12.0/tests/code/VRFinder.cpp
Examining data/odil-0.12.0/tests/code/Value.cpp
Examining data/odil-0.12.0/tests/code/Writer.cpp
Examining data/odil-0.12.0/tests/code/base64.cpp
Examining data/odil-0.12.0/tests/code/conversion.cpp
Examining data/odil-0.12.0/tests/code/dul/StateMachine.cpp
Examining data/odil-0.12.0/tests/code/dul/Transport.cpp
Examining data/odil-0.12.0/tests/code/endian.cpp
Examining data/odil-0.12.0/tests/code/json_converter.cpp
Examining data/odil-0.12.0/tests/code/message/CEchoRequest.cpp
Examining data/odil-0.12.0/tests/code/message/CEchoResponse.cpp
Examining data/odil-0.12.0/tests/code/message/CFindRequest.cpp
Examining data/odil-0.12.0/tests/code/message/CFindResponse.cpp
Examining data/odil-0.12.0/tests/code/message/CGetRequest.cpp
Examining data/odil-0.12.0/tests/code/message/CGetResponse.cpp
Examining data/odil-0.12.0/tests/code/message/CMoveRequest.cpp
Examining data/odil-0.12.0/tests/code/message/CMoveResponse.cpp
Examining data/odil-0.12.0/tests/code/message/CStoreRequest.cpp
Examining data/odil-0.12.0/tests/code/message/CStoreResponse.cpp
Examining data/odil-0.12.0/tests/code/message/Cancellation.cpp
Examining data/odil-0.12.0/tests/code/message/Message.cpp
Examining data/odil-0.12.0/tests/code/message/Request.cpp
Examining data/odil-0.12.0/tests/code/message/Response.cpp
Examining data/odil-0.12.0/tests/code/pdu/AAbort.cpp
Examining data/odil-0.12.0/tests/code/pdu/AAssociateAC.cpp
Examining data/odil-0.12.0/tests/code/pdu/AAssociateRJ.cpp
Examining data/odil-0.12.0/tests/code/pdu/AAssociateRQ.cpp
Examining data/odil-0.12.0/tests/code/pdu/AReleaseRP.cpp
Examining data/odil-0.12.0/tests/code/pdu/AReleaseRQ.cpp
Examining data/odil-0.12.0/tests/code/pdu/ApplicationContext.cpp
Examining data/odil-0.12.0/tests/code/pdu/AsynchronousOperationsWindow.cpp
Examining data/odil-0.12.0/tests/code/pdu/ImplementationClassUID.cpp
Examining data/odil-0.12.0/tests/code/pdu/ImplementationVersionName.cpp
Examining data/odil-0.12.0/tests/code/pdu/Item.cpp
Examining data/odil-0.12.0/tests/code/pdu/MaximumLength.cpp
Examining data/odil-0.12.0/tests/code/pdu/PDataTF.cpp
Examining data/odil-0.12.0/tests/code/pdu/PresentationContextAC.cpp
Examining data/odil-0.12.0/tests/code/pdu/PresentationContextRQ.cpp
Examining data/odil-0.12.0/tests/code/pdu/RoleSelection.cpp
Examining data/odil-0.12.0/tests/code/pdu/SOPClassCommonExtendedNegotiation.cpp
Examining data/odil-0.12.0/tests/code/pdu/SOPClassExtendedNegotiation.cpp
Examining data/odil-0.12.0/tests/code/pdu/UserIdentityAC.cpp
Examining data/odil-0.12.0/tests/code/pdu/UserIdentityRQ.cpp
Examining data/odil-0.12.0/tests/code/pdu/UserInformation.cpp
Examining data/odil-0.12.0/tests/code/registry.cpp
Examining data/odil-0.12.0/tests/code/uid.cpp
Examining data/odil-0.12.0/tests/code/unicode.cpp
Examining data/odil-0.12.0/tests/code/webservices/HTTPRequest.cpp
Examining data/odil-0.12.0/tests/code/webservices/HTTPResponse.cpp
Examining data/odil-0.12.0/tests/code/webservices/ItemWithParameters.cpp
Examining data/odil-0.12.0/tests/code/webservices/Message.cpp
Examining data/odil-0.12.0/tests/code/webservices/QIDORSRequest.cpp
Examining data/odil-0.12.0/tests/code/webservices/QIDORSResponse.cpp
Examining data/odil-0.12.0/tests/code/webservices/STOWRSRequest.cpp
Examining data/odil-0.12.0/tests/code/webservices/STOWRSResponse.cpp
Examining data/odil-0.12.0/tests/code/webservices/Selector.cpp
Examining data/odil-0.12.0/tests/code/webservices/URL.cpp
Examining data/odil-0.12.0/tests/code/webservices/WADORSRequest.cpp
Examining data/odil-0.12.0/tests/code/webservices/WADORSResponse.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (
            response.get_bulk_data().begin(), response.get_bulk_data().end(),
            bulk_data.begin(),
            [](odil::webservices::BulkData const & b1, odil::webservices::BulkData const 
Examining data/odil-0.12.0/tests/code/webservices/multipart_related.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (
            this->parts.begin(), this->parts.end(),
            transformed_parts.begin(),
            [](
                odil::webservices::Message const & m1,
                odil::webservices::M
Parsing failed to find end of parameter list; semicolon terminated it in (
            this->parts.begin(), this->parts.end(),
            transformed_parts.begin(),
            [](
                odil::webservices::Message const & m1,
                odil::webservices::M
Parsing failed to find end of parameter list; semicolon terminated it in (
            this->parts.begin(), this->parts.end(),
            transformed_parts.begin(),
            [](
                odil::webservices::Message const & m1,
                odil::webservices::M
Examining data/odil-0.12.0/tests/code/xml_converter.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (
        p1.ordered_begin(), p1.not_found(), p2.ordered_begin(),
        [](iterator_value_type const v1, iterator_value_type const & v2)
        {
            return v1.first == v2.first && compare_
Examining data/odil-0.12.0/tests/tools/dndefine.h
Examining data/odil-0.12.0/tests/tools/getscu.cc
Examining data/odil-0.12.0/tests/tools/scu.cc
Examining data/odil-0.12.0/tests/tools/scu.h
Examining data/odil-0.12.0/wrappers/js/DataSet.cpp
Examining data/odil-0.12.0/wrappers/js/Tag.cpp
Examining data/odil-0.12.0/wrappers/js/VR.cpp
Examining data/odil-0.12.0/wrappers/js/odil.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/HTTPRequest.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/HTTPResponse.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/Message.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/QIDORSRequest.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/QIDORSResponse.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/Selector.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/URL.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/Utils.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/WADORSRequest.cpp
Examining data/odil-0.12.0/wrappers/js/webservices/WADORSResponse.cpp
Examining data/odil-0.12.0/wrappers/python/Association.cpp
Examining data/odil-0.12.0/wrappers/python/AssociationParameters.cpp
Examining data/odil-0.12.0/wrappers/python/BasicDirectoryCreator.cpp
Examining data/odil-0.12.0/wrappers/python/DataSet.cpp
Examining data/odil-0.12.0/wrappers/python/DataSetGeneratorWrapper.h
Examining data/odil-0.12.0/wrappers/python/EchoSCP.cpp
Examining data/odil-0.12.0/wrappers/python/EchoSCU.cpp
Examining data/odil-0.12.0/wrappers/python/Element.cpp
Examining data/odil-0.12.0/wrappers/python/ElementsDictionary.cpp
Examining data/odil-0.12.0/wrappers/python/Exception.cpp
Examining data/odil-0.12.0/wrappers/python/FindSCP.cpp
Examining data/odil-0.12.0/wrappers/python/FindSCU.cpp
Examining data/odil-0.12.0/wrappers/python/GetSCP.cpp
Examining data/odil-0.12.0/wrappers/python/GetSCU.cpp
Examining data/odil-0.12.0/wrappers/python/MoveSCP.cpp
Examining data/odil-0.12.0/wrappers/python/MoveSCU.cpp
Examining data/odil-0.12.0/wrappers/python/NCreateSCP.cpp
Examining data/odil-0.12.0/wrappers/python/NSetSCP.cpp
Examining data/odil-0.12.0/wrappers/python/NSetSCU.cpp
Examining data/odil-0.12.0/wrappers/python/Reader.cpp
Examining data/odil-0.12.0/wrappers/python/SCPDispatcher.cpp
Examining data/odil-0.12.0/wrappers/python/StoreSCP.cpp
Examining data/odil-0.12.0/wrappers/python/StoreSCU.cpp
Examining data/odil-0.12.0/wrappers/python/Tag.cpp
Examining data/odil-0.12.0/wrappers/python/UIDsDictionary.cpp
Examining data/odil-0.12.0/wrappers/python/VR.cpp
Examining data/odil-0.12.0/wrappers/python/VRFinder.cpp
Examining data/odil-0.12.0/wrappers/python/Value.cpp
Examining data/odil-0.12.0/wrappers/python/Value.h
Examining data/odil-0.12.0/wrappers/python/Writer.cpp
Examining data/odil-0.12.0/wrappers/python/endian.cpp
Examining data/odil-0.12.0/wrappers/python/json_converter.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CEchoRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CEchoResponse.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CFindRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CFindResponse.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CGetRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CGetResponse.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CMoveRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CMoveResponse.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CStoreRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/CStoreResponse.cpp
Examining data/odil-0.12.0/wrappers/python/messages/Message.cpp
Examining data/odil-0.12.0/wrappers/python/messages/NCreateRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/NSetRequest.cpp
Examining data/odil-0.12.0/wrappers/python/messages/Request.cpp
Examining data/odil-0.12.0/wrappers/python/messages/Response.cpp
Examining data/odil-0.12.0/wrappers/python/messages/messages.cpp
Examining data/odil-0.12.0/wrappers/python/odil.cpp
Examining data/odil-0.12.0/wrappers/python/opaque_types.h
Examining data/odil-0.12.0/wrappers/python/registry.cpp
Examining data/odil-0.12.0/wrappers/python/streambuf.cpp
Examining data/odil-0.12.0/wrappers/python/streambuf.h
Examining data/odil-0.12.0/wrappers/python/type_casters.h
Examining data/odil-0.12.0/wrappers/python/uid.cpp
Examining data/odil-0.12.0/wrappers/python/unicode.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/BulkData.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/HTTPRequest.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/HTTPResponse.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/Message.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/QIDORSRequest.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/QIDORSResponse.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/STOWRSRequest.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/STOWRSResponse.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/Selector.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/URL.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/Utils.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/WADORSRequest.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/WADORSResponse.cpp
Examining data/odil-0.12.0/wrappers/python/webservices/webservices.cpp
Examining data/odil-0.12.0/wrappers/python/xml_converter.cpp

FINAL RESULTS:

data/odil-0.12.0/src/odil/dul/StateMachine.cpp:275:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [this,&data](boost::system::error_code const & e)
data/odil-0.12.0/src/odil/dul/StateMachine.cpp:290:30:  [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.
                throw boost::system::system_error(e);
data/odil-0.12.0/src/odil/dul/Transport.cpp:102:12:  [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.
    boost::system::error_code error;
data/odil-0.12.0/src/odil/dul/Transport.cpp:108:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [&source,&error](boost::system::error_code const & e)
data/odil-0.12.0/src/odil/dul/Transport.cpp:128:12:  [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.
    boost::system::error_code error;
data/odil-0.12.0/src/odil/dul/Transport.cpp:138:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [&source,&error](boost::system::error_code const & e)
data/odil-0.12.0/src/odil/dul/Transport.cpp:191:12:  [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.
    boost::system::error_code error;
data/odil-0.12.0/src/odil/dul/Transport.cpp:197:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [&source,&error](boost::system::error_code const & e, std::size_t)
data/odil-0.12.0/src/odil/dul/Transport.cpp:219:12:  [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.
    boost::system::error_code error;
data/odil-0.12.0/src/odil/dul/Transport.cpp:224:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [&source,&error](boost::system::error_code const & e, std::size_t)
data/odil-0.12.0/src/odil/dul/Transport.cpp:236:43:  [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.
::_start_deadline(Source & source, boost::system::error_code & error)
data/odil-0.12.0/src/odil/dul/Transport.cpp:245:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        [&source,&error](boost::system::error_code const & e)
data/odil-0.12.0/src/odil/dul/Transport.cpp:262:32:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
::_run(Source & source, boost::system::error_code & error)
data/odil-0.12.0/src/odil/dul/Transport.h:101: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.
    void _start_deadline(Source & source, boost::system::error_code & error);
data/odil-0.12.0/src/odil/dul/Transport.h:104:39:  [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.
    void _run(Source & source, boost::system::error_code & error);
data/odil-0.12.0/src/odil/write_ds.cpp:157: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(buffer, mantissa);
data/odil-0.12.0/src/odil/write_ds.cpp:165: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, exponent_buffer);
data/odil-0.12.0/src/odil/write_ds.cpp:170: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(buffer, mantissa);
data/odil-0.12.0/src/odil/write_ds.cpp:177: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(buffer, mantissa);
data/odil-0.12.0/src/odil/write_ds.cpp:191: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(buffer, mantissa);
data/odil-0.12.0/tests/code/EchoSCP.cpp:71:22:  [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.
    status->client = system(command.c_str());
data/odil-0.12.0/tests/code/FindSCP.cpp:123:22:  [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.
    status->client = system(command.c_str());
data/odil-0.12.0/tests/code/GetSCP.cpp:136:22:  [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.
    status->client = system(command.c_str());
data/odil-0.12.0/tests/code/MoveSCP.cpp:165:22:  [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.
    status->client = system(command.c_str());
data/odil-0.12.0/tests/code/SCPDispatcher.cpp:73:22:  [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.
    status->client = system(command.c_str());
data/odil-0.12.0/tests/tools/getscu.cc:342:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(currentFilename, R_OK) < 0)
data/odil-0.12.0/tests/tools/scu.cc:192:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(peerHost, "%s:%d", m_peer.c_str(), OFstatic_cast(int, m_peerPort));
data/odil-0.12.0/tests/PeerFixtureBase.h:45:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        char* value = getenv(name.c_str());
data/odil-0.12.0/src/odil/Writer.cpp:400:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            static char buffer[buffer_size];
data/odil-0.12.0/src/odil/write_ds.cpp:89: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(buffer, ".01");
data/odil-0.12.0/src/odil/write_ds.cpp:92: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(buffer, ".1");
data/odil-0.12.0/src/odil/write_ds.cpp:95: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(buffer, "1.");
data/odil-0.12.0/src/odil/write_ds.cpp:98: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(buffer, "10");
data/odil-0.12.0/src/odil/write_ds.cpp:101: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(buffer, "100");
data/odil-0.12.0/src/odil/write_ds.cpp:104:17:  [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, "1e%d", exponent);
data/odil-0.12.0/src/odil/write_ds.cpp:128: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[40];
data/odil-0.12.0/src/odil/write_ds.cpp:129: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(line, "%1.16e", f);
data/odil-0.12.0/src/odil/write_ds.cpp:139: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, "%1.16e", f);
data/odil-0.12.0/src/odil/write_ds.cpp:151: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 exponent_buffer[6];
data/odil-0.12.0/src/odil/write_ds.cpp:152:38:  [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.
        auto const exponent_length = sprintf(exponent_buffer, "e%d", exponent);
data/odil-0.12.0/tests/tools/getscu.cc:108:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tempstr[20];
data/odil-0.12.0/tests/tools/getscu.cc:176:7:  [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(tempstr, "%ld", OFstatic_cast(long, ASC_DEFAULTMAXPDU));
data/odil-0.12.0/tests/tools/getscu.cc:180:7:  [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(tempstr, "%ld", OFstatic_cast(long, ASC_MINIMUMPDUSIZE));
data/odil-0.12.0/tests/tools/getscu.cc:183:7:  [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(tempstr, "%ld", OFstatic_cast(long, ASC_MAXIMUMPDUSIZE));
data/odil-0.12.0/tests/tools/scu.cc:2038: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*)m_openDIMSERequest, msg, sizeof(*m_openDIMSERequest));
data/odil-0.12.0/src/odil/Reader.cpp:39:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream.read(&value[0], value.size());
data/odil-0.12.0/src/odil/Reader.cpp:74:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                stream.read(
data/odil-0.12.0/src/odil/Reader.cpp:594:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            this->stream.read(
data/odil-0.12.0/src/odil/Value.cpp:228:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
            && std::equal(
data/odil-0.12.0/src/odil/Value.cpp:265:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        && std::equal(
data/odil-0.12.0/src/odil/Writer.cpp:402:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            auto const length = strlen(buffer);
data/odil-0.12.0/src/odil/dul/StateMachine.cpp:204:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto const header = this->_transport.read(6);
data/odil-0.12.0/src/odil/dul/StateMachine.cpp:209:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto const pdu_data = this->_transport.read(length);
data/odil-0.12.0/src/odil/dul/Transport.cpp:181:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
::read(std::size_t length)
data/odil-0.12.0/src/odil/dul/Transport.h:81:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::string read(std::size_t length);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:48:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:49:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-3", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Source", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAbort.cpp:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reason", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:59:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:63:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:65:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:66:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Called-AE-title", Item::Field::Type::string, 16);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:67:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Calling-AE-title", Item::Field::Type::string, 16);
data/odil-0.12.0/src/odil/pdu/AAssociate.cpp:68:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-3", Item::Field::Type::string, 32);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:42:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:48:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:49:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Result", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Source", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AAssociateRJ.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reason", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AReleaseRP.cpp:35:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AReleaseRP.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AReleaseRP.cpp:42:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AReleaseRP.cpp:43:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AReleaseRQ.cpp:35:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AReleaseRQ.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AReleaseRQ.cpp:42:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/AReleaseRQ.cpp:43:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/ApplicationContext.cpp:38:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ApplicationContext.cpp:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ApplicationContext.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/ApplicationContext.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp:48:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp:49:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/AsynchronousOperationsWindow.cpp:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.cpp:38:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.cpp:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/ImplementationClassUID.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.cpp:38:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.cpp:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/ImplementationVersionName.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/Item.cpp:352:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
::read(
data/odil-0.12.0/src/odil/pdu/Item.cpp:359:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(reinterpret_cast<char*>(&value), sizeof(value));
data/odil-0.12.0/src/odil/pdu/Item.cpp:370:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(reinterpret_cast<char*>(&value), sizeof(value));
data/odil-0.12.0/src/odil/pdu/Item.cpp:382:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        stream.read(reinterpret_cast<char*>(&value), sizeof(value));
data/odil-0.12.0/src/odil/pdu/Item.cpp:396:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stream.read(reinterpret_cast<char*>(&value[0]), value.size());
data/odil-0.12.0/src/odil/pdu/Item.h:251:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    void read(
data/odil-0.12.0/src/odil/pdu/MaximumLength.cpp:37:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/MaximumLength.cpp:43:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/MaximumLength.cpp:44:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/MaximumLength.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:45:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:48:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:130:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:136:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PDataTF.cpp:137:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "PDU-length", Item::Field::Type::unsigned_int_32);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:35:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:41:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-1", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:42:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-2", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved-3", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:59:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:77:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:78:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/PresentationContext.cpp:79:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:54:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "UID-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:55:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "SCU-role", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/RoleSelection.cpp:59:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "SCP-role", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:56:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:60:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:62:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:66:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:68:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:72:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:83:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassCommonExtendedNegotiation.cpp:86:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:55:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:57:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/SOPClassExtendedNegotiation.cpp:61:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp:40:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp:46:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp:48:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityAC.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:43:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:49:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:50:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:51:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:56:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:58:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:61:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserIdentityRQ.cpp:63:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(
data/odil-0.12.0/src/odil/pdu/UserInformation.cpp:47:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-type", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserInformation.cpp:53:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Reserved", Item::Field::Type::unsigned_int_8);
data/odil-0.12.0/src/odil/pdu/UserInformation.cpp:54:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    this->_item.read(stream, "Item-length", Item::Field::Type::unsigned_int_16);
data/odil-0.12.0/src/odil/pdu/UserInformation.cpp:123:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            stream.read(
data/odil-0.12.0/src/odil/pdu/UserInformation.cpp:144:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                stream.read(reinterpret_cast<char*>(&sub_item[0]), sub_item.size());
data/odil-0.12.0/src/odil/write_ds.cpp:23:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char * it = mantissa + strlen(mantissa) - 1;
data/odil-0.12.0/src/odil/write_ds.cpp:66: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(n >= strlen(buffer))
data/odil-0.12.0/src/odil/write_ds.cpp:162:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer + i + 2, mantissa + 1, size - 2 - exponent_length);
data/odil-0.12.0/src/odil/write_ds.cpp:180:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, mantissa, exponent + 1);
data/odil-0.12.0/src/odil/write_ds.cpp:182:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer + exponent + 2, mantissa + exponent + 1, size - exponent - 1);
data/odil-0.12.0/src/odil/write_ds.cpp:204:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer - exponent, mantissa, size + 1 + exponent);
data/odil-0.12.0/tests/code/Writer.cpp:51:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    OFCondition const condition = dcmtk_data_set.read(
data/odil-0.12.0/tests/code/Writer.cpp:261:42:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    OFCondition const condition = format.read(dcmtk_stream);
data/odil-0.12.0/tests/code/base64.cpp:96:36:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                BOOST_REQUIRE(std::equal(data, data+3, decoded));
data/odil-0.12.0/tests/code/dul/Transport.cpp:31:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    auto const response = transport.read(128);
data/odil-0.12.0/tests/code/dul/Transport.cpp:43:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    BOOST_REQUIRE_THROW(transport.read(1), odil::Exception);
data/odil-0.12.0/tests/code/webservices/WADORSResponse.cpp:88:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        std::equal(
data/odil-0.12.0/tests/code/webservices/multipart_related.cpp:170:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        std::equal(
data/odil-0.12.0/tests/code/webservices/multipart_related.cpp:198:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        std::equal(
data/odil-0.12.0/tests/code/webservices/multipart_related.cpp:241:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        std::equal(
data/odil-0.12.0/tests/code/xml_converter.cpp:24:17:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return std::equal(
data/odil-0.12.0/tests/tools/scu.cc:187:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(localHost) + 1 > 63)

ANALYSIS SUMMARY:

Hits = 189
Lines analyzed = 69880 in approximately 2.53 seconds (27637 lines/second)
Physical Source Lines of Code (SLOC) = 54080
Hits@level = [0]   0 [1] 144 [2]  17 [3]   1 [4]  27 [5]   0
Hits@level+ = [0+] 189 [1+] 189 [2+]  45 [3+]  28 [4+]  27 [5+]   0
Hits/KSLOC@level+ = [0+] 3.49482 [1+] 3.49482 [2+] 0.832101 [3+] 0.517751 [4+] 0.49926 [5+]   0
Dot directories skipped = 2 (--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.