News for hackers. Stuff that matters.

ecma_horse

Re:Proton.B: What this Mac malware does on Saturday May 13, 2017 @09:15PM (#14333764)
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, then scanning it before only adds protection.

Re:All About Recursion and Tail Calls in JavaScript on Saturday May 13, 2017 @08:52PM (#14333710)
You don't. Assume you don't get it. Right now, chances are you don't get it anyway.
Re:All About Recursion and Tail Calls in JavaScript on Saturday May 13, 2017 @08:51PM (#14333705)
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 your N is bigger than expected.

When in doubt, don't use recursion and don't expect that you get TCO.