Actions
Action #4786
openSRC NULL array (from setArray) not checked
Start date:
2018-05-02
Due date:
% Done:
0%
Estimated time:
Description
if a user setData() with velocity not allocated (vel=NULL), unsio API does not check NULL array and crashs.
see for example :
template <class T> int CSnapshotNemoOut<T>::setArray(const int _n, const int dim, T * src, T ** dest, const char * name, const int tbits, const bool addr)
but must be valid for all others interface.
Put an assert(T!=NULL) or don't set bit |= bits
No data to display
Actions