[Bug 796692] sample/bufferlist/buffer: Non-writable container miniobjects allow writable access to their contents, causing memory problems

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jun 29 18:05:28 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796692

--- Comment #24 from Nicolas Dufresne (ndufresne) <nicolas at ndufresne.ca> ---
I didn't want to propose it, but we are pretty stuck. We could steal qdata
pointer, allocate an array of two.

  qdata = g_new (GstQData, 2);

Use qdata[0].data as out private pointer, and qdata[1].data as our qdata
storage. Or something along these lines ... not great. From there, we could add
a new function callback (ref callback), or implement your parenting design,
which seems more lightweight.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list