From b344b29ff20e5a5da64bc4db14b86275568a7226 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 16 Apr 2014 16:28:49 +0100 Subject: [PATCH] isomp4: catch fseek error Coverity 206028 --- gst/isomp4/atomsrecovery.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/atomsrecovery.c b/gst/isomp4/atomsrecovery.c index e3459c91dc..fec76a37d7 100644 --- a/gst/isomp4/atomsrecovery.c +++ b/gst/isomp4/atomsrecovery.c @@ -481,7 +481,8 @@ moov_recov_parse_tkhd (MoovRecovFile * moovrf, TrakRecovData * trakrd) return FALSE; /* advance the rest of tkhd */ - fseek (moovrf->file, 68, SEEK_CUR); + if (fseek (moovrf->file, 68, SEEK_CUR) != 0) + return FALSE; trakrd->trak_id = GST_READ_UINT32_BE (data); return TRUE;