Null pointer dereference is a crash, not a security bug
Null pointer dereference is a crash, not a security bug
Posted Nov 5, 2007 17:51 UTC (Mon) by phiggins (guest, #5605)In reply to: Null pointer dereference is a crash, not a security bug by mheily
Parent article: Daniel Bernstein: ten years of qmail security
A lot of Java programmers have gotten so rusty on their C that they can't remember how Java saves them from these kinds of mistakes. It's actually the ArrayIndexOutOfBoundsException that saves your bacon from memory corruption. Of course, Java programmers are often way too smug and think that memory corruption problems are the only kinds of security bugs. It's very hard to write an arbitrary code execution vulnerability in Java, but an unexpected and improperly handled ArrayIndexOutOfBoundsException or NullPointerException could still violate the security of your program. It will be more difficult to get shell access that way than with arbitrary code execution, though! The bigger concern is with the JVM implementation, which has had some vulnerabilities, but it hasn't been nearly as bad as I expected it to be. Java really has done well in the memory-related security area.
