You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/09/06 01:45:33 UTC
[jira] Updated: (HARMONY-4749) [classlib][awt][image] GifDecoder
throws ArrayIndexOutOfBoundsException
[ https://issues.apache.org/jira/browse/HARMONY-4749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov updated HARMONY-4749:
-------------------------------------
Attachment: triangle-rt.gif
> [classlib][awt][image] GifDecoder throws ArrayIndexOutOfBoundsException
> -----------------------------------------------------------------------
>
> Key: HARMONY-4749
> URL: https://issues.apache.org/jira/browse/HARMONY-4749
> Project: Harmony
> Issue Type: Bug
> Components: App-Oriented Bug Reports, Classlib
> Reporter: Vasily Zakharov
> Attachments: triangle-rt.gif
>
>
> On some files, GifDecoder throws ArrayIndexOutOfBoundsException. Here's the reproducer:
> import javax.swing.JFrame;
> import javax.swing.JEditorPane;
> public class Test {
> public static void main(String argv[]) {
> try {
> JFrame frame = new JFrame("Test");
> frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
> frame.setSize(100, 100);
> frame.add(new JEditorPane("text/html", "<img src=\"file:triangle-rt.gif\">"));
> frame.setVisible(true);
> } catch (Throwable e) {
> e.printStackTrace(System.out);
> }
> }
> }
> Output on Harmony:
> java.lang.ArrayIndexOutOfBoundsException
> at java.lang.System.arraycopy(System.java:327)
> at java.lang.System.arraycopy(System.java:237)
> at org.apache.harmony.awt.gl.image.OffscreenImage.setPixels(OffscreenImage.java:286)
> at org.apache.harmony.awt.gl.image.ImageDecoder.setPixels(ImageDecoder.java:180)
> at org.apache.harmony.awt.gl.image.GifDecoder$GifGraphicBlock.sendNewData(GifDecoder.java:446)
> at org.apache.harmony.awt.gl.image.GifDecoder.decodeImage(GifDecoder.java:221)
> at org.apache.harmony.awt.gl.image.DecodingImageSource.load(DecodingImageSource.java:252)
> at org.apache.harmony.awt.gl.image.ImageLoader.run(ImageLoader.java:153)
> The test file triggering the bug is triangle-rt.gif file from Abbot package (http://abbot.sourceforge.net). This file is attached here purely for purpose of reproducing and localizing the bug, and as Abbot is CPL, I suppose this file must not be included into Harmony in any form.
> The problem was discovered while trying to run Abbot Costello on Harmony.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.