Project

General

Profile

Actions

Action #4786

open

SRC NULL array (from setArray) not checked

Added by Jean-charles Lambert over 6 years ago.

Status:
New
Priority:
High
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

Also available in: Atom PDF