Description
An OOM issue happened during the fuzzing test of class "AnsiOutputStream".
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3236)
at java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)
at java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:135)
at org.fusesource.jansi.io.AnsiProcessor.processCursorDownLine(AnsiProcessor.java:517)
at org.fusesource.jansi.io.AnsiProcessor.processEscapeCommand(AnsiProcessor.java:75)
at org.fusesource.jansi.io.AnsiOutputStream.processEscapeCommand(AnsiOutputStream.java:304)
at org.fusesource.jansi.io.AnsiOutputStream.write(AnsiOutputStream.java:204)
at java.io.FilterOutputStream.write(FilterOutputStream.java:125)
at java.io.FilterOutputStream.write(FilterOutputStream.java:97)
at OsJansi.OutStream.main(OutStream.java:64)
Environment
openjdk version "1.8.0_275" & Ubuntu 18.04
jansi: the latest (the main branch)
Code
We upload the code and correspond input to the link.
To reproduce the bug:
Description An OOM issue happened during the fuzzing test of class "AnsiOutputStream".
Environment
Code We upload the code and correspond input to the link. To reproduce the bug:
<1> cd jansi && ./build.sh <2> ./run.sh