- **Type**: defect --> enhancement
---
** [tickets:#241] cpsv : saCkptCheckpointOpen writes to const SaNameT**
**Status:** assigned
**Milestone:** future
**Created:** Thu May 16, 2013 06:28 AM UTC by A V Mahesh (AVM)
**Last Updated:** Thu May 16, 2013 06:28 AM UTC
**Owner:** A V Mahesh (AVM)
from http://devel.opensaf.org/ticket/1731
Problem:
osaf/libs/agents/saf/cpa/cpa_api.c line 648 :
m_CPSV_SET_SANAMET(checkpointName);
However, checkpointName is: const SaNameT *checkpointName
and m_CPSV_SET_SANAMET does memset( (uns8 *)&name->value[name->length], 0,
(SA_MAX_NAME_LENGTH - name->length) )
This causes a segfault if the value passed in is in read-only memory.
bug is present in opensaf-staging/1057c1e6ebba I'm not sure what version that
is.
Example:
#define CKPT_NAME "safCkpt=My_Ckpt,safApp=safCkptService"
const SaNameT ckpt_name = { sizeof(CKPT_NAME) - 1, CKPT_NAME };
Then call saCkptCheckpointOpen on it
---
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