Exploit databaseDownload repository ZIP
GH-bd2efdc6d633069a08a53321e2375625
summitvc/cve-2026-3650
Sources for CVE-2026-3650
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files145
summitvc/cve-2026-3650Revision bbdf276d3485
- ↑..Parent directory
- CMakeLists.txt
- README.txt
- gdcmAAbortPDU.cxx
- gdcmAAbortPDU.h
- gdcmAAssociateACPDU.cxx
- gdcmAAssociateACPDU.h
- gdcmAAssociateRJPDU.cxx
- gdcmAAssociateRJPDU.h
- gdcmAAssociateRQPDU.cxx
- gdcmAAssociateRQPDU.h
- gdcmARTIMTimer.cxx
- gdcmARTIMTimer.h
- gdcmAReleaseRPPDU.cxx
- gdcmAReleaseRPPDU.h
- gdcmAReleaseRQPDU.cxx
- gdcmAReleaseRQPDU.h
- gdcmAbstractSyntax.cxx
- gdcmAbstractSyntax.h
- gdcmApplicationContext.cxx
- gdcmApplicationContext.h
- gdcmAsynchronousOperationsWindowSub.cxx
- gdcmAsynchronousOperationsWindowSub.h
- gdcmBaseCompositeMessage.h
- gdcmBaseNormalizedMessage.h
- gdcmBasePDU.h
- gdcmBaseQuery.cxx
- gdcmBaseQuery.h
- gdcmBaseRootQuery.cxx
- gdcmBaseRootQuery.h
- gdcmCEchoMessages.cxx
- gdcmCEchoMessages.h
- gdcmCFindMessages.cxx
- gdcmCFindMessages.h
- gdcmCMoveMessages.cxx
- gdcmCMoveMessages.h
- gdcmCStoreMessages.cxx
- gdcmCStoreMessages.h
- gdcmCommandDataSet.cxx
- gdcmCommandDataSet.h
- gdcmCompositeMessageFactory.cxx
- gdcmCompositeMessageFactory.h
- gdcmCompositeNetworkFunctions.cxx
- gdcmCompositeNetworkFunctions.h
- gdcmDIMSE.h
- gdcmFindPatientRootQuery.cxx
- gdcmFindPatientRootQuery.h
- gdcmFindStudyRootQuery.cxx
- gdcmFindStudyRootQuery.h
- gdcmImplementationClassUIDSub.cxx
- gdcmImplementationClassUIDSub.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
GDCM-3.2.7/Source/MessageExchangeDefinition/gdcmPresentationContextGenerator.h
Text · 3,885 bytes/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMPRESENTATIONCONTEXTGENERATOR_H
#define GDCMPRESENTATIONCONTEXTGENERATOR_H
#include "gdcmDirectory.h"
#include "gdcmPresentationContext.h"
namespace gdcm
{
class TransferSyntax;
class File;
/**
* \brief PresentationContextGenerator
* \details This class is responsible for generating the proper PresentationContext that
* will be used in subsequent operation during a DICOM Query/Retrieve
* association. The step of the association is very sensible as special care
* need to be taken to explicitly define what instance are going to be send
* and how they are encoded.
*
* For example a PresentationContext will express that negotiation requires
* that CT Image Storage are send using JPEG Lossless, while US Image Storage
* are sent using RLE Transfer Syntax.
*
* Two very different API are exposed one which will always default to little
* endian transfer syntax see GenerateFromUID()
* This API is used for C-ECHO, C-FIND and C-MOVE (SCU).
* Another API: GenerateFromFilenames() is used for C-STORE (SCU) as it will
* loop over all filenames argument to detect the actual encoding. and
* therefore find the proper encoding to be used.
*
* Two modes are available. The default mode (SetMergeModeToAbstractSyntax)
* append PresentationContext (one AbstractSyntax and one TransferSyntax), as
* long a they are different. Eg MR Image Storage/JPEG2000 and MR Image
* Storage/JPEGLossless would be considered different. the other mode
* SetMergeModeToTransferSyntax merge any new TransferSyntax to the already
* existing PresentationContext in order to re-use the same AbstractSyntax.
*
* \see PresentationContext
*/
class GDCM_EXPORT PresentationContextGenerator
{
public:
PresentationContextGenerator();
// Set MergeMode
// Default mode, each pair AbstractSyntax/TransferSyntax are only merged when
// exactly identical
void SetMergeModeToAbstractSyntax();
// Set MergeMode
// Merge is done on a per AbstractSyntax basis. Any new TransferSyntax for a
// given AbstractSyntax is merge to the existing PresentationContext referring
// to that AbstractSyntax
void SetMergeModeToTransferSyntax();
/// Generate the PresentationContext array from a UID (eg. VerificationSOPClass)
bool GenerateFromUID(UIDs::TSName asname);
/// Generate the PresentationContext array from a File-Set. File specified needs to
/// be valid DICOM files.
/// Used for C-STORE operations
bool GenerateFromFilenames(const Directory::FilenamesType &files);
/// Add a single PresentationContext from a single File. Call multiple times when
/// dealing with multiple files.
bool AddFromFile(const File &file);
typedef std::vector<PresentationContext> PresentationContextArrayType;
typedef PresentationContextArrayType::size_type SizeType;
PresentationContextArrayType const &GetPresentationContexts() { return PresContext; }
/// Not implemented for now. GDCM internally uses Implicit Little Endian
void SetDefaultTransferSyntax( const TransferSyntax &ts );
protected:
bool AddPresentationContext( const char *absyn, const char *ts );
const char *GetDefaultTransferSyntax() const;
private:
std::vector<PresentationContext> PresContext;
static std::string DefaultTransferSyntax;
};
} // end namespace gdcm
#endif //GDCMPRESENTATIONCONTEXTGENERATOR_H