OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54c7e81
)
riff: Fix freeing of random value.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 14 Dec 2011 20:23:03 +0000
(21:23 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 14 Dec 2011 20:26:47 +0000
(21:26 +0100)
Fixes Ticket752
Bug-found-by: Diana Elena Muscalu
libavformat/riff.c
patch
|
blob
|
history
diff --git
a/libavformat/riff.c
b/libavformat/riff.c
index
8c4d797
..
ea598d2
100644
(file)
--- a/
libavformat/riff.c
+++ b/
libavformat/riff.c
@@
-715,8
+715,7
@@
int ff_read_riff_info(AVFormatContext *s, int64_t size)
AV_WL32(key, chunk_code);
if (avio_read(pb, value, chunk_size) != chunk_size) {
- av_freep(key);
- av_freep(value);
+ av_freep(&value);
av_log(s, AV_LOG_ERROR, "premature end of file while reading INFO tag\n");
return AVERROR_INVALIDDATA;
}