projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d9f3c
)
avidemux: Stop reading a ncdt sub-tag if it goes behind the surrounding tag
author
Sebastian Dröge
<sebastian@centricular.com>
Fri, 20 Jan 2017 15:16:10 +0000
(17:16 +0200)
committer
Sebastian Dröge
<sebastian@centricular.com>
Fri, 20 Jan 2017 15:16:10 +0000
(17:16 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=777532
gst/avi/gstavidemux.c
patch
|
blob
|
history
diff --git
a/gst/avi/gstavidemux.c
b/gst/avi/gstavidemux.c
index d7afd1e710af3c27fbcf4ff2d20aec34c893f4e5..3e21dbd5d8b2581a52be3ec877c4fa13d585a60c 100644
(file)
--- a/
gst/avi/gstavidemux.c
+++ b/
gst/avi/gstavidemux.c
@@
-3914,6
+3914,9
@@
gst_avi_demux_parse_ncdt (GstAviDemux * avi, GstBuffer * buf,
ptr += 4;
left -= 4;
+ if (sub_size > tsize)
+ break;
+
GST_DEBUG_OBJECT (avi, "sub-tag %u, size %u", sub_tag, sub_size);
/* http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html#NCTG
* for some reason the sub_tag has a +2 offset