cyclonedds/src/core/ddsi
Erik Boasson 0356af470d Fix undefined behaviour reported by ubsan
* calling ddsrt_memdup, ddsrt_strdup with a null pointer (they handle it
  gracefully but forbid it in the interface ...)

* replacement of all pre-C99 flexible arrays (i.e., declaring as
  array[1], then mallocing and using as if array[N]) by C99 flexible
  arrays.

* also add a missing null-pointer test in dds_dispose_ts, and fix the
  test cases that pass a null pointer and a non-writer handle to it to
  instead pass an invalid adress

Signed-off-by: Erik Boasson <eb@ilities.com>
2019-06-28 12:47:27 +02:00
..
include/dds/ddsi Fix undefined behaviour reported by ubsan 2019-06-28 12:47:27 +02:00
src Fix undefined behaviour reported by ubsan 2019-06-28 12:47:27 +02:00
CMakeLists.txt Consistent code formatting for the core code 2019-06-10 10:42:52 +02:00