---
** [tickets:#1028] osaf: String pointer inside SaNameT not detected by
Valgrind**
**Status:** accepted
**Milestone:** 4.5.0
**Created:** Thu Aug 28, 2014 09:56 AM UTC by Anders Widell
**Last Updated:** Thu Aug 28, 2014 09:56 AM UTC
**Owner:** Anders Widell
The string pointer stored inside the SaNameT structure for long DNs (longer
than 255 bytes) is not detected by Valgrind, since it is not stored on an
aligned address. This has the effect that allocated memory may be reported as
"definitely lost" rather than "still reachable" by the Valgrind memory leak
detection.
The fix is to store the pointer at an aligned address. It will only work when
the SaNameT structure itself is stored at an aligned address (which is not
guaranteed since it contains nothing larger than an 16-bit integer), but it
should work in most cases anyhow.
---
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.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets