glshader: don't read invalid list pointers (use after free)
authorMatthew Waters <matthew@centricular.com>
Fri, 13 Nov 2015 05:50:22 +0000 (16:50 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 13 Nov 2015 06:00:46 +0000 (17:00 +1100)
commitbabd066b894fc3694693a2abb3cd0d8c6a66992e
tree462be3dc4d046f873f8a6dec4c64e2171a17650b
parente940d8875d01210ecc6ac280d5a91a6856bcb8f2
glshader: don't read invalid list pointers (use after free)

gst_gl_shader_detach_unlocked already removes the list entry so attempting to
use the element to iterate to the next stage could read invalid data.

Based on patch by Vineeth TM <vineeth.tm@samsung.com>

https://bugzilla.gnome.org/show_bug.cgi?id=758039
gst-libs/gst/gl/gstglshader.c