We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba1c40 commit ae151acCopy full SHA for ae151ac
Common/src/DataBlobImpl.cpp
@@ -97,13 +97,13 @@ size_t DataBlobImpl::GetSize() const
97
/// Returns the pointer to the internal data buffer
98
void* DataBlobImpl::GetDataPtr(size_t Offset)
99
{
100
- return &m_DataBuff[Offset];
+ return !m_DataBuff.empty() ? &m_DataBuff[Offset] : nullptr;
101
}
102
103
/// Returns const pointer to the internal data buffer
104
const void* DataBlobImpl::GetConstDataPtr(size_t Offset) const
105
106
107
108
109
IMPLEMENT_QUERY_INTERFACE(DataBlobImpl, IID_DataBlob, TBase)
0 commit comments