OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc04af3
)
fix potential buffer over-read
author
Aurelien Jacobs
<aurel@gnuage.org>
Thu, 8 Nov 2007 20:53:06 +0000
(20:53 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Thu, 8 Nov 2007 20:53:06 +0000
(20:53 +0000)
Originally committed as revision 10966 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpeg.c
patch
|
blob
|
history
diff --git
a/libavformat/mpeg.c
b/libavformat/mpeg.c
index
34168ba
..
076cc8f
100644
(file)
--- a/
libavformat/mpeg.c
+++ b/
libavformat/mpeg.c
@@
-121,7
+121,7
@@
static int mpegps_read_header(AVFormatContext *s,
s->ctx_flags |= AVFMTCTX_NOHEADER;
get_buffer(&s->pb, buffer, sizeof(buffer));
- if ((p=memchr(buffer, 'S', sizeof(buffer))))
+ if ((p=memchr(buffer, 'S', sizeof(buffer)
-5
)))
if (!memcmp(p, "Sofdec", 6))
m->sofdec = 1;
url_fseek(&s->pb, -(offset_t)sizeof(buffer), SEEK_CUR);