Skip to content

Conversation

@piksel
Copy link
Member

@piksel piksel commented Nov 10, 2020

  • Use GetRandomFileName() instead of GetTempFileName()
  • Rename WindowsPathUtils to PathUtils and make a proper static class
  • Unify random file name creation into PathUtils
  • Do not create new random files before use

Fixes #537

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

- Use GetRandomFileName() instead of  GetTempFileName()
- Unify random file name creation into PathUtils
- Do not create new random files before use
- Rename  WindowsPathUtils to PathUtils and make a proper static class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid Path.GetTempFileName() due to CWE 377.

2 participants