riff-media: Don't recurse in for nested WAVEFORMATEX
authorSebastian Dröge <sebastian@centricular.com>
Sun, 15 Jan 2017 17:42:34 +0000 (18:42 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 18 Jan 2017 11:11:07 +0000 (13:11 +0200)
commitef55c8a6b7ca746b2d1b55129a404eb5f58cf140
tree9f9fca5e424ee37709189271aab4d5a9166e8329
parent54bf10427402c9ac046ea694e6b48d3d976d55e1
riff-media: Don't recurse in for nested WAVEFORMATEX

There was already a check for that, but it failed because
subformat_guid[0] is a guint32 and that is then casted implicitely to a
guint16 when recursing... just that we checked the uncasted value.

This caused an infinite recursion and thus stack overflow.

https://bugzilla.gnome.org/show_bug.cgi?id=777265
gst-libs/gst/riff/riff-media.c