Commit 4a229729 authored by Michael Niedermayer's avatar Michael Niedermayer

qt-faststart: check return of ftello()

Fixes CID739863
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ed680851
......@@ -137,11 +137,11 @@ int main(int argc, char *argv[])
goto error_out;
}
if ( fseeko(infile, -ATOM_PREAMBLE_SIZE, SEEK_CUR)
|| fread(ftyp_atom, atom_size, 1, infile) != 1) {
|| fread(ftyp_atom, atom_size, 1, infile) != 1
|| (start_offset = ftello(infile))<0) {
perror(argv[1]);
goto error_out;
}
start_offset = ftello(infile);
} else {
int ret;
/* 64-bit special case */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment