subparse: Don't read beyond array
authorEdward Hervey <edward@centricular.com>
Wed, 30 May 2018 09:39:40 +0000 (11:39 +0200)
committereunhae choi <eunhae1.choi@samsung.com>
Tue, 23 Oct 2018 08:28:14 +0000 (08:28 +0000)
commit2686a0b61c2cb282d3e9d3bbadac42adde4903eb
tree7d3360e7743d9db48d382afddeab4e9a1f8549d9
parent27f0b6835d5a798fbe976fba9d192afecf1b9e8a
subparse: Don't read beyond array

- This is from upstream.
- If num_open_tags is 0, we shouldn't try to get the "last" open tag
since there isn't any.

Change-Id: I097101c435637e35961877809faaa6641f5ff441
gst/subparse/gstsubparse.c