LWN.net Logo

Virtual Machines and Memory Protections

Virtual Machines and Memory Protections

Posted Nov 22, 2006 14:59 UTC (Wed) by NAR (subscriber, #1313)
In reply to: Virtual Machines and Memory Protections by jospoortvliet
Parent article: Virtual Machines and Memory Protections

so security isn't a C# or java advantage, on the contrary.

Not exactly. In case of C# or Java, these kind of memory-corruption bugs can be only in the virtual machine, in the JIT compiler and in the code generated by the JIT compiler, not in the actual code written by the developers. It's a lot less code to review and make it bugfree, compared to C where any code can overflow a buffer, not just the code in gcc.

Bye,NAR


(Log in to post comments)

Virtual Machines and Memory Protections

Posted Nov 22, 2006 15:43 UTC (Wed) by gouyou (subscriber, #30290) [Link]

Plus java has a feature where you can restrict the VM to only run signed code.

Virtual Machines and Memory Protections

Posted Nov 22, 2006 18:59 UTC (Wed) by bluefoxicy (guest, #25366) [Link]

> In case of C# or Java, these kind of memory-corruption bugs can be only in the virtual machine, in the JIT compiler and in the code generated by the JIT compiler, not in the actual code written by the developers.

Almost. If by "virtual machine" you also meant "and all the libraries it uses, such as Gecko or libpng," you're very close. Remember C# can also call non-C# code, as noted in the article.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds