Page 1 of 1
[v16.20] : "type stats and filter" crash (runtime error 6)
Posted: 20 Jan 2016 14:54
by Sander Bouwhuis
I get a runtime error 6 buffer overflow crash when I use "Type stats and filter"
It may be worth mentioning that I have branch view on.
There are 27797 files and 1531 folders.
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 15:15
by admin
I went up to showing a branch view with 70,000 folders and 666,000 files but could not make the error happen.
Can you somehow isolate the issue? Maybe it's not the number of items but something else...
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 15:50
by Sander Bouwhuis
Ok, it's really weird, but this SINGLE file crashes XYplorer:
"E:\Games\Steam\package\tenfoot_fonts_all.zip.vz.22d386a31ebf4f5066e2f1b2dec4107c782ea596_12074816"
It's a Steam file.
I suspect you don't check how large extensions can be. In this case it seems the extension is really long.
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 15:52
by admin
I created a file with that name but no crash.

Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 16:54
by Sander Bouwhuis
Can somebody else who has Steam installed check this?
The checksum of the file:
MD5 : 2abbe4e81ed8f07998e8fc9f75dd66c1
SHA2-256 : 3c4f8a9509ea64a03fbb52a4fbf7590c738652afba45d9a46848dfb062d71f8c
It has nothing to do with branch view by the way. When I have this file in the directory XYplorer crashes when I press 'type stats and filter'.
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 17:16
by TheQwerty
What does XY show in the Type column for that file?
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 17:22
by Sander Bouwhuis
I didn't have that column, but I turned it on for you.
It says "22D386A31EBF4F5066E2F1B2DEC4107C782EA596_12074816 File"
PS
I added my settings file. Maybe it helps.
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 17:24
by grindax
.
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 17:33
by TheQwerty
Using your settings I get the crash also:
Error 6
Error: 6 (0x00000006)
Desc: Overflow
Dll: 0
Proc: Fu
Source: XYplorer
XY ver: XYplorer 16.20.0000
OS: Windows 7 Professional (Service Pack 1), 64-bit
Locale: 1033
ANSI: 1252
ACP: 1252 (ANSI - Latin I)
DBCS: No
DPI: 96 (100%)
Date: 2016-01-20 11:30:53
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 18:11
by TheQwerty
From fresh:
- Disable Configuration | Refresh, Icons, History | Icons | Enable custom file icons
- Create a new file with extension '2d386' (ie 'test.2d386').
- Show Type Stats and Filter.
-

Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 18:53
by admin
Got it, thanks! Interesting and totally surprising bug. Has nothing to do with "type stats and filter" as such, but it happened to surface here. There
are were other ways to fall in the same trap. Wow.
Well, it's fixed now.

Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 18:56
by TheQwerty
What was so important about '2d386' and the other ways?

Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 18:59
by admin
TheQwerty wrote:What was so important about '2d386' and the other ways?

The point here is that "2d386" is evaluated as a number (namely "2 to the power of 386", well.... overflow) by the particular function I passed it to!
Same with "22d386a31ebf4f5066e2f1b2dec4107c782ea596" = "22 to the power of 386"...
Sometimes VB is a little too smart...
Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 19:12
by TheQwerty
When good strings become big, bad numbers and other bedtime stories...

Re: [v16.20] : "type stats and filter" crash (runtime error
Posted: 20 Jan 2016 19:19
by Sander Bouwhuis
I'm glad I could help
