- **Type**: defect --> enhancement
---
** [tickets:#1324] LOG: API cannot handle stream names that are not '\0'
terminated**
**Status:** unassigned
**Milestone:** 5.0
**Created:** Tue Apr 21, 2015 11:52 AM UTC by elunlen
**Last Updated:** Tue Apr 21, 2015 11:52 AM UTC
**Owner:** nobody
The in parameter for stream name is SaNameT and according to AIS sucha a name
string does not have to be '\0' terminated but if not the log API vill fail
verification.
/* Check log stream input parameters */
/* The well known log streams */
if (strcmp((char *)logStreamName->value, SA_LOG_STREAM_ALARM) == 0 ||
strcmp((char *)logStreamName->value, SA_LOG_STREAM_NOTIFICATION) ==
0 ||
strcmp((char *)logStreamName->value, SA_LOG_STREAM_SYSTEM) == 0) {
/* SA_AIS_ERR_INVALID_PARAM, bullet 3 in SAI-AIS-LOG-A.02.01
Section 3.6.1, Return Values */
The finction strcmp requires that the logStreamName->value is a '\0' terminated
string!
See function validate_open_params(...) in lga_api.c
---
Sent from sourceforge.net because [email protected] 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.------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets