mpegtsbase: Prevent stack gardening by using the right type
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 28 Jul 2011 22:21:04 +0000 (18:21 -0400)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 1 Aug 2011 07:33:25 +0000 (09:33 +0200)
commitcbc0a2f056aced60c7e8c8be861a18e0743f5af2
tree0583d0a79d92c63cf5f22823665eb752752380b7
parentb6723d092c12cee3c24da8ea94229da9309a1f80
mpegtsbase: Prevent stack gardening by using the right type

stream_type is stored as guint inside the GstStructure but was retreived
using valist with a pointer to guint16. This would cause stack gardening
when code is compiled without optimisation (e.g. in -O0 the compiler wont
pad the stack to optimise out required mask).

https://bugzilla.gnome.org/show_bug.cgi?id=655540
gst/mpegtsdemux/mpegtsbase.c