-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added input validation to OpenFile and CreateFile methods #322 #324
Conversation
@LiorBanai As I do not know whether or not this nuget is cross platform, I will not introduce a binding to kernel32.dll. This code is ready for merge |
Thanks! . I'll review it. And yes it is cross platform but we can check the running platform and bind only on windows. |
Sounds great. I'll just read up on the compiler macros for that, and I'll send you another that will compile. I have no idea why this one won't. |
@LiorBanai new version is up and should compile better :) |
…e standards in breach with best guidelines
@LiorBanai Again, sorry for the commit spam. Tried to stay within guidelines of the static code analysis, but it promotes outdated code standards (for c# 4) and advocates against current best practices (for c# 7) |
@TheBaronOfDubstep Don't worry about the static code analysis.. it is indeed need revising... |
AS long ad the code compiled and unit tests passes that is what important. |
I can add tests for the input sanitation, but I am not sure if the tests will run if I include the kernel32.dll call in them |
bug: file referenced in path needs to exist for shortpath to work. Check and exceptions added.
@LiorBanai Tests are added for the added functionality of this PR. |
@TheBaronOfDubstep I'll review it this weekend. |
@TheBaronOfDubstep Thanks |
Recreated the pull request to ensure I have only verified commits and all code style checks will succeed