Hi,
When libubsan and libasan is install the build systems enables some sanitize features in the compiler. These are trigger by the unit tests and four of them fail.
The following tests FAILED:
1 - mtt_packet_mgr (Failed)
2 - transport (Failed)
3 - transport_lpn (Failed)
46 - access (Failed)
The attached patch makes the unit tests pass, most of them were trivial things.
I'm using GCC 8.2.1.