summaryrefslogtreecommitdiffstats
path: root/demux/ebml.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-04-12 17:25:51 +0200
committerwm4 <wm4@nowhere>2013-04-20 23:28:22 +0200
commit9f21c81633504696fc68a8ca94465460c54c5243 (patch)
tree5207cc97fb52796556132edfee5f1e351c9aaa86 /demux/ebml.h
parentc951010a261c4d615a7083f91e95771d8e98a8cd (diff)
downloadmpv-9f21c81633504696fc68a8ca94465460c54c5243.tar.bz2
mpv-9f21c81633504696fc68a8ca94465460c54c5243.tar.xz
demux_mkv: use a bounded buffer for block data
Should help avoiding out-of-bounds reads.
Diffstat (limited to 'demux/ebml.h')
-rw-r--r--demux/ebml.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/demux/ebml.h b/demux/ebml.h
index be8573817a..3f8bad0f92 100644
--- a/demux/ebml.h
+++ b/demux/ebml.h
@@ -90,8 +90,8 @@ struct ebml_parse_ctx {
uint32_t ebml_read_id (stream_t *s, int *length);
-uint64_t ebml_read_vlen_uint (uint8_t *buffer, int *length);
-int64_t ebml_read_vlen_int (uint8_t *buffer, int *length);
+uint64_t ebml_read_vlen_uint (bstr *buffer);
+int64_t ebml_read_vlen_int (bstr *buffer);
uint64_t ebml_read_length (stream_t *s, int *length);
uint64_t ebml_read_uint (stream_t *s, uint64_t *length);
int64_t ebml_read_int (stream_t *s, uint64_t *length);