cm_CopyFileDetailsToClip causes crash when col result>258

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
van Dusen
Power Member
Power Member
Posts: 684
Joined: 2004-09-16, 19:30 UTC
Location: Sinzig (Rhein), Germany

cm_CopyFileDetailsToClip causes crash when col result>258

Post by *van Dusen »

If the result string from a content plugin is longer than n characters, then TC will crash ("access violation" with various adresses) when calling cm_CopyFileDetailsToClip. n is assumedly = 258 = the max. length of a result string, which can be shown in a user defined column.

This can be reproduced for instance with <FileDesc.wdx> plugin with

[Plugins]
...
3=DText.dll
3_detect=*.TXT,*.NFO,*.URL,*.
...

in <FileDesc.ini> and a simple TXT-file > 258 bytes. The result for a custom column [=filedesc.Beschreibung] is shown properly in a custom column view, but copying the detail info to the clipboard using cm_CopyFileDetailsToClip will fail.

(Workaround: Define [=filedesc.Beschreibung:1-258])

Concerns TC V7.02 and TC V7.02a as well.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check that, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Fixed in 7.03.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply