← Back to team overview

openjdk team mailing list archive

[Bug 912660] Re: Invalid UTF8 bytes crashes jvm

 

This definitely happened hence the attached crash log.  However I am
unable to reproduce it in any way.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/912660

Title:
  Invalid UTF8 bytes crashes jvm

Status in “openjdk-6” package in Ubuntu:
  Invalid

Bug description:
  In  my testing I created an input file that included 6 consecutive
  0xff bytes.  The code reads this calling `new String(bytes, "UTF8")`
  which results in the JVM crashing.

  If I create a simple class that only does what is described above then
  there is no crash so it is a more complicated environment that makes
  it crash.

  This is possibly a security issue because it is causing the JVM to
  read data beyond what it safely should.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/912660/+subscriptions



References