diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index be95ea628f683b..a69ee3673572a5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -141,7 +141,7 @@ jobs: for BUILD_TYPE in gcc_release clang mbedtls; do case $BUILD_TYPE in "gcc_release") GN_ARGS='is_debug=false';; - "clang") GN_ARGS='is_clang=true';; + "clang") GN_ARGS='is_clang=true is_asan=true';; "mbedtls") GN_ARGS='chip_crypto="mbedtls"';; esac @@ -301,7 +301,7 @@ jobs: run: | for BUILD_TYPE in clang python_lib; do case $BUILD_TYPE in - "clang") GN_ARGS='is_clang=true target_os="all"';; + "clang") GN_ARGS='is_clang=true target_os="all" is_asan=true';; "python_lib") GN_ARGS='enable_rtti=true enable_pylib=true';; esac scripts/build/gn_gen.sh --args="$GN_ARGS" diff --git a/src/protocols/bdx/BdxMessages.cpp b/src/protocols/bdx/BdxMessages.cpp index 9c0e24c273f07e..32e5db4b4534d0 100644 --- a/src/protocols/bdx/BdxMessages.cpp +++ b/src/protocols/bdx/BdxMessages.cpp @@ -170,7 +170,7 @@ size_t TransferInit::MessageSize() const void TransferInit::LogMessage(bdx::MessageType messageType) const { char fd[kMaxFileDesignatorLen]; - snprintf(fd, sizeof(fd), "%s", FileDesignator); + snprintf(fd, sizeof(fd), "%.*s", static_cast(FileDesLength), FileDesignator); switch (messageType) { diff --git a/src/protocols/user_directed_commissioning/UserDirectedCommissioning.h b/src/protocols/user_directed_commissioning/UserDirectedCommissioning.h index e946b9acdb5370..c4a9874742ccae 100644 --- a/src/protocols/user_directed_commissioning/UserDirectedCommissioning.h +++ b/src/protocols/user_directed_commissioning/UserDirectedCommissioning.h @@ -183,7 +183,7 @@ class DLL_EXPORT UserDirectedCommissioningServer : public TransportMgrDelegate * Get the cache of UDC Clients * */ - UDCClients GetUDCClients() { return mUdcClients; } + UDCClients & GetUDCClients() { return mUdcClients; } /** * Print the cache of UDC Clients