< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] SdpContents::getBodyData() returns stack pointer


The Data is returned by value (in head version), so should be copied.

If you are having problems with it, it suggests an issue with the
memory management underlying Data. This is unlikely, but not
impossible.

Do you have a test case?

david

On 12/27/06, Will McKinley <wmckinle@xxxxxxxxx> wrote:
SdpContents::getBodyData() creates a Data object on the stack and attempts
to return it.  This fails at runtime and points to nowhere.  Perhaps this
method needs to be redefined so that the caller passes in a reference to a
Data object that is filled in by the session encoding?

Thanks for your help.

Will McKinley
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel