/*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
while(bytesWritten != static_cast<int>(bufferSizeInBytes))
{
+ if(bufferSizeInBytes < bytesWritten)
+ {
+ DALI_LOG_ERROR("Socket writer error! required size : %u byte, real written : %d byte \n", bufferSizeInBytes, bytesWritten);
+ return false;
+ }
+
const char* byteBuffer = static_cast<const char*>(buffer);
byteBuffer += bytesWritten;