This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: buffer overflow possible in CNI string-handling code?


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]