Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @rdkcentral/advsecurity-maintainers
* @rdkcentral/common-library-maintainers @rdkcentral/rdkb-maintainers
13 changes: 10 additions & 3 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
name: "CLA"

permissions:
contents: read
pull-requests: write
actions: write
statuses: write

on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]
types: [opened, closed, synchronize]

jobs:
CLA-Lite:
name: "Signature"
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@main
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: Fossid Stateless Diff Scan

on: pull_request
on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: read

jobs:
call-fossid-workflow:
uses: rdkcentral/build_tools_workflows/.github/workflows/fossid_integration_stateless_diffscan.yml@develop
secrets:
if: ${{ ! github.event.pull_request.head.repo.fork }}
uses: rdkcentral/build_tools_workflows/.github/workflows/[email protected]
secrets:
FOSSID_CONTAINER_USERNAME: ${{ secrets.FOSSID_CONTAINER_USERNAME }}
FOSSID_CONTAINER_PASSWORD: ${{ secrets.FOSSID_CONTAINER_PASSWORD }}
FOSSID_HOST_USERNAME: ${{ secrets.FOSSID_HOST_USERNAME }}
Expand Down
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,29 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [1.2.0](https://github.com/rdkcentral/common-library/compare/1.1.0...1.2.0)

- RDKB-61594: [ccsp-common-library] Code development to remove macro [`#29`](https://github.com/rdkcentral/common-library/pull/29)
- RDKB-61711: Limit threads stack sizes to 4M [`#19`](https://github.com/rdkcentral/common-library/pull/19)
- Update CODEOWNERS [`#27`](https://github.com/rdkcentral/common-library/pull/27)
- Deploy fossid_integration_stateless_diffscan_target_repo action [`#24`](https://github.com/rdkcentral/common-library/pull/24)
- Deploy cla action [`#21`](https://github.com/rdkcentral/common-library/pull/21)
- Update CODEOWNERS [`#20`](https://github.com/rdkcentral/common-library/pull/20)
- RDKB-61711: OneWiFi: Limit stacks sizes to 4M [`4e76a76`](https://github.com/rdkcentral/common-library/commit/4e76a769ecc878c08c4e4d3f2f069b6fb48912dc)
- Merge tag '1.1.0' into develop [`9ce1fa8`](https://github.com/rdkcentral/common-library/commit/9ce1fa85d0d575d62317947953b27ff71f870d62)

#### [1.1.0](https://github.com/rdkcentral/common-library/compare/1.0.0...1.1.0)

> 26 August 2025

- RDKB-58648 TCXB7-6946: Observing snmp_subagent crash with fingerprin… [`#14`](https://github.com/rdkcentral/common-library/pull/14)
- RDKB-58521 : WAN Manager Telemetry Markers 2.0 - Phase 1 [`#12`](https://github.com/rdkcentral/common-library/pull/12)
- RDKCOM-5360: RDKBNETWOR-3 DHCPManager implementation [`#10`](https://github.com/rdkcentral/common-library/pull/10)
- RDKCOM-5324: RDKBDEV-3179: fix build for older toolchains [`#8`](https://github.com/rdkcentral/common-library/pull/8)
- RDKB-60486: Fix the dmcli crash when returned parameterName or Value is NULL [`#6`](https://github.com/rdkcentral/common-library/pull/6)
- RDKB-58648 TCXB7-6946: Observing snmp_subagent crash with fingerprint:[66870222] [`2dbaa72`](https://github.com/rdkcentral/common-library/commit/2dbaa72cf89038603789fe46e580f12b4471b3ff)
- Update ccsp_base_api.c [`3c5416a`](https://github.com/rdkcentral/common-library/commit/3c5416a1505876fdb5cce2efd42bddbacbe41417)
- Update ipc_msg.h [`a10bf44`](https://github.com/rdkcentral/common-library/commit/a10bf4469ec0142de58f78f690eef962d922043b)
- Update CHANGELOG.md [`0e0cfdc`](https://github.com/rdkcentral/common-library/commit/0e0cfdca8f231204ff79599deda5e7f2eb58200a)

#### 1.0.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/ccsp/components/common/DataModel/dml/components/DslhObjController/dslh_objco_access.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/ccsp/components/common/DataModel/dml/components/DslhObjController/dslh_objco_access.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 1294 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/ccsp/components/common/DataModel/dml/components/DslhObjController/dslh_objco_access.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -1028,11 +1028,7 @@
/*AnscTraceVerbose(("DslhObjcoGetParamValueByName -- name %s\n", pName));*/

/* check whether it's a count of table (xxxNumberOfEntries) or not */
#ifdef _64BIT_ARCH_SUPPORT_
if(pSlapVariable->Syntax == (ULONG)SLAP_VAR_SYNTAX_uint32)
#else
if(pSlapVariable->Syntax == SLAP_VAR_SYNTAX_uint32)
#endif
{
pFind = _ansc_strstr(pName, TR69_NUMBER_OF_ENTRIES_STRING);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/cosa/utilities/AnscObjectArray/AnscUIntArray/ansc_uint_array_co_process.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/cosa/utilities/AnscObjectArray/AnscUIntArray/ansc_uint_array_co_process.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 670 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/cosa/utilities/AnscObjectArray/AnscUIntArray/ansc_uint_array_co_process.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -74,6 +74,7 @@


#include "ansc_uint_array_co_global.h"
#include <stdint.h>


/**********************************************************************
Expand Down Expand Up @@ -275,11 +276,7 @@

pStorage = (PUINT)pUIntArray->hStorage;

#ifdef _64BIT_ARCH_SUPPORT_
return (ANSC_OBJECT_ARRAY_DATA)(ULONG)pStorage[ulIndex];
#else
return (ANSC_OBJECT_ARRAY_DATA)pStorage[ulIndex];
#endif
return (ANSC_OBJECT_ARRAY_DATA)(uintptr_t)pStorage[ulIndex];
}

return (ANSC_OBJECT_ARRAY_DATA)NULL;
Expand Down Expand Up @@ -335,11 +332,7 @@
PUINT pStorage;

pStorage = (PUINT)pUIntArray->hStorage;
#ifdef _64BIT_ARCH_SUPPORT_
pStorage[ulIndex] = (ULONG)Data;
#else
pStorage[ulIndex] = (UINT)Data;
#endif
pStorage[ulIndex] = (uintptr_t)Data;
}
}

Expand Down Expand Up @@ -420,11 +413,7 @@

for (i = 0; i < ulCount; i ++)
{
#ifdef _64BIT_ARCH_SUPPORT_
pStorage[i + ulIndex] = (ULONG)Data;
#else
pStorage[i + ulIndex] = (UINT)Data;
#endif
pStorage[i + ulIndex] = (uintptr_t)Data;
}
}
}
Expand Down Expand Up @@ -539,11 +528,7 @@
PUINT pStorage;

pStorage = (PUINT)pUIntArray->hStorage;
#ifdef _64BIT_ARCH_SUPPORT_
pStorage[pUIntArray->ulItemCount ++] = (ULONG)Data;
#else
pStorage[pUIntArray->ulItemCount ++] = (UINT)Data;
#endif
pStorage[pUIntArray->ulItemCount ++] = (uintptr_t)Data;

return pUIntArray->ulItemCount;
}
Expand Down Expand Up @@ -676,11 +661,7 @@
LONG Count = pUIntArray->ulItemCount;
LONG i;
PUINT pStorage = (PUINT)pUIntArray->hStorage;
#ifdef _64BIT_ARCH_SUPPORT_
UINT uSample = (ULONG)Data;
#else
UINT uSample = (UINT)Data;
#endif
UINT uSample = (uintptr_t)Data;

for (i = 0; i < Count; i ++)
{
Expand Down
14 changes: 3 additions & 11 deletions source/cosa/utilities/bsp_eng/bspeng_co_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

**********************************************************************/


#include <stdint.h>
#include "bspeng_co_global.h"
#include "safec_lib_common.h"

Expand Down Expand Up @@ -6198,11 +6198,7 @@ BspTemplateEngGetSlapObjectString

if (pString)
{
#ifdef _64BIT_ARCH_SUPPORT_
rc = sprintf_s(pString, ulSize, "%.08X", (UINT)(ULONG)pSlapVar->Variant.varHandle);
#else
rc = sprintf_s(pString, ulSize, "%.08X", (UINT)pSlapVar->Variant.varHandle);
#endif
rc = sprintf_s(pString, ulSize, "%.08X", (UINT)(uintptr_t)pSlapVar->Variant.varHandle);
if(rc < EOK)
{
ERR_CHK(rc);
Expand Down Expand Up @@ -6421,11 +6417,7 @@ BspTemplateEngGetSlapObjectString
pString + AnscSizeOfString(pString),
ulSize+1,
(i == 0)? "%.08X" : ".%.08X",
#ifdef _64BIT_ARCH_SUPPORT_
(UINT)(ULONG)pArray->Array.arrayHandle[i]
#else
(UINT)pArray->Array.arrayHandle[i]
#endif
(UINT)(uintptr_t)pArray->Array.arrayHandle[i]
);
if(rc < EOK)
{
Expand Down
9 changes: 0 additions & 9 deletions source/debug_api/ansc_memory.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/debug_api/ansc_memory.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/debug_api/ansc_memory.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 1539 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/debug_api/ansc_memory.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -958,13 +958,8 @@
sprintf
(
pTraceMessage,
#ifdef _64BIT_ARCH_SUPPORT_
" *** mem_block = %p, size = %9d bytes, id = %6d, %s ***",
pMemoryAllocItem->MemoryPointer,
#else
" *** mem_block = 0x%8X, size = %9d bytes, id = %6d, %s ***",
(UINT)pMemoryAllocItem->MemoryPointer,
#endif
(int)pMemoryAllocItem->MemorySize,
(int)pMemoryAllocItem->AllocId,
pMemoryAllocItem->OwnerDesp
Expand Down Expand Up @@ -1449,11 +1444,7 @@

pPrevAllocItem = AnscGetPrevMemoryAllocItem(pMemoryBlock);

#ifdef _64BIT_ARCH_SUPPORT_
printf("found %p\n",pPrevAllocItem);
#else
printf("found %x\n",(UINT)pPrevAllocItem);
#endif

if ( !pPrevAllocItem )
{
Expand Down
8 changes: 0 additions & 8 deletions source/util_api/ansc/AnscPlatform/ansc_debug.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/util_api/ansc/AnscPlatform/ansc_debug.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/util_api/ansc/AnscPlatform/ansc_debug.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 1186 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/util_api/ansc/AnscPlatform/ansc_debug.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -650,11 +650,7 @@
/*
* Print the address
*/
#ifdef _64BIT_ARCH_SUPPORT_
_ansc_sprintf(PrintBuffer, "%p", pCurr);
#else
_ansc_sprintf(PrintBuffer, "0x%08X", (unsigned int)pCurr);
#endif
_ansc_strcat (PrintBuffer, ": ");

/*
Expand Down Expand Up @@ -695,11 +691,7 @@
/*
* Print the address
*/
#ifdef _64BIT_ARCH_SUPPORT_
_ansc_sprintf(PrintBuffer, "%p", pCurr);
#else
_ansc_sprintf(PrintBuffer, "0x%08X", (unsigned int)pCurr);
#endif
_ansc_strcat (PrintBuffer, ": " );

/*
Expand Down
23 changes: 4 additions & 19 deletions source/util_api/ansc/AnscPlatform/ansc_file_io.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/util_api/ansc/AnscPlatform/ansc_file_io.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/util_api/ansc/AnscPlatform/ansc_file_io.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 656 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/util_api/ansc/AnscPlatform/ansc_file_io.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -88,7 +88,7 @@

**********************************************************************/


#include <stdint.h>
#include "ansc_platform.h"
#include "ansc_external_storage.h"
#include "ansc_crypto_interface.h"
Expand Down Expand Up @@ -245,12 +245,7 @@

if ( pFileInfo->bZlibCompressed )
{
#ifdef _64BIT_ARCH_SUPPORT_
ULONG uHandle = pFileInfo->Handle;
iReturnsize = _ansc_get_file_size((VOID*)uHandle);
#else
iReturnsize = _ansc_get_file_size((VOID*)pFileInfo->Handle);
#endif
iReturnsize = _ansc_get_file_size((VOID*)(uintptr_t)pFileInfo->Handle);
if ( iReturnsize < 0 )
{
return ANSC_STATUS_FAILURE;
Expand Down Expand Up @@ -487,12 +482,7 @@
{
int iReadSize = (int)0;

#ifdef _64BIT_ARCH_SUPPORT_
ULONG uHandle = pFileInfo->Handle;
iReturnSize = _ansc_get_file_size((VOID*)uHandle);
#else
iReturnSize = _ansc_get_file_size((VOID*)pFileInfo->Handle);
#endif
iReturnSize = _ansc_get_file_size((VOID*)(uintptr_t)pFileInfo->Handle);
if ( iReturnSize < 0 )
{
return 0;
Expand Down Expand Up @@ -546,12 +536,7 @@
else
{
/*CID: 59651 Improper use of negative value*/
#ifdef _64BIT_ARCH_SUPPORT_
ULONG uHandle = pFileInfo->Handle;
iReturnSize = _ansc_get_file_size((VOID*)uHandle);
#else
iReturnSize = _ansc_get_file_size((VOID*)pFileInfo->Handle);
#endif
iReturnSize = _ansc_get_file_size((VOID*)(uintptr_t)pFileInfo->Handle);
if(iReturnSize < 0)
{
return 0;
Expand Down
12 changes: 4 additions & 8 deletions source/util_api/ansc/AnscPlatform/user_file_io.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/util_api/ansc/AnscPlatform/user_file_io.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/util_api/ansc/AnscPlatform/user_file_io.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 522 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/util_api/ansc/AnscPlatform/user_file_io.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -74,6 +74,7 @@

#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include "ansc_global.h"

#include "user_base.h"
Expand Down Expand Up @@ -308,14 +309,9 @@
user_get_file_size(PVOID h)
{
int length = 0;
#ifdef _64BIT_ARCH_SUPPORT_
length = lseek((int)(ULONG)h, 0, SEEK_END);
lseek((int)(ULONG)h, 0, SEEK_SET);
#else
length = lseek((int)h, 0, SEEK_END);
lseek((int)h, 0, SEEK_SET);
#endif
return length;
length = lseek((int)(uintptr_t)h, 0, SEEK_END);
lseek((int)(uintptr_t)h, 0, SEEK_SET);
return length;
}

/*
Expand Down
21 changes: 0 additions & 21 deletions source/util_api/ansc/AnscXmlDomParser/ansc_xml_dom_node_base.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* If not stated otherwise in this file or this component's Licenses.txt file the

Check failure on line 2 in source/util_api/ansc/AnscXmlDomParser/ansc_xml_dom_node_base.c

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'IETF' license found in local file 'source/util_api/ansc/AnscXmlDomParser/ansc_xml_dom_node_base.c' (Match: rdkb/components/opensource/ccsp/CcspCommonLibrary/rdkb/components/opensource/ccsp/CcspCommonLibrary/2101, 373 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/CcspCommonLibrary/+archive/rdk-dev-2101.tar.gz, file: source/util_api/ansc/AnscXmlDomParser/ansc_xml_dom_node_base.c)
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
Expand Down Expand Up @@ -253,17 +253,9 @@
{
AnscXmlWarning
(
#ifdef _64BIT_ARCH_SUPPORT_
"The child node queue of XML node '%s' is corrupted.cookie1= %p\n",
#else
"The child node queue of XML node '%s' is corrupted.cookie1= 0x%.8X\n",
#endif
(char *)pXmlNode->ChildNodeQueueLock,
#ifdef _64BIT_ARCH_SUPPORT_
(void*)pNameAttr->StringData
#else
(unsigned int)pNameAttr->StringData
#endif
);
}

Expand All @@ -278,30 +270,17 @@
{
AnscXmlWarning
(
#ifdef _64BIT_ARCH_SUPPORT_
"The child node queue of XML node is corrupted. cookie2= %p\n",
(void*)pXmlNode->AttributesListLock
#else
"The child node queue of XML node is corrupted. cookie2= 0x%.8X\n",
(unsigned int)pXmlNode->AttributesListLock
#endif
);
}
else
{
AnscXmlWarning
(
#ifdef _64BIT_ARCH_SUPPORT_
"The child node queue of XML node '%s' is corrupted.cookie2= %p\n",
#else
"The child node queue of XML node '%s' is corrupted.cookie2= 0x%.8X\n",
#endif
(char *)pXmlNode->AttributesListLock,
#ifdef _64BIT_ARCH_SUPPORT_
(void*)pNameAttr->StringData
#else
(unsigned int)pNameAttr->StringData
#endif
);
}

Expand Down
Loading
Loading