mirror of
https://github.com/mirror/wget.git
synced 2025-03-25 01:00:13 +08:00
* src/warc.c (warc_write_end_record): Check return value of fseeko (Coverity #1419657)
This commit is contained in:
parent
08aa947c9d
commit
4e519f5a80
@ -357,8 +357,13 @@ warc_write_end_record (void)
|
||||
compressed_size = warc_current_gzfile_uncompressed_size;
|
||||
|
||||
/* Go back to the static GZIP header. */
|
||||
fseeko (warc_current_file, warc_current_gzfile_offset
|
||||
result = fseeko (warc_current_file, warc_current_gzfile_offset
|
||||
+ EXTRA_GZIP_HEADER_SIZE, SEEK_SET);
|
||||
if (result != 0)
|
||||
{
|
||||
warc_write_ok = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Read the header. */
|
||||
result = fread (static_header, 1, GZIP_STATIC_HEADER_SIZE,
|
||||
|
Loading…
Reference in New Issue
Block a user