From ea4e9fc2d4904117255c80c0b832253fb31d4f7a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 27 Mar 2017 11:43:31 +0300 Subject: [PATCH] atomsrecovery: Error out when fseek() fails instead of silently ignoring CID 1403262 --- gst/isomp4/atomsrecovery.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gst/isomp4/atomsrecovery.c b/gst/isomp4/atomsrecovery.c index fe46ce5..24bc31c 100644 --- a/gst/isomp4/atomsrecovery.c +++ b/gst/isomp4/atomsrecovery.c @@ -673,8 +673,11 @@ moov_recov_parse_trak (MoovRecovFile * moovrf, TrakRecovData * trakrd) if (!moov_recov_parse_mdia (moovrf, trakrd)) return FALSE; - fseek (moovrf->file, (long int) trakrd->mdia_file_offset + trakrd->mdia_size, - SEEK_SET); + if (fseek (moovrf->file, + (long int) trakrd->mdia_file_offset + trakrd->mdia_size, + SEEK_SET) != 0) + return FALSE; + trakrd->extra_atoms_offset = ftell (moovrf->file); trakrd->extra_atoms_size = size - (trakrd->extra_atoms_offset - offset); -- 2.7.4