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] |
After careful consideration, I've decided not to go with Bryce's suggestion of checking buffer size:
http://gcc.gnu.org/ml/java-patches/2003-q3/msg00308.html
...because:
- this would involve an additional call to JvGetStringUTFLength for bounds checking
- JvGetStringUTFRegion does not do this bounds checking either
- the caller can call JvGetStringUTFLength beforehand if s/he wants to
- the _Jv_TempUTFString class and JV_TEMP_UTF_STRING macro (subsequent patch) will also shield us from this
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |