Uploaded image for project: '1D Redmine '
  1. 1D Redmine
  2. REDMINE1D-259

[RM-4786] SRC NULL array (from setArray) not checked

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              r2j.migrate Redmine-Jira Migtation
              Reporter:
              r2j.migrate Redmine-Jira Migtation
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: