gstmeta: intern registered impl string
authorMathieu Duponchelle <mathieu@centricular.com>
Wed, 16 Sep 2020 00:16:52 +0000 (02:16 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 18 Sep 2020 17:31:22 +0000 (17:31 +0000)
commit3393b456e47f634cf571c647285611adf34a6d9f
treee42070bb99f6143d7f5b4762c10e6646012f616b
parentf26a9ebafb8c6d40b411fe5a412a4d463b26c8ae
gstmeta: intern registered impl string

Subsequent lookups in the hashtable are probably better done
on memory we're confident is allocated to us :)

It was easy to trigger invalid reads by calling gst_meta_register
with dynamically allocated memory, freeing that memory, then
calling gst_meta_get_info()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/628>
gst/gstmeta.c