You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux and FreeBSD, while reading a specific "RAR archive data, v4, os: Win32" file, and while not reading all data in all files (hence skipping over with archive_read_data_skip). When reaching a specific file in a archive this crash occurres.
Important! If not skipping file < 141, and reading all data, it does not crash
Backtrace:
Program received signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0x00000008004b621f in memcpy () from /lib/libc.so.7
(gdb) bt
#0 0x00000008004b621f in memcpy () from /lib/libc.so.7
#1 0x00000008002db819 in copy_from_lzss_window_to_unp (a=0x80121a000, buffer=0x7fffffffe988, startpos=1280, length=-855)
at /build/libarchive/libarchive/archive_read_support_format_rar.c:3102
#2 0x00000008002db642 in read_data_compressed (a=0x80121a000, buff=0x7fffffffe988, size=0x7fffffffe980, offset=0x7fffffffe978, looper=1)
at /build/libarchive/libarchive/archive_read_support_format_rar.c:2204
#3 0x00000008002d8417 in archive_read_format_rar_read_data (a=0x80121a000, buff=0x7fffffffe988, size=0x7fffffffe980, offset=0x7fffffffe978)
at /build/libarchive/libarchive/archive_read_support_format_rar.c:1130
#4 0x00000008002a1a82 in _archive_read_data_block (_a=0x80121a000, buff=0x7fffffffe988, size=0x7fffffffe980, offset=0x7fffffffe978)
at /build/libarchive/libarchive/archive_read.c:986
#5 0x00000008003090f6 in archive_read_data_block (a=0x80121a000, buff=0x7fffffffe988, s=0x7fffffffe980, o=0x7fffffffe978) at /build/libarchive/libarchive/archive_virtual.c:161
#6 0x0000000000201c83 in main ()
On Linux and FreeBSD, while reading a specific "RAR archive data, v4, os: Win32" file, and while not reading all data in all files (hence skipping over with archive_read_data_skip). When reaching a specific file in a archive this crash occurres.
Important! If not skipping file < 141, and reading all data, it does not crash
Backtrace:
libarchive/libarchive/archive_read_support_format_rar.c
Lines 2183 to 2185 in 9ba8292
This expand() make the end go from
start = 1280 end = 1792
to
start = 1280 end = 425
Explaining the length=-855 from the gdb backtrace
The text was updated successfully, but these errors were encountered: