This is the mail archive of the java-patches@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] | |
JvGetStringUTFRegion cannot be safely used without a corresponding call
to JvGetStringUTFLength. If its being used somewhere without one then
that is a serious bug.
- the _Jv_TempUTFString class and JV_TEMP_UTF_STRING macro (subsequent patch) will also shield us from this
Seems like these are two solutions to the same problem. Why do we need both?
You've argued me into a corner here.
Would you be happy if I:
- rewrote the CNI function to do bounds checking, and
- rewrote _Jv_TempUTFString to use the old CNI functions to avoid the additional call to JvGetStringUTFLength?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |