You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to insert an array of Blob fails due to error in BindCheck (using C++ interface)
==30717== Conditional jump or move depends on uninitialised value(s)
==30717== at 0x548B2E6: OCI_BindCheck (statement.c:297)
==30717== by 0x548B758: OCI_ExecuteInternal (statement.c:1810)
==30717== by 0x548B939: OCI_Execute (statement.c:2063)
The data used in OCI_BindCheck has unknown data which is allocated in:
template <class TObjectType, class TDataType>
inline void BindArray::BindArrayObject<TObjectType, TDataType>::AllocData()
{
_data = new TDataType[_elemCount];
}
By adding memset, the problems with i.e. set an array of Blob disappears:
template <class TObjectType, class TDataType>
inline void BindArray::BindArrayObject<TObjectType, TDataType>::AllocData()
{
_data = new TDataType[_elemCount];
memset(_data, 0, sizeof(TDataType) * _elemCount);
}
The text was updated successfully, but these errors were encountered:
Trying to insert an array of Blob fails due to error in BindCheck (using C++ interface)
The data used in OCI_BindCheck has unknown data which is allocated in:
By adding memset, the problems with i.e. set an array of Blob disappears:
The text was updated successfully, but these errors were encountered: