-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b13
The code has:
if ((int)strlen(name) > Symbol::max_length()) {
when it should have
if (strlen(name) > (size_t)Symbol::max_length()) {
otherwise string lengths > INT_MAX will give a negative result and so fail the comparison and so not get caught as being too long.
if ((int)strlen(name) > Symbol::max_length()) {
when it should have
if (strlen(name) > (size_t)Symbol::max_length()) {
otherwise string lengths > INT_MAX will give a negative result and so fail the comparison and so not get caught as being too long.
- relates to
-
JDK-8339134 Callers of Exceptions::fthrow should ensure exception message lengths avoid the INT_MAX limits of os::vsnprintf
-
- Resolved
-
-
JDK-8339313 32-bit build broken
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/72a49005
-
Review(master) openjdk/jdk/20709