#756530 "unrar-free: Segfaults extracting an unsupported file"

Package:
unrar-free
Source:
unrar-free
Description:
Unarchiver for .rar files
Submitter:
Torsti Schulz
Date:
2014-07-30 17:30:26 UTC
Severity:
normal
#756530#5
Date:
2011-01-21 15:15:13 UTC
From:
To:
When trying to open or extract rar-archives that are not supported by unrar-
free while using unrar-free to provide /usr/bin/unrar Ark crashes. This
behaviour is not observed when either opening rar-archives that unrar-free can
extract or when using unrar-nonfree to provide /usr/bin/unrar.

What happens when you try to use unrar-free:

$ unrar --extract file.rar

Extracting from ~/file.rar

Extracting  archive.content                                     Failed

1 Failed

Opening the same file with ark leads to a crash.

$ gdb ark
GNU gdb (GDB) 7.0.1-debian
[...]
This GDB was configured as "i486-linux-gnu".
[...]
Reading symbols from /usr/bin/ark...(no debugging symbols found)...done.
(gdb) run file.rar
Starting program: /usr/bin/ark file.rar
[Thread debugging using libthread_db enabled]
[New Thread 0xb389cb70 (LWP 11334)]
[New Thread 0xb2effb70 (LWP 11335)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb389cb70 (LWP 11334)]
0xb6a2b8d5 in QDateTimeParser::fromString(QString const&, QDate*, QTime*) const
() from /usr/lib/libQtCore.so.4

There are no errors when opening files that unrar manages to extract or when
using unrar-nonfree.

It would be preferable for ark to give an error message stating that it cannot
open or extract the archive and if possible explain in the message that this is
due to the version of unrar being used.

#756530#10
Date:
2014-07-30 17:29:25 UTC
From:
To:
Hi,

I can't reproduce the issue with the current sid version of ark.

What I tested:
I searched a random rar file on the web [1], and it caused unrar-free to
segfault, the unrar command points to unrar-free. Using ark, it lists the
content but can't extract the file (no error is shown).

I tested rar file [2], and unrar-free fails to uncompress it (without
segfaults), using ark, has the same behavior as before, doesn't extract,
no error message is shown, but in any case, no crashes.

So, the free rar support works badly, that's granted, but none of this seems
to be the issue described by the submitter.

Please, if you can still reproduce the issue provide a small rar file to test
it.

The files I'm testing it with are:
[1]: http://sunsite.univie.ac.at/musicres/thammer/HammerSound/localfiles/soundfonts/Male_oohs.rar
and:
[2]: https://github.com/dolphin-emu/dolphin/raw/master/docs/WiiMote/HID_SPEC_V10.rar

Happy hacking,