Ad
  • Default User Avatar

    According to standard malloc(0) may return NULL (it is implementation-defined).
    But in test cases returned value is checked to be non-NULL.
    Please, state this expected behaviour in description or change test-cases to allow result of malloc(0) be NULL.