[Bug 707972] New: flacparse will crash on tryin to play this sample
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Sep 12 06:16:25 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=707972
GStreamer | gst-plugins-good | 0.10.x
Summary: flacparse will crash on tryin to play this sample
Classification: Platform
Product: GStreamer
Version: 0.10.x
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: putineiionut at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
flacparse will crash on tryin to play this sample.
This is a patch with my fix to solve this problem:
--- gstflacparse_old-560623c83a7f6568d4d22bbdca1549acdb534435.c 2013-09-03
19:31:56.000000000 +0300
+++ gstflacparse_new-4e34574086c47ee52fde7637df9c6db16f9c8ce8.c 2013-09-10
10:58:20.000000000 +0300
@@ -890,6 +890,7 @@
{
GstByteReader reader = GST_BYTE_READER_INIT_FROM_BUFFER (buffer);
const guint8 *data = GST_BUFFER_DATA (buffer);
+ guint32 buffersize = GST_BUFFER_SIZE(buffer);
guint32 img_len = 0, img_type = 0;
guint32 img_mimetype_len = 0, img_description_len = 0;
@@ -918,8 +919,11 @@
if (!flacparse->tags)
flacparse->tags = gst_tag_list_new ();
+ if((gst_byte_reader_get_pos (&reader) + img_len) <= buffersize)
+ {
gst_tag_list_add_id3_image (flacparse->tags,
data + gst_byte_reader_get_pos (&reader), img_len, img_type);
+ }
if (gst_tag_list_is_empty (flacparse->tags)) {
gst_tag_list_free (flacparse->tags);
@@ -1465,3 +1469,4 @@
return res;
}
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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