- **status**: review --> fixed
- **assigned_to**: Nguyen TK Luu -->  nobody 
- **Comment**:

changeset:   8644:fed697ef2a86
tag:         tip
parent:      8641:de2260ab6ad4
user:        Nguyen TK Luu <nguyen.tk....@dektech.com.au>
date:        Fri Mar 03 14:09:59 2017 +0700
summary:     osaf: fix saflog to handle long log record [#2313]

changeset:   8643:64e57b58e63a
branch:      opensaf-5.1.x
parent:      8639:585152820f91
user:        Nguyen TK Luu <nguyen.tk....@dektech.com.au>
date:        Fri Mar 03 14:08:01 2017 +0700
summary:     osaf: fix saflog to handle long log record [#2313]

changeset:   8642:678a5e2a2895
branch:      opensaf-5.0.x
parent:      8638:b75ec8c8c2f3
user:        Nguyen TK Luu <nguyen.tk....@dektech.com.au>
date:        Fri Mar 03 14:08:01 2017 +0700
summary:     osaf: fix saflog to handle long log record [#2313]




---

** [tickets:#2313] osaf: saflog function does not handle long record**

**Status:** fixed
**Milestone:** 5.0.2
**Created:** Fri Feb 17, 2017 06:45 AM UTC by Vu Minh Nguyen
**Last Updated:** Thu Feb 23, 2017 04:04 AM UTC
**Owner:** nobody


`saflog` is a utility function provided for other OpenSAF services to write an 
log record to OpenSAF LOG.
The `logBuf` in that function is only limited to 255 bytes.

So, if writing an log record more than 255 bytes, the log record will be 
truncated and `logBufSize` will hold the string length of the log record it 
would have been written to. As the result, it leads to incosistence in 
`logBufSize` and `logBuf`, eventually getting `SA_AIS_INVALID_PARAM`.

So, to solve the problem, `logBuf` capacity should be extended to maximum log 
record size (65Kb) so that it can avoid log record truncation.


---

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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to