commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (IMAGING-130) Reading of some GIF images throws AddStringToTable: codes: 4096 code_size: 12
Date Thu, 06 Jun 2019 08:44:00 GMT


ASF GitHub Bot logged work on IMAGING-130:

                Author: ASF GitHub Bot
            Created on: 06/Jun/19 08:43
            Start Date: 06/Jun/19 08:43
    Worklog Time Spent: 10m 
      Work Description: coveralls commented on issue #46: IMAGING-130: Ignore extra bytes
when LZW decoder table is full
   [![Coverage Status](](
   Coverage increased (+0.1%) to 74.319% when pulling **d328b7f1c3c7e597f4d0c5fa9adb01f8a5a1193a
on mgs255:gif89a_decoding_exception** into **06dd48ee5f3a6bf1bc020891f96bbc2ab154fd26 on apache:master**.
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 254993)
    Time Spent: 40m  (was: 0.5h)

> Reading of some GIF images throws AddStringToTable: codes: 4096
code_size: 12
> --------------------------------------------------------------------------------------------------
>                 Key: IMAGING-130
>                 URL:
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: GIF
>    Affects Versions: 1.0-alpha1
>         Environment: Oracle JRE 1.7.0_45 on Windows 7
> Oracle JRE 1.7.0_55-b13 on Debian 7.5
>            Reporter: Dhyan Blum
>            Priority: Major
>             Fix For: Patch Needed
>          Time Spent: 40m
>  Remaining Estimate: 0h
> Hi guys,
> for some GIF images Imaging.getBufferedImage(byte[] bytes) throws the following exception:
> {quote}
> AddStringToTable: codes: 4096 code_size: 12
> 	at org.apache.commons.imaging.common.mylzw.MyLzwDecompressor.addStringToTable(
> 	at org.apache.commons.imaging.common.mylzw.MyLzwDecompressor.decompress(
> 	at org.apache.commons.imaging.formats.gif.GifImageParser.readImageDescriptor(
> 	at org.apache.commons.imaging.formats.gif.GifImageParser.readBlocks(
> 	at org.apache.commons.imaging.formats.gif.GifImageParser.readFile(
> 	at org.apache.commons.imaging.formats.gif.GifImageParser.readFile(
> 	at org.apache.commons.imaging.formats.gif.GifImageParser.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> 	at org.apache.commons.imaging.Imaging.getBufferedImage(
> {quote}
> I have the same problem when using In my post on Stackoverflow (
) you will find an example image to reproduce the exception and a similar looking JDK bug
report that I found using Google. Quote from the bug report:
> {quote}
> according to specification
> > There is not a requirement to send a clear code when the string table is full.
> However, GIFImageReader requires the clear code when the string table is full.
> GIFImageReader violates the specification, clearly.
> In the real world, sometimes people finds such high compressed gif image.
> so you should fix this bug.
> {quote}
> I hope you will find this information helpful.
> Kind regards
> Dhyan

This message was sent by Atlassian JIRA

View raw message