27.10.2014 Views

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Solutions</strong> to Chapter 16 | Low Level<br />

A final option is to consider requiring this code that should be “s<strong>and</strong>boxed” to run in a managed<br />

language like Java or C# / .NET. By default, <strong>the</strong> virtual machines running managed code<br />

in <strong>the</strong>se languages make it impossible to gain complete access to <strong>the</strong> stack from within <strong>the</strong><br />

process.<br />

One can use fur<strong>the</strong>r security features of <strong>the</strong> runtimes to prevent <strong>the</strong> code from spawning additional<br />

processes or running “unsafe” code to inspect <strong>the</strong> stack. With .NET, for example, you<br />

can use Code Access Security (CAS) or appdomain permissions to control such execution.<br />

2 4 3<br />

<strong>Cracking</strong> <strong>the</strong> <strong>Coding</strong> <strong>Interview</strong> | Knowledge Based

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!