Skip to content

Commit 2ed9745

Browse files
committed
zero out buffer arrays before re-use
1 parent 89e3922 commit 2ed9745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tasty/src/dotty/tools/tasty/TastyBuffer.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ class TastyBuffer(initialSize: Int) {
194194
*/
195195
def assemble(): Unit = ()
196196

197-
def reset(): Unit =
197+
def reset(): Unit = {
198+
java.util.Arrays.fill(bytes, 0.toByte)
198199
length = 0
200+
}
199201
}

0 commit comments

Comments
 (0)