All Versions: Search in archives - size limit bug

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

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
Gral
Power Member
Power Member
Posts: 716
Joined: 2005-01-26, 15:12 UTC

All Versions: Search in archives - size limit bug

Post by *Gral » 2018-09-03, 07:00 UTC

There is a very annoying size limit bug search in archves bug - when search for files 'bigger than'... - set on "Advanced" page, TC cannot find in archive, files of size 2 GB and bigger.
More precisely - TC cannot finds files with size in the range between 2GB up to 4GB + what is set in "File size" field (with "bigger than" operator)
For example, for files bigger than 1 MB, TC didn't finds files in size range:
2 147 483 648 - 4 296 015 872 bytes and every range with added multiple of 4 GB, eg.:
6 442 450 944 - 8 590 983 168 bytes
10 737 418 240 - 12 885 950 464 bytes and so on.
Note: when searching for files with size = 1 MB, TC finds files with size n * 4 GB + 1 MB.
(in my example archive - 3 files with "bug" extension)
When searching for files larger than 2GB, TC does not find ANY files (it's logical).

Here is content of testing archive file - "fake" archive for "DiskDir" packer plugin (or "DiskDirExtended" or "DiskDirW (Unicode)")
For testing purpose name of file is identical as size in bytes, while extensions indicates state - ok or bug.
Without set size condition all files are "findable", with size set "bigger than 1 MB only "ok" files.
Note that you need latest version of DiskDir, as a older versions has bug for files bigger than 2GB, but with TC bug, any version is almost useless for searching big files.
Of course, bug occurs for "real" archive too, i tested it for ZIP, RAR and 7Z files.

Code: Select all

2147483647.ok	2147483647	2018.8.8	0:0.0
2147483648.bug	2147483648	2018.8.8	0:0.0
4296015872.bug	4296015872	2018.8.8	0:0.0
4296015873.ok	4296015873	2018.8.8	0:0.0
6442450943.ok	6442450943	2018.8.8	0:0.0
6442450944.bug	6442450944	2018.8.8	0:0.0
8590983168.bug	8590983168	2018.8.8	0:0.0
8590983169.ok	8590983169	2018.8.8	0:0.0
10737418239.ok	10737418239	2018.8.8	0:0.0
10737418240.bug	10737418240	2018.8.8	0:0.0
12885950464.bug	12885950464	2018.8.8	0:0.0
12885950465.ok	12885950465	2018.8.8	0:0.0
Some files on my external USB disks are 40 GB or bigger, biggest one is 120 GB (images of hard disk)
Image of DVD disc can be larger than 8 GB.
Sometime i need search LST archives for find desired files before plug device.
With such a bug, the search results are unpredictable and unreliable.

User avatar
Usher
Senior Member
Senior Member
Posts: 475
Joined: 2011-03-11, 10:11 UTC

Re: All Versions: Search in archives - size limit bug

Post by *Usher » 2018-09-03, 09:52 UTC

2Gral

It looks like there is 32-bit signed number used for file size there. For file size between 2 and 4 GiB the number is negative (file is ignored), and all sizes are taken modulo 4 GiB (which explains your note "when searching for files with size = 1 MB, TC finds files with size n * 4 GB + 1 MB").

Did you check both 32- and 64-bit TC versions? For 64-bit compiler some data types with the same name can have more bits than for 32-bit one.
Regards from Poland
Andrzej P. Wozniak

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: All Versions: Search in archives - size limit bug

Post by *ghisler(Author) » 2018-09-03, 14:20 UTC

I will check it, thanks. Currently I don't have any archives with such big files inside, so I will have to create one first.
Author of Total Commander
http://www.ghisler.com

User avatar
Gral
Power Member
Power Member
Posts: 716
Joined: 2005-01-26, 15:12 UTC

Re: All Versions: Search in archives - size limit bug

Post by *Gral » 2018-09-03, 16:18 UTC

2 Usher
The nature of this bug is rather obvious. Not obvious is its existence, as no one reported it, and the author does not seem to know about this.
And yes - x64 version is affected too.

2 ghisler(Author)
I think you don't need real archive, bug is probably the same for real and fake archives, so DiskDir archive is enough.
Note that in fact handling of such a "fake" archives is even more important - most people and me personally, probably don't pack such a big files to real archive.
Most important is searching for content of external unpluged drives, where such a big files are not physically packed on disk, only saved as DiskDir plugin archive.
If I remember correctly, you also wrote that you are using DiskDir for this purpose.

User avatar
Gral
Power Member
Power Member
Posts: 716
Joined: 2005-01-26, 15:12 UTC

Re: All Versions: Search in archives - size limit bug

Post by *Gral » 2018-09-03, 16:30 UTC

Sorry for double posting, but i prefer post it as a separate post.

Here is a encoded RAR5 file contains 3 archives RAR, ZIP and 7Z.
Each of them contains set of files for testing (different than previous DiskDir archive)

Code: Select all

MIME-Version: 1.0
Content-Type: application/octet-stream; name="GB.RAR"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="GB.RAR"

UmFyIRoHAQAEoYURDQEFCQAIAQGAgICAgADGnBHPOwIDG5aJgAAEldqGAiADUVQQgDUAC0JJR0ZJ
TEVTLjdaGgMOAPBl/Jku1AEA8GX8mS7UAfppo5pQPdQBygaSBDYHVGcyLzQGX3/DSi0TQxiooowU
KhE0rHQCDAjFFrXQWOipUEUFiooiojFqapQrYWAKAkFAQFARprS1SINYlNCIQ1LQkN0KImhaJTS2
eY/Behn5vQmc6B5J50Rzn6fujPJzVJz4c+XvQHvvszPhzM+eTMyZnPO39z7dBaOskrPZ5jaXvY0V
0k/3Oxkh5oqD4veq+PYpXp+XJJf+hV1eZpKvvrndun9fub34v1/BL8LM4muczjcDrcPtLZTXDupU
xosHraCgmbZma9t8Jmt/i7NYZreTfU02BoN9gqqjx+ElvSpd17Pf3zfVE5NaOs0/L7yW+m9V71O9
qOD+HtT9JkfIoqOZ3vo2S/86Yn7Bfrrrp/u5yTGbHwtBZ5fH4DrrljOw3vrZXN2a9cWX109sshkq
DB2nHfvaMDy+qpa3kpnJdCn0G2xtf1PYzVVysd21urXz6HjX/7/Wme+ltljrDnc95lk02w0Vo6mc
m8TUefd/J1FR7VFN8Dg3itdFzNXuM9z+dd7V7Ov628WW68zczVyquyvlduOF11pv270tx5Gp09rv
Wdr9zmPPuuN6bpauwfDVYD25uq6TX1eQl+9r/0c+d3XOydttfj0uMnv4xGGpb7/277Ny0x52W49h
lWqTi+xNZvoajPztuseWpKG3er/5wj+/pLXbk7KP+MAAAABCY5H/GAAAAAg78f8YAAAACDvx/xgA
AQ54J7VayS4Q/nV5Pe1iSSP8+VDQAENXkf8YAAAACDvx/xgAAAAIRfEbfcSdlD1WHvOB7kkXrzG2
I/4wAAAAEHfj/jAAAAAQd+P+MAAAACHEXj9XuJKaEfl+bfdhH+d+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/50t+Axx82r0eC1+xo4en6XrvWvZWr0GKF1
jR9fyes5OgxQ2Mc2rzmTw3jR1Ph9xyc5k8dY5tXl8/tGNHF77v+Tl8/vnHNq8jrl740dV8D7fJyO
uYtjm1PC36VbzGn7Hofv5XC36fepwmbkc3+Pz1XTnU910qfY5OJ4nu9L/XddKqce2OXkc3H/bU7v
obnHJ4/xOHpb3/f3q1G76HOcjm49G46HGe60/D6fp9PcO18/xtPkwB13VlEDBQQA
Each real archive contains this files - DiskDir content:

Code: Select all

C:\
0_5_GB.IM	536870912	2018.8.8	0:0.0
1_0_GB.IM	1073741824	2018.8.8	0:0.0
1_5_GB.IM	1610612736	2018.8.8	0:0.0
2_0_GB.IM	2147483648	2018.8.8	0:0.0
2_5_GB.IM	2684354560	2018.8.8	0:0.0
3_0_GB.IM	3221225472	2018.8.8	0:0.0
3_5_GB.IM	3758096384	2018.8.8	0:0.0
4_0_GB.IM	4294967296	2018.8.8	0:0.0
4_5_GB.IM	4831838208	2018.8.8	0:0.0
5_0_GB.IM	5368709120	2018.8.8	0:0.0

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 37695
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: All Versions: Search in archives - size limit bug

Post by *ghisler(Author) » 2019-02-27, 16:18 UTC

This should be fixed in Total Commander 9.22 release candidate 1, please test it!
Author of Total Commander
http://www.ghisler.com

User avatar
Gral
Power Member
Power Member
Posts: 716
Joined: 2005-01-26, 15:12 UTC

Re: All Versions: Search in archives - size limit bug

Post by *Gral » 2019-02-27, 22:42 UTC

I can confirm fix.

Post Reply