Possible Duplicate:
Does Java have buffer overflows?
Can Java be exposed to buffer overflow vulnerabilities? Normally, people would use String
objects that are dynamically resized. I am talking about the scenario where character arrays are used.
Possible Duplicate:
Does Java have buffer overflows?
Can Java be exposed to buffer overflow vulnerabilities? Normally, people would use String
objects that are dynamically resized. I am talking about the scenario where character arrays are used.
No
You cannot overrun buffers in Java. Array accesses are checked in the JVM.
You can't actually overflow the buffer, but trying to can trigger exceptions, and poorly written exception handlers can induce arbitrary unexpected behavior.