You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
cws2fws: check fstat return code.
Fixes CID733720 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -62,7 +62,10 @@ int main(int argc, char *argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fstat(fd_in, &statbuf);
|
if (fstat(fd_in, &statbuf) < 0) {
|
||||||
|
perror("fstat failed");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
comp_len = statbuf.st_size;
|
comp_len = statbuf.st_size;
|
||||||
uncomp_len = buf_in[4] | (buf_in[5] << 8) | (buf_in[6] << 16) | (buf_in[7] << 24);
|
uncomp_len = buf_in[4] | (buf_in[5] << 8) | (buf_in[6] << 16) | (buf_in[7] << 24);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user