glsl: fix possible string overrun in gst_glsl_version_profile_from_string
authorVineeth TM <vineeth.tm@samsung.com>
Fri, 13 Nov 2015 01:41:58 +0000 (10:41 +0900)
committerMatthew Waters <matthew@centricular.com>
Fri, 13 Nov 2015 06:00:46 +0000 (17:00 +1100)
commit6eae0c7e189f69c71cc3b0cf00e4fcdec172a13e
tree08b8697aeca825d35899ebf953f1db0fe09c8a70
parentbabd066b894fc3694693a2abb3cd0d8c6a66992e
glsl: fix possible string overrun in gst_glsl_version_profile_from_string

given a NULL-terminated string, s.
s[i] = '\0';
i++;
does not guarentee that s[i] is NULL terminated and thus string operations
could read off the end of the array.

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