[Bug 788548] Function parameter assigned the address of a local auto-variable in function id3v2_frames_to_tag_list

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 6 07:21:47 UTC 2017


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

--- Comment #7 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
I'm not in favour of this, sorry. It causes extra overhead without actually
improving anything, it just makes your code checker happy. We still have an
invalid (freed) pointer in the Works structure in the end.

If we want to make sure that the local memory isn't accessed after it goes
away, we should set the field in the Works structure to NULL instead.

-- 
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