JDK-7058662 : AiffFileReader throws java.lang.ArithmeticException: division by zero when frame size is zero
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.sound
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_2.6
  • CPU: x86
  • Submitted: 2011-06-23
  • Updated: 2013-11-07
  • Resolved: 2013-10-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8 b115Fixed
Unexpected exception in AIF parser code.

fix is under review.

We continue trying tofix these P4s in JDK8 , but some of them might not be fixed in JDK8 due to lack of resources. The commitment to fix them as soon as possible still confirmed. They are tracking on JDK8 client-libs dashboard permanently.

please fix it in 8-dev

The fix for ArithmeticException is ready, but I still do not know where to fix it.

EVALUATION To calculate frame length AiffFileReader divides data length by frame size. AiffFileReader reads frame size value from input data stream and does not checks the value (due the AIFF format specification frame size can be any number from 1 to 32). The check for data correctness should be added.