summaryrefslogtreecommitdiff
path: root/libavformat/mpc8.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-06-13 06:39:01 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-06-13 06:39:01 +0000
commit8c1ff0abae34f171ba9c2e9319983fc9e163059e (patch)
tree6b0f457961ccf418832505e15197b5ad5c48c9af /libavformat/mpc8.c
parent67fe5089165dd0edbee2b0aa6d8a802a5289fbec (diff)
Allocate a bit more memory for MPC SV8 seek table, so bitreader won't read
beyond allocated block. Originally committed as revision 19181 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpc8.c')
-rw-r--r--libavformat/mpc8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index 1a611f1f9f..687853bcde 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -97,7 +97,7 @@ static void mpc8_parse_seektable(AVFormatContext *s, int64_t off)
av_log(s, AV_LOG_ERROR, "No seek table at given position\n");
return;
}
- if(!(buf = av_malloc(size)))
+ if(!(buf = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE)))
return;
get_buffer(s->pb, buf, size);
init_get_bits(&gb, buf, size * 8);