---

** [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.
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to