Skip to content

Commit

Permalink
Bump third_party/pigweed/repo from e72f0d5 to da76d13 (#26713)
Browse files Browse the repository at this point in the history
* Bump third_party/pigweed/repo from `e72f0d5` to `da76d13`

Bumps [third_party/pigweed/repo](https://github.com/google/pigweed) from `e72f0d5` to `da76d13`.
- [Commits](google/pigweed@e72f0d5...da76d13)

---
updated-dependencies:
- dependency-name: third_party/pigweed/repo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Update clang.json value to make linter happy

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 14, 2024
1 parent 118ed37 commit c01dabd
Show file tree
Hide file tree
Showing 27 changed files with 155 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,12 @@ void AllClustersAppCommandHandler::OnSoftwareFaultEventHandler(uint32_t eventId)
softwareFault.name.SetValue(CharSpan::fromCharString(threadName));

std::time_t result = std::time(nullptr);
char * asctime = std::asctime(std::localtime(&result));
softwareFault.faultRecording.SetValue(ByteSpan(Uint8::from_const_char(asctime), strlen(asctime)));
// Using size of 50 as it is double the expected 25 characters "Www Mmm dd hh:mm:ss yyyy\n".
char timeChar[50];
if (std::strftime(timeChar, sizeof(timeChar), "%c", std::localtime(&result)))
{
softwareFault.faultRecording.SetValue(ByteSpan(Uint8::from_const_char(timeChar), strlen(timeChar)));
}

Clusters::SoftwareDiagnosticsServer::Instance().OnSoftwareFaultDetect(softwareFault);
}
Expand Down
3 changes: 2 additions & 1 deletion examples/chip-tool/commands/common/Command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ bool Command::InitArgument(size_t argIndex, char * argValue)
// (e.g a struct argument with multiple fields). In case one needs to use ";" it can be overriden with the following
// environment variable.
constexpr const char * kSeparatorVariable = "CHIPTOOL_CUSTOM_ARGUMENTS_SEPARATOR";
getline(ss, valueAsString, getenv(kSeparatorVariable) ? getenv(kSeparatorVariable)[0] : ';');
char * getenvSeparatorVariableResult = getenv(kSeparatorVariable);
getline(ss, valueAsString, getenvSeparatorVariableResult ? getenvSeparatorVariableResult[0] : ';');

CustomArgument * customArgument = new CustomArgument();
vectorArgument->push_back(customArgument);
Expand Down
15 changes: 8 additions & 7 deletions examples/common/websocket-server/WebSocketServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,21 @@ static int OnWebSocketCallback(lws * wsi, lws_callback_reasons reason, void * us
{
LogWebSocketCallbackReason(reason);

WebSocketServer * server = nullptr;
auto protocol = lws_get_protocol(wsi);
if (protocol)
if (LWS_CALLBACK_RECEIVE == reason)
{
WebSocketServer * server = nullptr;
auto protocol = lws_get_protocol(wsi);
if (!protocol)
{
ChipLogError(chipTool, "Failed to retrieve the protocol.");
return -1;
}
server = static_cast<WebSocketServer *>(protocol->user);
if (nullptr == server)
{
ChipLogError(chipTool, "Failed to retrieve the server interactive context.");
return -1;
}
}

if (LWS_CALLBACK_RECEIVE == reason)
{
char msg[kMaxMessageBufferLen + 1 /* for null byte */] = {};
VerifyOrDie(sizeof(msg) > len);
memcpy(msg, in, len);
Expand Down
2 changes: 2 additions & 0 deletions examples/platform/linux/AppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ void ChipLinuxAppMainLoop(AppMainLoopImplementation * impl)
ApplicationInit();

#if !defined(ENABLE_CHIP_SHELL)
// NOLINTBEGIN(bugprone-signal-handler)
signal(SIGINT, StopSignalHandler);
signal(SIGTERM, StopSignalHandler);
// NOLINTEND(bugprone-signal-handler)
#endif // !defined(ENABLE_CHIP_SHELL)

if (impl != nullptr)
Expand Down
8 changes: 6 additions & 2 deletions scripts/setup/clang.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"packages": [
{
"path": "fuchsia/third_party/clang/mac-arm64",
"platforms": ["mac-arm64"],
"tags": ["git_revision:3a20597776a5d2920e511d81653b4d2b6ca0c855"]
"platforms": [
"mac-arm64"
],
"tags": [
"git_revision:6d667d4b261e81f325756fdfd5bb43b3b3d2451d"
]
}
]
}
40 changes: 16 additions & 24 deletions src/access/AccessControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,36 +78,28 @@ class AccessControl
virtual void Release() {}

// Simple getters
virtual CHIP_ERROR GetAuthMode(AuthMode & authMode) const { return CHIP_NO_ERROR; }
virtual CHIP_ERROR GetFabricIndex(FabricIndex & fabricIndex) const { return CHIP_NO_ERROR; }
virtual CHIP_ERROR GetPrivilege(Privilege & privilege) const { return CHIP_NO_ERROR; }
virtual CHIP_ERROR GetAuthMode(AuthMode & authMode) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR GetFabricIndex(FabricIndex & fabricIndex) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR GetPrivilege(Privilege & privilege) const { return CHIP_ERROR_NOT_IMPLEMENTED; }

// Simple setters
virtual CHIP_ERROR SetAuthMode(AuthMode authMode) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR SetFabricIndex(FabricIndex fabricIndex) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR SetPrivilege(Privilege privilege) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR SetAuthMode(AuthMode authMode) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR SetFabricIndex(FabricIndex fabricIndex) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR SetPrivilege(Privilege privilege) { return CHIP_ERROR_NOT_IMPLEMENTED; }

// Subjects
virtual CHIP_ERROR GetSubjectCount(size_t & count) const
{
count = 0;
return CHIP_NO_ERROR;
}
virtual CHIP_ERROR GetSubject(size_t index, NodeId & subject) const { return CHIP_NO_ERROR; }
virtual CHIP_ERROR SetSubject(size_t index, NodeId subject) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR AddSubject(size_t * index, NodeId subject) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR RemoveSubject(size_t index) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR GetSubjectCount(size_t & count) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR GetSubject(size_t index, NodeId & subject) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR SetSubject(size_t index, NodeId subject) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR AddSubject(size_t * index, NodeId subject) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR RemoveSubject(size_t index) { return CHIP_ERROR_NOT_IMPLEMENTED; }

// Targets
virtual CHIP_ERROR GetTargetCount(size_t & count) const
{
count = 0;
return CHIP_NO_ERROR;
}
virtual CHIP_ERROR GetTarget(size_t index, Target & target) const { return CHIP_NO_ERROR; }
virtual CHIP_ERROR SetTarget(size_t index, const Target & target) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR AddTarget(size_t * index, const Target & target) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR RemoveTarget(size_t index) { return CHIP_NO_ERROR; }
virtual CHIP_ERROR GetTargetCount(size_t & count) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR GetTarget(size_t index, Target & target) const { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR SetTarget(size_t index, const Target & target) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR AddTarget(size_t * index, const Target & target) { return CHIP_ERROR_NOT_IMPLEMENTED; }
virtual CHIP_ERROR RemoveTarget(size_t index) { return CHIP_ERROR_NOT_IMPLEMENTED; }
};

Entry() = default;
Expand Down
4 changes: 2 additions & 2 deletions src/access/tests/TestAccessControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1906,8 +1906,8 @@ void TestPrepareEntry(nlTestSuite * inSuite, void * inContext)
{
NL_TEST_ASSERT(inSuite, accessControl.PrepareEntry(entry) == CHIP_NO_ERROR);

size_t subjectCount;
size_t targetCount;
size_t subjectCount = 0;
size_t targetCount = 0;

NL_TEST_ASSERT(inSuite, entry.GetSubjectCount(subjectCount) == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, entry.GetTargetCount(targetCount) == CHIP_NO_ERROR);
Expand Down
2 changes: 2 additions & 0 deletions src/app/EventManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ CHIP_ERROR EventManagement::EnsureSpaceInCircularBuffer(size_t aRequiredSpace, P
}
}

VerifyOrExit(eventBuffer != nullptr, err = CHIP_ERROR_INCORRECT_STATE);

// check whether we actually need to do anything, exit if we don't
VerifyOrExit(requiredSpace > eventBuffer->AvailableDataLength(), err = CHIP_NO_ERROR);

Expand Down
7 changes: 6 additions & 1 deletion src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,12 @@ DeviceCommissioner::ContinueCommissioningAfterDeviceAttestation(DeviceProxy * de
return CHIP_ERROR_INCORRECT_STATE;
}
CommissioneeDeviceProxy * commissioneeDevice = FindCommissioneeDevice(device->GetDeviceId());
if (commissioneeDevice == nullptr || !commissioneeDevice->IsSecureConnected() || commissioneeDevice != mDeviceBeingCommissioned)
if (commissioneeDevice == nullptr)
{
ChipLogError(Controller, "Couldn't find commissionee device");
return CHIP_ERROR_INCORRECT_STATE;
}
if (!commissioneeDevice->IsSecureConnected() || commissioneeDevice != mDeviceBeingCommissioned)
{
ChipLogError(Controller, "Invalid device for commissioning after attestation failure: 0x" ChipLogFormatX64,
ChipLogValueX64(commissioneeDevice->GetDeviceId()));
Expand Down
1 change: 1 addition & 0 deletions src/controller/python/chip/native/CommonStackInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct __attribute__((packed)) PyCommonStackInitParams
void pychip_CauseCrash()
{
uint8_t * ptr = nullptr;
// NOLINTNEXTLINE(clang-analyzer-core.NullDereference): Intentionally trying to cause crash.
*ptr = 0;
}

Expand Down
6 changes: 6 additions & 0 deletions src/credentials/tests/TestGroupDataProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,12 @@ void TestGroupDecryption(nlTestSuite * apSuite, void * apContext)
std::pair<FabricIndex, GroupId> found(session.fabric_index, session.group_id);
NL_TEST_ASSERT(apSuite, expected.count(found) > 0);
NL_TEST_ASSERT(apSuite, session.keyContext != nullptr);
// Assert aboves doesn't actually exit, we call continue so that we can call it->Release() outside of
// loop.
if (session.keyContext == nullptr)
{
continue;
}

// Decrypt the ciphertext
NL_TEST_ASSERT(apSuite,
Expand Down
7 changes: 4 additions & 3 deletions src/inet/tests/TestInetEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <lib/support/CHIPArgParser.hpp>
#include <lib/support/CHIPMem.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/UnitTestContext.h>
#include <lib/support/UnitTestRegistration.h>

#include <system/SystemError.h>
Expand Down Expand Up @@ -256,12 +257,12 @@ static void TestInetEndPointInternal(nlTestSuite * inSuite, void * inContext)
// init all the EndPoints
SYSTEM_STATS_RESET(System::Stats::kInetLayer_NumUDPEps);
err = gUDP.NewEndPoint(&testUDPEP);
NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_IN_USE(System::Stats::kInetLayer_NumUDPEps, 1));

SYSTEM_STATS_RESET(System::Stats::kInetLayer_NumTCPEps);
err = gTCP.NewEndPoint(&testTCPEP1);
NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_IN_USE(System::Stats::kInetLayer_NumUDPEps, 1));

err = InterfaceId::Null().GetLinkLocalAddr(&addr);
Expand Down Expand Up @@ -308,7 +309,7 @@ static void TestInetEndPointInternal(nlTestSuite * inSuite, void * inContext)
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_HIGH_WATER_MARK(System::Stats::kInetLayer_NumUDPEps, 1));

err = gUDP.NewEndPoint(&testUDPEP);
NL_TEST_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, err == CHIP_NO_ERROR);
NL_TEST_ASSERT(inSuite, SYSTEM_STATS_TEST_IN_USE(System::Stats::kInetLayer_NumUDPEps, 1));
#if INET_CONFIG_ENABLE_IPV4
err = testUDPEP->Bind(IPAddressType::kIPv4, addr_v4, 3000, intId);
Expand Down
10 changes: 10 additions & 0 deletions src/lib/core/TLVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ CHIP_ERROR TLVReader::Get(CharSpan & v)

const uint8_t * bytes;
ReturnErrorOnFailure(GetDataPtr(bytes)); // Does length sanity checks
if (bytes == nullptr)
{
// Calling memchr further down with bytes == nullptr would have undefined behaviour, exiting early.
return CHIP_NO_ERROR;
}

uint32_t len = GetLength();

Expand All @@ -335,6 +340,11 @@ CHIP_ERROR TLVReader::Get(Optional<LocalizedStringIdentifier> & lsid)

const uint8_t * bytes;
ReturnErrorOnFailure(GetDataPtr(bytes)); // Does length sanity checks
if (bytes == nullptr)
{
// Calling memchr further down with bytes == nullptr would have undefined behaviour, exiting early.
return CHIP_NO_ERROR;
}

uint32_t len = GetLength();

Expand Down
3 changes: 2 additions & 1 deletion src/lib/core/tests/TestCHIPErrorStr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@

#include <lib/core/CHIPError.h>
#include <lib/support/ErrorStr.h>
#include <lib/support/UnitTestContext.h>
#include <lib/support/UnitTestRegistration.h>

#include <nlunit-test.h>
Expand Down Expand Up @@ -199,7 +200,7 @@ static void CheckCoreErrorStr(nlTestSuite * inSuite, void * inContext)
#if CHIP_CONFIG_ERROR_SOURCE
// GetFile() should be relative to ${chip_root}
char const * const file = err.GetFile();
NL_TEST_ASSERT(inSuite, file != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, file != nullptr);
NL_TEST_ASSERT(inSuite, strstr(file, "src/lib/core/") == file);
#endif // CHIP_CONFIG_ERROR_SOURCE
}
Expand Down
6 changes: 6 additions & 0 deletions src/lib/support/ReferenceCountedHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ class ReferenceCountedHandle
{
public:
explicit ReferenceCountedHandle(Target & target) : mTarget(target) { mTarget.Retain(); }

// Ideally we would suppress this from within Optional.h, where this false positive is coming from. That said suppressing
// here is okay since no other cases could create instance of ReferenceCountedHandle without going through explicit
// contstructor.
//
// NOLINTNEXTLINE(clang-analyzer-core.CallAndMessage): Only in a false positive is mTarget uninitialized.
~ReferenceCountedHandle() { mTarget.Release(); }

ReferenceCountedHandle(const ReferenceCountedHandle & that) : mTarget(that.mTarget) { mTarget.Retain(); }
Expand Down
25 changes: 25 additions & 0 deletions src/lib/support/UnitTestContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@
#include <lib/support/CHIPMem.h>
#include <lib/support/CodeUtils.h>

/**
* @def NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, inCondition)
*
* @brief
* This is used to assert the results of a conditional check
* through out a test in a test suite.
*
* @param[in] inSuite A pointer to the test suite the assertion
* should be accounted against.
* @param[in] inCondition Code for the logical predicate to be checked
* for truth. If the condition fails, the
* assertion fails.
*
*/
#define NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, inCondition) \
do \
{ \
NL_TEST_ASSERT(inSuite, inCondition); \
\
if (!(inCondition)) \
{ \
return; \
} \
} while (0)

namespace chip {

/// Performs a memory Init/Shutdown in a controlled manner
Expand Down
4 changes: 4 additions & 0 deletions src/lib/support/Variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ struct Variant
return *reinterpret_cast<const T *>(&mData);
}

// Ideally we would suppress this from within Optional.h, where this false positive is coming from. That said suppressing
// here is okay since mTypeId would seemingly only be uninitialized when Variant is in a union.
//
// NOLINTNEXTLINE(clang-analyzer-core.CallAndMessage): Only in a false positive is mTypeId uninitialized.
~Variant() { Curry::Destroy(mTypeId, &mData); }
};

Expand Down
3 changes: 2 additions & 1 deletion src/lib/support/tests/TestCHIPMem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <lib/support/CHIPMem.h>
#include <lib/support/CodeUtils.h>
#include <lib/support/UnitTestContext.h>
#include <lib/support/UnitTestRegistration.h>
#include <nlunit-test.h>

Expand Down Expand Up @@ -76,7 +77,7 @@ static void TestMemAlloc_Malloc(nlTestSuite * inSuite, void * inContext)
static void TestMemAlloc_Calloc(nlTestSuite * inSuite, void * inContext)
{
char * p = static_cast<char *>(MemoryCalloc(128, true));
NL_TEST_ASSERT(inSuite, p != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, p != nullptr);

for (int i = 0; i < 128; i++)
NL_TEST_ASSERT(inSuite, p[i] == 0);
Expand Down
5 changes: 3 additions & 2 deletions src/lib/support/tests/TestFixedBufferAllocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#include <lib/support/FixedBufferAllocator.h>
#include <lib/support/UnitTestContext.h>
#include <lib/support/UnitTestRegistration.h>

#include <cstring>
Expand All @@ -34,7 +35,7 @@ void TestClone(nlTestSuite * inSuite, void * inContext)
const char * kTestString = "Test string";
const char * allocatedString = alloc.Clone(kTestString);

NL_TEST_ASSERT(inSuite, allocatedString != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, allocatedString != nullptr);
NL_TEST_ASSERT(inSuite, allocatedString != kTestString);

// NOLINTNEXTLINE(clang-analyzer-unix.cstring.NullArg): null check for allocated string already done
Expand All @@ -43,7 +44,7 @@ void TestClone(nlTestSuite * inSuite, void * inContext)
const uint8_t kTestData[] = { 0xDE, 0xAD, 0xBE, 0xEF };
const uint8_t * allocatedData = alloc.Clone(kTestData, sizeof(kTestData));

NL_TEST_ASSERT(inSuite, allocatedData != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, allocatedData != nullptr);
NL_TEST_ASSERT(inSuite, allocatedData != kTestData);

// NOLINTNEXTLINE(clang-analyzer-unix.cstring.NullArg): null check for allocated data already done
Expand Down
5 changes: 5 additions & 0 deletions src/lib/support/tests/TestPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ void TestForEachActiveObject(nlTestSuite * inSuite, void * inContext)
size_t sum = 0;
pool.ForEachActiveObject([&](S * object) {
NL_TEST_ASSERT(inSuite, object != nullptr);
if (object == nullptr)
{
// NL_TEST_ASSERT doesn't stop running the test and we want to avoid nullptr dereference.
return Loop::Continue;
}
NL_TEST_ASSERT(inSuite, objIds.count(object->mId) == 1);
objIds.erase(object->mId);
++count;
Expand Down
4 changes: 2 additions & 2 deletions src/messaging/tests/TestExchangeMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ void CheckNewContextTest(nlTestSuite * inSuite, void * inContext)

MockAppDelegate mockAppDelegate;
ExchangeContext * ec1 = ctx.NewExchangeToBob(&mockAppDelegate);
NL_TEST_ASSERT(inSuite, ec1 != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, ec1 != nullptr);
NL_TEST_ASSERT(inSuite, ec1->IsInitiator() == true);
NL_TEST_ASSERT(inSuite, ec1->GetExchangeId() != 0);
NL_TEST_ASSERT(inSuite, ec1->GetSessionHandle() == ctx.GetSessionAliceToBob());
NL_TEST_ASSERT(inSuite, ec1->GetDelegate() == &mockAppDelegate);

ExchangeContext * ec2 = ctx.NewExchangeToAlice(&mockAppDelegate);
NL_TEST_ASSERT(inSuite, ec2 != nullptr);
NL_TEST_EXIT_ON_FAILED_ASSERT(inSuite, ec2 != nullptr);
NL_TEST_ASSERT(inSuite, ec2->GetExchangeId() > ec1->GetExchangeId());
NL_TEST_ASSERT(inSuite, ec2->GetSessionHandle() == ctx.GetSessionBobToAlice());

Expand Down
2 changes: 1 addition & 1 deletion src/platform/Darwin/ConfigurationManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CHIP_ERROR GetMACAddressFromInterfaces(io_iterator_t primaryInterfaceIterator, u

kern_return_t kernResult;
io_object_t interfaceService;
io_object_t controllerService;
io_object_t controllerService = 0;

while ((interfaceService = IOIteratorNext(primaryInterfaceIterator)))
{
Expand Down
Loading

0 comments on commit c01dabd

Please sign in to comment.