commit | a5c6fe3e502bf78378954eb937d30682a59f99e7 | [log] [tgz] |
---|---|---|
author | Tamás Szabó <tamas.szabo@itemis.de> | Fri Apr 27 11:24:40 2018 +0200 |
committer | Till Brychcy <register.eclipse@brychcy.de> | Tue May 15 08:33:31 2018 -0400 |
tree | 8a4e20b771c5ca43e70a8cf3178d64b5eda108aa | |
parent | 2fc37aebaf1eda268e5b2770bb0b84adb58e6725 [diff] |
[532809] Ensures that CodeStream.new_ properly resizes the byte array Change-Id: Ie45d1268b7952d27d20852bd668313192d6325b3 Signed-off-by: Tamás Szabó <tamas.szabo@itemis.de>
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java index c86a781..e82f9e3 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
@@ -6059,7 +6059,7 @@ this.stackDepth++; if (this.stackDepth > this.stackMax) this.stackMax = this.stackDepth; - if (this.classFileOffset + 2 >= this.bCodeStream.length) { + if (this.classFileOffset + 3 >= this.bCodeStream.length) { resizeByteArray(); } this.position++;