UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
jiangzhenjerry
Junior Member
Junior Member
Posts: 58
Joined: 2016-01-15, 23:57 UTC

UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *jiangzhenjerry »

This issue is similar to my earlier report (which has been fixed).

Basically, I use UnRAR64.dll v7.00b1 (can be found here) to replace the bundled file (v6.24) in TC. Turns out it doesn't work. Whenever I click into an .rar file, TC quits.

I don't know if it's a future compatibility issue or a WinRAR bug... Any insights would be helpful and appreciated.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *Horst.Epp »

I have replaced all unrar*.* files with the new 7.0.1 versions from
https://www.rarlab.com/rar_add.htm
TC X64 works fine with them.
32bit TC doesn't work.
But we are talking about beta versions of WinRAR !
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *ghisler(Author) »

I can confirm that the DLL crashes within a call to RARReadHeaderEx, it tries to write to address 0x0000000D.
I will contact the RAR author.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *ghisler(Author) »

I was able to find the reason with some help from the RAR author: He added new fields to the end of the structure passed to RARReadHeaderEx which Total Commander wasn't initializing to zero by mistake. Therefore the dll tried to write to a non-existant buffer. I will support the new dll in TC11.02, but unfortunately this means that it will never work in older versions, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *ghisler(Author) »

This should be fixed in RC5, please test!
26.10.23 Fixed: Unrar.dll 7.0 beta was crashing when called from Total Commander (because it was using uninitialized fields in RARHeaderDataEx) (32/64)
Author of Total Commander
https://www.ghisler.com
jiangzhenjerry
Junior Member
Junior Member
Posts: 58
Joined: 2016-01-15, 23:57 UTC

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *jiangzhenjerry »

Confirmed fixed in RC5. Thank you very much! Actually WinRAR has also fixed it on their end. Their latest build (same link but digitally signed on 10/30) can work even with TC11 RC4 too.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6498
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *Horst.Epp »

Fix confirmed.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: UnRAR.dll/UnRAR64.dll v7.00b1 isn't compatible with TC11

Post by *ghisler(Author) »

Actually WinRAR has also fixed it on their end.
That's great, I didn't expect that they would add a workaround to a bug in TC...
Author of Total Commander
https://www.ghisler.com
Post Reply