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:
6082f27
)
matroskamux: fix possible crash with malformed dirac codec_data
author
René Stadler
<rene.stadler@collabora.co.uk>
Tue, 11 Oct 2011 20:10:27 +0000
(22:10 +0200)
committer
René Stadler
<rene.stadler@collabora.co.uk>
Fri, 21 Oct 2011 20:41:57 +0000
(22:41 +0200)
Since size is unsigned, we need to safeguard against wrapping below zero.
gst/matroska/matroska-mux.c
patch
|
blob
|
history
diff --git
a/gst/matroska/matroska-mux.c
b/gst/matroska/matroska-mux.c
index
b0ff579
..
5204b39
100644
(file)
--- a/
gst/matroska/matroska-mux.c
+++ b/
gst/matroska/matroska-mux.c
@@
-2594,7
+2594,7
@@
gst_matroska_mux_handle_dirac_packet (GstMatroskaMux * mux,
next_parse_offset = GST_READ_UINT32_BE (data + 5);
- if (G_UNLIKELY (next_parse_offset == 0))
+ if (G_UNLIKELY (next_parse_offset == 0
|| next_parse_offset > size
))
break;
data += next_parse_offset;