Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What it takes to pass a file path to a Windows API in C++. Parent comment
In RAM-constrained world of the past, you would stack-allocate `char buff[MAX_PATH]` and do all your strcpy/strspn in there with no problems.
Now, if that app receives a long path into a too short buffer, it will instantly stack overflow and may cause exploitable problems.
There are no comments on this comment yet.
In RAM-constrained world of the past, you would stack-allocate `char buff[MAX_PATH]` and do all your strcpy/strspn in there with no problems.
Now, if that app receives a long path into a too short buffer, it will instantly stack overflow and may cause exploitable problems.