The problem here is that the file is being scanned without the user even attempting to run it. A similar vector would be file previews (thumbnails) or indexing. If the user is about to execute a malicious file anyway,…
You don't. Assume you don't get it. Right now, chances are you don't get it anyway.
You absolutely should have knowledge of your target platform and whether it does TCO (and whether it kicks in for your code). Otherwise, you may decide to just use recursion everywhere and then your stack overflows when…
The problem here is that the file is being scanned without the user even attempting to run it. A similar vector would be file previews (thumbnails) or indexing. If the user is about to execute a malicious file anyway,…
You don't. Assume you don't get it. Right now, chances are you don't get it anyway.
You absolutely should have knowledge of your target platform and whether it does TCO (and whether it kicks in for your code). Otherwise, you may decide to just use recursion everywhere and then your stack overflows when…