buffer overflow possible in CNI string-handling code?

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Mar 11 16:10:00 GMT 2002


Adam Megacz wrote:

>>Assuming you use JvGetStringUTFLength, you'll get a crash, I think.
>>
>
>Cool. Is this because the code emitted for buf[foo] includes a check
>to see if (foo + sp > top_of_stack)?
>

The end of the stack is guarded by a write-protected page.

regards

Bryce.




More information about the Java mailing list