diff options
author | lfoltan <none@none> | 2014-04-14 10:13:03 -0400 |
---|---|---|
committer | lfoltan <none@none> | 2014-04-14 10:13:03 -0400 |
commit | e610a1706b0471a5bf41b57faaa484ec76805188 (patch) | |
tree | ded9f120c80843731148c18cd2063f62e973e92e /src/share/vm | |
parent | 5fe463996b6903e76cbe99fb7902c0c48dc51959 (diff) |
8038076: constraint on multianewarray instruction is not checked since class version 50.
Summary: No VerifiyError generated if multianewarray bytecode's array type descriptor was 1 dimension smaller than dimensions specified.
Reviewed-by: hseigel, ctornqvi, coleenp, kamg
Diffstat (limited to 'src/share/vm')
-rw-r--r-- | src/share/vm/classfile/verificationType.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/classfile/verificationType.hpp b/src/share/vm/classfile/verificationType.hpp index eec0bf3f5..16266477e 100644 --- a/src/share/vm/classfile/verificationType.hpp +++ b/src/share/vm/classfile/verificationType.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -299,7 +299,7 @@ class VerificationType VALUE_OBJ_CLASS_SPEC { int dimensions() const { assert(is_array(), "Must be an array"); int index = 0; - while (name()->byte_at(index++) == '['); + while (name()->byte_at(index) == '[') index++; return index; } |