Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

ClamScan Crash when 255 character path

Support
Mike Wang
2012-08-09
2012-09-05
  • Mike Wang
    Mike Wang
    2012-08-09

    I have one system where I can scan this long path correctly as shown below. It
    converts it to the DOS short name successfully:

    Path converted from [\?\C:\Documents and Settings\myname\Local
    Settings\Temporary Internet Files\Content.IE5\UJW3A5ID\1027eed543b58578e6e3b82
    4071758d9bdeafd1265a7b24402f7551e927c3acb81cdbfa67bfd3446b42706edbe6b060893675
    8c58f0c7d1f68b5cd4c42f5e53570bdeeee23870722b7d8b04c5.htm]
    to

    But I have another system where the exact same path crashes:

    Path converted from [\?\C:\Documents and Settings\myname\Local
    Settings\Temporary Internet Files\Content.IE5\UJW3A5ID\1027eed543b58578e6e3b82
    4071758d9bdeafd1265a7b24402f7551e927c3acb81cdbfa67bfd3446b42706edbe6b060893675
    8c58f0c7d1f68b5cd4c42f5e53570bdeeee23870722b7d8b04c5.htm]
    to [\?\C:\Documents
    and Settings\fw_release\Local Settings\Temporary Internet
    Files\Content.IE5\UJW3A5ID\ tC:\Documents and Settings\fw_release\Local
    Settings\Temporary Internet Files\Content.IE5\UJW3A5ID\LibClamAV Warning:
    Filename too long, please report

    If you look at it really carefully you'll notice the difference is the
    following:

    GOOD: UJW3A5ID\1027EE~1.HTM

    BAD: UJW3A5ID\ tC:\Documents and Settings

    Notice how when the second one tries to convert, it actually puts in a weird
    space and t character instead of making it the dos short name like the good
    one.

    Do you guys know what would cause this?