Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
colejohnson66
on Sept 24, 2023
|
parent
|
context
|
favorite
| on:
What it takes to pass a file path to a Windows API...
This. Seeing if you can do something before actually doing it falls victim to TOCTOU[0] bugs. Until one actually tries to perform the security-sensitive operation, there's no guaranteeing that you will succeed.
[0]:
https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
[0]: https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use