-
Type:
Task
-
Status: Open (View Workflow)
-
Priority:
Normal
-
Resolution: Unresolved
-
Labels:None
Created on 2018-05-02 14:22:19 by Jean-charles Lambert. % Done: 0
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