archive-libarchive: Fix explosion in RAR decompression
In some cases, libarchive does not initialize the offset
attribute
to archive_read_data_block
for RAR5, often causing _g_output_stream_add_padding
to write up to exabytes of padding to extracted file, to reach the random
unitialized value in int64_t target_offset
.
This will be fixed by https://github.com/libarchive/libarchive/pull/1745 but until a new version is released and widely available, let’s initialize the value ourselves.
Fixes: #46 (closed)