Skip to content

Hang when copy/pasting file with large number #50822

Closed

Description

@roblourens
  • Have file named file-9007199254740992.txt in explorer
  • Copy/paste it
  • Window hangs

This is from #50003. We shouldn't attempt this when the number is >= Number.MAX_SAFE_INTEGER.

It loops forever here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/files/electron-browser/fileActions.ts#L1049

This bug will happen whenever incrementFileName fails to modify the file name.

Activity

  1. added
    bug
    file-explorer
    on May 30, 2018
  2. added this to the May 2018 milestone on May 30, 2018
  3. Krzysztof-Cieslak commented on May 31, 2018

    @Krzysztof-Cieslak
    Contributor

    Isidor Nikolic (@isidorn), I guess only interesting thing about this what we should do in this case as we need to create some new file name? Add .1 without changing the original number?

  4. isidorn commented on May 31, 2018

    @isidorn
  5. locked and limited conversation to collaborators on Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfile-explorerverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions