You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sanselan-dev@incubator.apache.org by "Holger Veltrup (JIRA)" <ji...@apache.org> on 2009/06/29 06:22:47 UTC

[jira] Created: (SANSELAN-24) ArrayIndexOutOfBoundsException with GIF

ArrayIndexOutOfBoundsException with GIF
---------------------------------------

                 Key: SANSELAN-24
                 URL: https://issues.apache.org/jira/browse/SANSELAN-24
             Project: Sanselan
          Issue Type: Bug
            Reporter: Holger Veltrup


I try to get a BufferedImage:

import java.io.File;
import java.awt.image.BufferedImage;
import org.apache.sanselan.Sanselan;
public class BufferedImageTest {
    public static void main(String[] args) throws Exception {
        BufferedImage img = Sanselan.getBufferedImage(new File(args[0]));
    }
}

This throw a ArrayIndexOutOfBoundsException  if I use a special gif (test.gif is attached)
This GIF was created by PowerPoint

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 96000
   at org.apache.sanselan.formats.gif.GifImageParser.getBufferedImage(GifImageParser.java:795)
   at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1264)
   at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1231)
   at BufferedImageTest.main(BufferedImageTest.java:6)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SANSELAN-24) ArrayIndexOutOfBoundsException with GIF

Posted by "Holger Veltrup (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SANSELAN-24?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Holger Veltrup updated SANSELAN-24:
-----------------------------------

    Attachment: test.gif

> ArrayIndexOutOfBoundsException with GIF
> ---------------------------------------
>
>                 Key: SANSELAN-24
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-24
>             Project: Sanselan
>          Issue Type: Bug
>            Reporter: Holger Veltrup
>         Attachments: test.gif
>
>
> I try to get a BufferedImage:
> import java.io.File;
> import java.awt.image.BufferedImage;
> import org.apache.sanselan.Sanselan;
> public class BufferedImageTest {
>     public static void main(String[] args) throws Exception {
>         BufferedImage img = Sanselan.getBufferedImage(new File(args[0]));
>     }
> }
> This throw a ArrayIndexOutOfBoundsException  if I use a special gif (test.gif is attached)
> This GIF was created by PowerPoint
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 96000
>    at org.apache.sanselan.formats.gif.GifImageParser.getBufferedImage(GifImageParser.java:795)
>    at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1264)
>    at org.apache.sanselan.Sanselan.getBufferedImage(Sanselan.java:1231)
>    at BufferedImageTest.main(BufferedImageTest.java:6)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.