Skip to content

Add test for xmldsig signedInfo

Siebren Weertman 70cb43f
Codacy Production / Codacy Static Code Analysis required action Feb 26, 2024 in 0s

6 new issues (0 max.) of at least minor severity.

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 6
           

See the complete overview on Codacy

Annotations

Check notice on line 12 in tests/unit/iso20/common/test_sessionSetup.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/iso20/common/test_sessionSetup.cpp#L12

class member 'Test_SessionSetup::m_data' is never used.

Check notice on line 10 in tests/unit/sap/test_supportedAppProtocol.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/sap/test_supportedAppProtocol.cpp#L10

class member 'Test_SupportedAppProtocol::m_data' is never used.

Check notice on line 21 in tests/unit/xmldsig/test_SignedInfo_Fragment.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/xmldsig/test_SignedInfo_Fragment.cpp#L21

The `memcpy` family of functions require the developer to validate that the destination buffer is the same size or larger than the source buffer.

Check notice on line 27 in tests/unit/xmldsig/test_SignedInfo_Fragment.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/xmldsig/test_SignedInfo_Fragment.cpp#L27

The `memcpy` family of functions require the developer to validate that the destination buffer is the same size or larger than the source buffer.

Check warning on line 32 in tests/unit/xmldsig/test_SignedInfo_Fragment.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/xmldsig/test_SignedInfo_Fragment.cpp#L32

The class 'Test_SignedInfo_Fragment_ISO2' defines member function with name 'encode_xmldsigFragment' also defined in its parent class 'Test_SignedInfo_Fragment < iso2_xmldsigFragment >'.

Check warning on line 87 in tests/unit/xmldsig/test_SignedInfo_Fragment.cpp

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

tests/unit/xmldsig/test_SignedInfo_Fragment.cpp#L87

When handling sensitive information in a buffer, it's important to ensure  that the data is securely erased before the buffer is deleted or reused.