[Bug 758039] gstgl: fix memory leaks and memory mishandlings

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Nov 12 17:44:01 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=758039

--- Comment #1 from Vineeth <vineeth.tm at samsung.com> ---
Created attachment 315379
  --> https://bugzilla.gnome.org/attachment.cgi?id=315379&action=edit
glsl: fix wrong memory access

trying to access string location which does not exist.

==3492== Invalid read of size 1
==3492==    at 0x402F3E8: strlen (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==3492==    by 0x425035F: g_strchomp (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==3492==    by 0x4056F3E: gst_glsl_version_profile_from_string (gstglsl.c:279)
==3492==    by 0x8049109: test_serialization (gstglsl.c:284)
==3492==    by 0x409CBAA: srunner_run (check_run.c:450)
==3492==    by 0x409CC62: srunner_run_all (check_run.c:674)
==3492==    by 0x408FA97: gst_check_run_suite (gstcheck.c:825)
==3492==    by 0x8048BEC: main (gstglsl.c:308)
==3492==  Address 0x514642c is 0 bytes after a block of size 4 alloc'd
==3492==    at 0x402C17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==3492==    by 0x4236BE2: g_malloc (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==3492==    by 0x424EE1C: g_strdup (in
/lib/i386-linux-gnu/libglib-2.0.so.0.4002.0)
==3492==    by 0x4056E75: gst_glsl_version_profile_from_string (gstglsl.c:255)
==3492==    by 0x8049109: test_serialization (gstglsl.c:284)
==3492==    by 0x409CBAA: srunner_run (check_run.c:450)
==3492==    by 0x409CC62: srunner_run_all (check_run.c:674)
==3492==    by 0x408FA97: gst_check_run_suite (gstcheck.c:825)
==3492==    by 0x8048BEC: main (gstglsl.c:308)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list