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:
378a5b9
)
ffm_read_write_index: check lseek return code
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:24:47 +0000
(20:24 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:35:16 +0000
(20:35 +0200)
Fixes CID732184
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
bab40a3
..
c8f9cec
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-333,7
+333,8
@@
static int64_t ffm_read_write_index(int fd)
{
uint8_t buf[8];
- lseek(fd, 8, SEEK_SET);
+ if (lseek(fd, 8, SEEK_SET) < 0)
+ return AVERROR(EIO);
if (read(fd, buf, 8) != 8)
return AVERROR(EIO);
return AV_RB64(buf);