- Description has changed:
Diff:
~~~~
--- old
+++ new
@@ -1,17 +1,42 @@
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/common/ntfsv_enc_dec.c:395:16:
Array access (from variable 'value') results in a null pointer dereference
[core.NullDereference]
+[HIGH] /opensaf-code/src/ntf/common/ntfsv_mem.c:552:8: Null pointer passed to
1st parameter expecting 'nonnull' [core.NonNullParamChecker]
+ (void)strncpy(dest->additionalText, src->additionalText,
+ ^
+[HIGH] /opensaf-code/src/ntf/ntfd/ntfs_mbcsv.c:1325:33: Dereference of
undefined pointer value [core.NullDereference]
+ notificationLoggedConfirmed(*header->notificationId);
+ ^
+[HIGH] /opensaf-code/src/ntf/ntfd/ntfs_mbcsv.c:1325:33: variable 'header' may
be uninitialized when used here [clang-diagnostic-conditional-uninitialized]
+ notificationLoggedConfirmed(*header->notificationId);
+ ^
+[HIGH] /opensaf-code/src/ntf/ntfd/NtfLogger.cc:198:9: Null pointer passed to
2nd parameter expecting 'nonnull' [core.NonNullParamChecker]
+ (void)strncpy(addTextBuf, (SaStringT)ntfHeader->additionalText,
+ ^
+
+[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:865:7: Dereference of null
pointer (loaded from field 'notificationId')
+[core.NullDereference]
+ *(myAlarmNotification.notificationHeader.notificationId);
+ ^
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/tools/ntfsend.c:865:7: Dereference
of null pointer (loaded from field 'notificationId') [core.NullDereference]
+[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:898:11: Dereference of null
pointer (loaded from field 'notificationId')
+ [core.NullDereference]
+ ntfId = *(myStateChangeNotification.notificationHeader
+ ^
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/tools/ntfsend.c:898:11: Dereference
of null pointer (loaded from field 'notificationId') [core.NullDereference]
+[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:933:11: Dereference of null
pointer (loaded from field 'notificationId')
+ [core.NullDereference]
+ ntfId = *(myObjectCreateDeleteNotification.notificationHeader
+ ^
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/tools/ntfsend.c:933:11: Dereference
of null pointer (loaded from field 'notificationId') [core.NullDereference]
+[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:967:11: Dereference of null
pointer (loaded from field 'notificationId')
+ [core.NullDereference]
+ ntfId = *(myAttributeChangeNotification.notificationHeader
+ ^
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/tools/ntfsend.c:967:11: Dereference
of null pointer (loaded from field 'notificationId') [core.NullDereference]
+[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:1001:11: Dereference of null
pointer (loaded from field 'notificationId'
+) [core.NullDereference]
+ ntfId = *(mySecurityAlarmNotification.notificationHeader
+ ^
+[HIGH] /opensaf-code/src/ntf/common/ntfsv_enc_dec.c:395:16: Array access (from
variable 'value') results in a null po
+inter dereference [core.NullDereference]
+ value[length] = '\0';
+ ^
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/tools/ntfsend.c:1001:11:
Dereference of null pointer (loaded from field 'notificationId')
[core.NullDereference]
-
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/common/ntfsv_mem.c:552:8: Null
pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker]
-
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/ntfd/NtfLogger.cc:198:9: Null
pointer passed to 2nd parameter expecting 'nonnull' [core.NonNullParamChecker]
-
-[HIGH] /home/ubuntu20/opensaf-code/src/ntf/ntfd/ntfs_mbcsv.c:1325:33: variable
'header' may be uninitialized when used here
[clang-diagnostic-conditional-uninitialized]
~~~~
---
**[tickets:#3377] ntf: coding issues identified by codechecker**
**Status:** assigned
**Milestone:** 5.25.09
**Created:** Fri Jun 20, 2025 05:42 AM UTC by Khuong Ba Le
**Last Updated:** Fri Jun 20, 2025 07:56 AM UTC
**Owner:** Khuong Ba Le
[HIGH] /opensaf-code/src/ntf/common/ntfsv_mem.c:552:8: Null pointer passed to
1st parameter expecting 'nonnull' [core.NonNullParamChecker]
(void)strncpy(dest->additionalText, src->additionalText,
^
[HIGH] /opensaf-code/src/ntf/ntfd/ntfs_mbcsv.c:1325:33: Dereference of
undefined pointer value [core.NullDereference]
notificationLoggedConfirmed(*header->notificationId);
^
[HIGH] /opensaf-code/src/ntf/ntfd/ntfs_mbcsv.c:1325:33: variable 'header' may
be uninitialized when used here [clang-diagnostic-conditional-uninitialized]
notificationLoggedConfirmed(*header->notificationId);
^
[HIGH] /opensaf-code/src/ntf/ntfd/NtfLogger.cc:198:9: Null pointer passed to
2nd parameter expecting 'nonnull' [core.NonNullParamChecker]
(void)strncpy(addTextBuf, (SaStringT)ntfHeader->additionalText,
^
[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:865:7: Dereference of null pointer
(loaded from field 'notificationId')
[core.NullDereference]
*(myAlarmNotification.notificationHeader.notificationId);
^
[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:898:11: Dereference of null
pointer (loaded from field 'notificationId')
[core.NullDereference]
ntfId = *(myStateChangeNotification.notificationHeader
^
[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:933:11: Dereference of null
pointer (loaded from field 'notificationId')
[core.NullDereference]
ntfId = *(myObjectCreateDeleteNotification.notificationHeader
^
[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:967:11: Dereference of null
pointer (loaded from field 'notificationId')
[core.NullDereference]
ntfId = *(myAttributeChangeNotification.notificationHeader
^
[HIGH] /opensaf-code/src/ntf/tools/ntfsend.c:1001:11: Dereference of null
pointer (loaded from field 'notificationId'
) [core.NullDereference]
ntfId = *(mySecurityAlarmNotification.notificationHeader
^
[HIGH] /opensaf-code/src/ntf/common/ntfsv_enc_dec.c:395:16: Array access (from
variable 'value') results in a null po
inter dereference [core.NullDereference]
value[length] = '\0';
^
---
Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets