Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6852563

ArrayOutOfBoundException when reading RLE8 compressed bitmap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6u10, 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b158
    • CPU:
      x86
    • OS:
      windows_vista

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.6.0_12"
        Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
        Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.0.6000]

        A DESCRIPTION OF THE PROBLEM :
        I get an exception when trying to read RLE8 compressed bitmap.

        Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9216
                at com.sun.imageio.plugins.bmp.BMPImageReader.decodeRLE8(BMPImageReader.java:1432)
                at com.sun.imageio.plugins.bmp.BMPImageReader.readRLE8(BMPImageReader.java:1357)
                at com.sun.imageio.plugins.bmp.BMPImageReader.read(BMPImageReader.java:805)
                at javax.imageio.ImageIO.read(ImageIO.java:1422)
                at javax.imageio.ImageIO.read(ImageIO.java:1282)
                at TestBMPImageReader.main(TestBMPImageReader.java:14)


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Decode the base64 encoded bitmap below and save to rle8.bmp. Run the snippet of code provided.


        Qk2yJgAAAAAAADIBAAAoAAAAYAAAAGAAAAABAAgAAQAAAAAkAAASCwAAEgsAAD8AAAAAAAAAACml
        AAg5pQAYQpwACDmtABhClAAAOa0AKVKMAAApnAAYKYwAGEKlABA5hAAhUowAECmMABAxhAAhQpwA
        IUqMAClSlAAhMXsAIUKUABgxjAAYSqUAGDmUAAg5nAApWpwAIVqcACE5hAAhUpwAIUqcABg5pQAY
        OZwAGEKtABBCpQAYMXsACDGEABA5nAAQOZQAGDmtAAAxrQAIKYwAGEqcABBCnAAAMaUAIVqlACFS
        lAApWqUAECGEABhChAAAOaUAIVKlABAxnAAIKYQAGEqMACExhAAYSpQAGFKcABA5pQApWpQAGCl7
        ABAhjAAQQpQACCGEABhKhAAYUpQAAGASEhIKCiAKDSAKCgoKCg0KCg0KCg0KCg0NBg8LCwYGKwYG
        BhArCxARERkgGSARERkRERkREREREQsQEAYrEAsQDwYGBgYQBgsEAhUdHRICJw41NQ4bDhIbDhsS
        GxINIC4AAABgEhISCg0KDQoKIAogCg0KDQ0KDSEKDQoKDwYGEAsPCwsLCwYGBgYGEBERERERIBER
        GREZERkRGRAGBgYQBgYLCxAGDxALCzMGHR0EFRUCFQ4SDhsSDicSDjUSGwQSIA0KAAAAYA0NIAoN
        Lg0NLg0NCg0NCgoKDQoNCgoLBhAGBhALEAYQBhALEBArBgsXFzQRERERGREZERk0ERcXDwYGOAsG
        CwYLBhAQCwYQEDMCFR0dAhUOJxIbEgQ1DhIEEhISBBISGwAAAGAKCgogCgoNCg0NCg0KCg0KCgoN
        CiENBhAGKwsGBgYQCw8LBgsGBgsXGBcaGREZGRERERkRERcXFxgQCxAGEAYQBgYLCwsPBgYLBgQj
        BBUVIw4EBAISBA4EEhsSEhsSEhIAAABgDSAKCg0NCgoKCg0KDQ0KDSENCg0NCwsPDwYLDysLBhAQ
        BhAGOAsXGhcYGhEREREZERkRERgYGhcXFxAGEA8LDwsQBgYGBgsGBgsQAgICAgQCFRIbDhsSGxsS
        DhsSGxsSAAAAYAoNCg0KDQoNCg0NCg0hCgoNCgoGDwYGBgsLEAYLEA8PCwYzBhcXGhcYGhgaGBEZ
        GRERESoaKhcsFxoXFwYPBhAQDwsQBhAQBhAQBg8VAgIEHRUEAg4nEhsSGxISGxISEgAAAGANCgoN
        CgoNCg0KCg0KCg0NCg0NEAYGBgYLEA8LCwsGBgYLEAYXFxcaFxcYKhgqERERGRoaLBgaGCwXGhcQ
        EAYGBgYLDysGDwsLMwYGMyMVHQQCFQIEBA4SAhIbAhIbGwQAAABgCg0KCg0KDQ0KDQ0KDQ0KIQoh
        KwYLBhAPEAYrCwsLBisGCxcXGBcYLBgYMBoaMCAZGSoaKhoqGBcYFxcXFwsQDwsPEAYGCxAPDwYG
        DxAGIxUiFR0VAhsEDhICEhICEhIOAAAAYA0KCg0NCg0NJiEhJiEmISYCBA4EAgQjAgIEAgQCFQQV
        FQQJFAgMCAwtEwgMExMICAwTDAgICBMIDBMTCBQUFQIEAgQCEgIEBAIVIwQCAgQiMSIxIjEiHR0C
        Eg4nEg4OEgAAAGAKDQoKCg0KCiYhISYhISYmAgIEAgQOEgQEAgQCBAIEBAkUCQIJCAwTCAgMDAgM
        DAgTCBMMCAwIExMICCcJCTACAgQVAgQCAgISDgIEFQQVDiIxIjEdMSIdEg41BBsSBBIAAABgDQoN
        Cg0KDQ0hJiEmISYyDgQODgIEBAIEAgIEFQIEFQQJAhQUFAgIDAwICAwICBMTDAgMEwgTCAwIEwIU
        FA4UFAQCBAQVAgQEAgQCFQICBCMOIiIdIh0iMQ4EDhICEhICAAAAYA0KDQoNCg0NISYmITICBAIE
        AgQCBAIjDgIVIxUEDgkJCRQJAhQJCRMMCAwMCBMTCBMMEwgIDAwTCAkJCRQJCRQCFAQCBAQCBAIE
        AgQCFQIOBAQxIh0xMR0VAhIEAhISJwAAAGAKCg0KCg0KCiYhMiYmBAIEAhIEEgICEgISAgIOEhQC
        FCcCFAkJFAkfEwgIOQwMDAgMCAwIDBMMDAkUHxQCAhQCJwkUBAIEBBUEAgIEAgQEBAICBCIxIiIx
        HQQdGxIODg4AAABgDQoNCg0KIQ0mJiYyAgIEHQQCAgQOBAICBBICBBQCFAkJCQkUCQkfCQgTCAgM
        CAwTCAwMCAgICB8JCQkJCQkCCQkUAgQCBCMEAgQCBAQCBAQEAhUCIh0iIiMdBAIONQQSAAAAYA0K
        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
        CQkoCQk3BQUlBQUDAAUDAwMHARYHAQcBBwcAAQcABwABAAAAAAAHAQEBAAEABwcBAAAABwABAAMF
        JQUAAwMFAwUDHxQCKAIUAhQVBA8LCw8LDwszAAAAYAYLBgsPBgsXKAIJCScCCR8JFAUFJQUpBQEH
        BQMDFgABABYAFgEHABYBBwEAAQcAAAAABwEAAQAABwEBABYAFgAWAQAFAwUWAAMDBQMAAwkfCQki
        KAkJAhQGCw8PCwsLBgAAAGAPDwYLEAYLKxQJKAkJHxQiCQkDBwUlBSUpASklBQAAAAAAAAAHAQAH
        BwAAFgABABYHAQAAFgAAAAEAAAAAAAABAAcAAyUBAAAFBQMlAAMfHwIfAhQJAgkCDwsQDw8PDwYA
        AABgBhAGEA8GFxcJAgIUCS0JHx8JBSkHBSUFBwcHAQMWBxYAARYAAQcBAAAWBwAAAAAAAQEAFgAB
        BwcAARYAAQEHAAABAAMBAAABAwMDAQEFHwkfCQkUFAIUCRoXDwYGBgYPAAAAYCsGCwYGFxcsCBQC
        FBQICDofHwMAAQcFJQcHBwcpFgAAAQcBAAAHARYHAQAAAAcAABYWAAAAAQcHABYWAAcBAAAHAAAA
        AAAAAAMBABYBBQkJCAwJCR8JAggYFxcGBgsGBgAAAGAPDwsGFxgYGAwICQkiDDwTCR8FAAcABwUA
        ACkHAAAHBwAAAAAWAAAAAQcAAQcBBwEAAAABAQcAAQAAAAEAABYAAQcBBwEBBwEDBwEAByUfDAwI
        FAkoCRMtFxoYBgsPBgsAAABgBg8GFxcXFxoTCBQJFBMMCBMJJQABAAcpBwcHKQcHAAEHAAEHAAAW
        AAcBAAABAAAAAQEWAAABBwcBAAcAAQAAAQcBAAAABwAAFgEAAAEFHxMMEwkJCQwMCBcXGBcXDwYQ
        AAAAYAYLFxgaGhoYCAgICBQMDBMMCCkHAQABBwApBwAABwAABwAAAQcHAQEAAQAWAAEBBwABBwEB
        BwEHAQAAAAEAAAEAAAAAAQAABwEABwEHABMTCAgoFAwIDBMaGhgXFxcPCwAAAGAgFxoXLBcYGAgT
        CBMICAgMCAgAAQAHBwAHBwAHBykHFikHAAcAAAAHAQABAAEAAAEAAAEAAAEAAQAAFgAHBwEAFgAW
        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
        Ax8IDAgUCQkTCBMaFxgaGAYGBgAAAGAQKwYYFzYXKggMHx8fEwgIHwkDAQcAAQMAAQEAAQAABwAH
        BwAAAAEAAQcABwcHFgAAFgABAAAAAAEAAQAWAAEAAAABFgAWAAEFAQABAQMfLQgMCQkUFAgIGhcX
        FxoLBhAAAABgEAYQBhcXGBoIBCgUAgwMCBQfAwABAAUDAQAHAQABBwEAAQEABwEAAQABBwEBAAAB
        AAAABwABAAAAAQAABwcAAQEABwAAAAApAwAHAAcFHwkIDAkJCQkEDBgYFwYLEAYQAAAAYAYQBgsQ
        DxgaCRQJKAkIFAkJFAUHAAUDBQEAAAEDAQAWAAEBBwABBwEHAQcHAQcAAQcAAQAAAQAAAAEAAAAA
        BwABBwEDAAAABwMFBQAABR8fHwkCKAkJCQIaGAYQPS4QBgAAAGAQBisGBjgXFxQOJwkCFAkJCRQD
        AQUDBQMAASkDBQcBAAcAAAEAAAEAAQABAQAAAQABAQABAQAAABYAAAEBAAEAAAAABQMBFgAFBQUD
        AQMJCQkfCQkJAhQJFxcLBjgPBhAAAABgCwYGBhAPEBcUAgkwFAkUCQkJBQMFJQUFAQADBQMBAAAB
        BQAAAQcABwcABwABAAAHAAAHAAAWAAAABwcABwMDAQEAAQMFAwABAwUDBQcFHwkUCQkUAgkCFAsG
        BgYGDw8LAAAAYAsQBg8GEAYLAhQJFAkJFAkJFAMDBQMlBQEFAwUDAQAlAwEBAAEABwAAFgAAAQcH
        AQAAAQAAAQcAAAAAAQABAAMBAAAFBQUFAAMDBQUFBQkJFBQnCScCAiMLCwYQBgYzDwAAAGALBgsG
        CwYQBhUCDgkUFA4UCQkFBQMFBQMFBQMFBQABAwcAAQcAAQAWAAAWAQABAAABAQcAAQcAAAEBAAAB
        AAcBBQABAwUDAwUFAwUDAwUUCR8JCQIJCQQdDwsGBhALBgsAAABgDxAGCwYLDwsOBDAJFBQCFBQJ
        AwMFAwMFAwMFBQMABRYAAQABAAABAAABAAcAAAEWAAABAAABAAAHAAcBBwEAAAMFAAUDAwUDBQUD
        BQUDCQkCHxQJMAQVBA8PBhAGBgsPAAAAYA8PBgsGCw8LAg4CAhQJJwkUAgUFAwUFBQMDBQUDBQMl
        BQUAAQABAAEAFgAAAQAHAQAAAQAAAQAAAQABAAADBQMDBQMDBQMFBQMDBQMDBRQJFA4CFAQEAgIG
        EAYGCwYGCwAAAGAGCwYPOA8LBgIVBAQOAgkUFBQDAwUFAwUDBQUFBQUFAwUDBQMAAAEAAQABFgAA
        AAAWAQcAAQcABwABABYDBQMFBQMFBQMFBQMDBQMFBQMJFAIUCQQCAhIOBgsGEAYQEAYAAABgDw8G
        EDMGEAYEAgIOBBQOFBQJBQMDAwMDBQMFBQMFAwUDBQMBAAEAFgAHBwABBxYAAAABBwABBwABAAAA
        AAUDBQMFAwMFAwMFBQUDAwUDCQIJAgIVBAQCBAsGCwYGEAsLAAAAYBAGDwYGBhALAgICDgQEFQkn
        CQMDBQMFAwUFAwUDBQUFAyUAAQcAARYAAAABAAEBAAAABwEHAQAAAQAABwABAwUDAwUFAwUFAwUF
        AwMDBQkCFAQEDgQVBBUGEAYQBhAGBgAAAGAQCwYLCwYLBgIEAgQCAgQECRQBBQMFAwUDAwUDBQMD
        BQMWFgAAFgAAAAEHAAcBBwEHBwEHAAAHAQAAAQABAAADAwUDAwUDAwUDAwUDBQMUFAIEBBUCDgQj
        DxAGBhAGEAsAAABgDwYGDwYLEAYEAgIEBCMOAhUCBQUDAwMFAwUFAwMFBQMAKQABAAABAAEAAQEA
        AAAAAQAHAAEHAQcWAAABAAABAAMFAwUDBQUDBQUvAwUDAgQVDgQCDgIEAgYGBgYGCwY4AAAAYA8P
        Bg8QCwYGAhICBAQCBA4EAgUDBQEDAwUFAwUDBQMFAwUDBQMAAQABAAEBAAcABwEAAAcHBwAAAQAl
        AwMDBQMFAwUFAwMDBQMFAwUDAxUEAgICBAIEAgQPDwYQBhAGEAAAAGAKDw8PCwsQEAQCBAIVBAIE
        AhUBBQMDAwUDAwUDBQUFAwUFBQUDAQcAAAEAABYAFgAAABYAAAEHAAcAFiUlAwUFAwUDBQMFBQMF
        AwMDBQECAgQEEgISIwQCBg8rCxAGFQIAAABgDQ0PDxAQBhACEhUEAiMEAgQCAQMFAwMFAwMFAwMF
        AwUDBQUDAAABABYAARYAAQABBwEABwcAAAEAFgABAwUDBQUDBQMFAwMDAwMDBQEvFQQEDgIEAhIC
        BAYQBgYGBg4CAAAAYA0hCgoPBhAGAgIOEgIVFQIOBAEBJQMDBQMDBQMDBQUFAwMAAAcAFgABBwEH
        AQEBAQAAAQAHAAAAAAEHAQcFAwUFAwUDAwUFAwMDAykDLxUEBAIEAgQEAhIGBhAQBAIbDgAAAGAK
        DQoMDw8GBgQOAgICDgQVAgIBLwEpBQMDAwMFAwMFAwUFAQABAQABAAEAAQAHAAAHFgAHABYABxYp
        AQABAAUDAwUDBQMFAwMFLwEDAQECBAIEAgQEAgIECwYrFQ4SEgIAAABgCg0KCg0PDxAEAgIVEgQC
        BAQEKQElAQEFAwUFAwUDAwUDAwMFAwUDBykHARYAARYAAQABAAAAFgAABQMFAwMFAwUDBQMFAwMD
        AwMBLykBBB0EAgICFQQEAhAGBgICDgIOAAAAYAoNCg0NDQoPAgICBAIOBAIEBAIVAgQCBA4CCRQo
        CQkJCRQoHwkJCAwMDBMMEwwIDAwMCBMMDAwMDC0fIh83CQkJCRQJFBQCAg4ODgQCBBUSAgQCBA4C
        BAQGHQQOBBsSGwAAAGANCgoKCgoNDxICDgQOBAQSBCMEDgQCFQQEMA4UCRQCFB8JCQkJDAwICAgT
        EwgICAgTCAwICBMICAwMIh8fKBYoFBQJFAkCAhUSBAQOAgQOBAIVBAIEFQQCHQQOGw4CAg4AAABg
        DQ0NCgoNCg0EAgICBAICAgICDgICBAIEDgIUAgkCFCgJCQkUHxMIDAwTCAwTExMMCBMIExMMCAgI
        LQgWKBYoHwkOFAkUFAQCBAICBAQEAgQEFQQVAgIEBAQOAhICGxsEAAAAYA0KDQoNCg0NJiEEEgQC
        EgIVBAIEFQQOAgQEAgQJCQkJAhQoDAgMORMMEwwTCDoIEwgIEwgTCAgMDAwIDDooHwkJCQkUBAIE
        AgQEAgIEBAIEBAICEgQCIiICEgIOEgIOBAAAAGAKDQoNCg0KCiYmAgIEEgIVBCMEAgQOBAQCFQQC
        FBQCFAkCCQIfHwkfCAwICAgTCAwTCAgTEwgMCQkoKB8CIiIoCRQCBAISAhICBAIEAgIEAhUCBAIC
        MR0dDgIbJw4OBA4AAABgCgoNCg0KDQ0hJiYEAgIEAgQOAgQCBAIEFQQOBBUCCQkwCRQJCQkJCQgT
        CAgMCC0IDBMMCAgTExQJCR8CHwIJCQIJDg4EAgQCAgISAgQCBAQCBAQCBCICHQ4OBBInEhIOAAAA
        YA0uDQoNCgoNJiEhJiEjBAIEBAIEBAQEBAIEAgQEDhUJAhQUCQkCCS0ICBMICBMIDAgIEwwICAwT
        EwkCAgkCFB8jBAQCBAIOAhUCFQICBAICBA4CMR0CIh0CDhIbBA4SAgAAAGAKCg0NDQoNCjImJjIm
        DgIEAhUEBAIEFQIVFRUCAgQEBAkCCRQJCQgIDAgMCAwIDBMIDAgTDAgICAgMFAkJCRQOFQIEFRUC
        FQQCBAIOBAIEBAIOIiIdHQIdGxInBBsbGw4AAABgCgoKCgoNCgoNJiEmISYVAhUEAgQVBAQVBAQE
        FQQCBAQUFBQCCQgMDDkMCBMIDAgTCAgTCBMTCAwTCAkUAiIJFCMVFQQCBAIEBAIEBAIEEgQEFSId
        HR0dHQQOEhIOBAQSAAAAYA0uDSAuDQoNCg0KDQoKCg0PDw8LBhAQBgsLDxAQEAYPEA8YFxcXGhga
        GBs2GioqGREwGiwaGBcXLBgXFxgGCxALBhAGEAYGEAYGBgsLBgYGHQIODg4OAhIbDhISGxISNQAA
        AGANDS4KDQoNDQ0KDQ0NDQ0KDw8PDwYLBgYGDwYLBgYGCwsGGhcaKhcYGhcqKjAaERERGBoqLBgY
        FxoXGhcrCw8PDwsGCwYLEA8GCwYQEAsQBA4EAhsEAhIbEgQnGxIbGxIAAABgCg0KDQ0NCgoKDQoK
        CgoKDQ0PDwYGEAsPDwsPDwsPBgYGCxAPFxcaFxcYGBoYKhEZESoaFywaGhgqFxcYEAYGEBAPMzgP
        BgYrBhALEAYLBgIODg4EDg4EAhsbEg4SAhIOAAAAYAoNCiAgCgoKCgoKDQoNCgoKDQoPDzMGBhAQ
        DwYGBgsGBgYQBjMXFxoaGhcqERERGRERERgYLBgaFxgGCwsLBgYLEAYQBg8QDwYGBg8GHRIODgIb
        Dg4ODgQSGwQEDhsSGwAAAGAKCg0NDQ0KCg0KDQoNCgoNCg0KDw8PCw8LBhALECsGBgYLDwYGCysY
        GBcYESARIBEgIBEgFxgXFxcXCxAGCwsQEAsLCwYLBhAGKwsGHRUnDgIbEicSGxIbGxIOGwQSEhsA
        AABgLiAuDS4NDQ0KDQ0KCg0KDSEKDQ0PDw8LBg8GBgYQBhAPDwYLBgYGGhcXGBERGRERERE0ERoY
        FxcXBgYGCwYGCxAGBhAGBgYLBgYGBgQCEhIOBBsSAgIbBBISGxIbEgQSAAAAYAogLgoNIAoKCg0N
        CgoNCg0NCg0NDAoPDwYGBgsGDwYGCwYLBgYQBgsXERERES4RERkRESAgEQYGBgYLEAYQBgYLCw8P
        BgsLEAYQBAQCGwISDhIONQ4bEhsbEhsbEhIbEgAAAGAKCgogCi4NDSAKCgoNCg0KCg0KCgoNDw8P
        Dw8PCw8QEAYLDwYPCwYGEREZIBERGRERIBkRERERDxAGBgsQBgsLCxAGBhAGBg8LFQIODhIOAicO
        Eg4SBA4SEhsSEhIbEhIAAABgEhISCiAKIC4KDQ0KCg0KDQ0KDQ0KIQoPDwsGKwsGBgsGCw8QDwsL
        BhkZERE0EREZIBERICAgERALCxAGCwYQEBAGEAYLCxALBg4EDg4CJw4OEg41DhsSGxsSJxIbIC4K
        AAAAYBISEgoKCg0NCg0NCg0NCg0NCiEKDQoKDQoPDw8PCwYGCw8GDwYGNBE0EREgESAgNBEgETQZ
        EREZNAYQBhAGCxALBgsPEAYLCx0OAgICDgICDg4ODgQOEg4EDhISDgoKDQAAAAE=




        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        No exception
        ACTUAL -
        ArrayOutOfBoundsException

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9216
                at com.sun.imageio.plugins.bmp.BMPImageReader.decodeRLE8(BMPImageReader.java:1432)
                at com.sun.imageio.plugins.bmp.BMPImageReader.readRLE8(BMPImageReader.java:1357)
                at com.sun.imageio.plugins.bmp.BMPImageReader.read(BMPImageReader.java:805)
                at javax.imageio.ImageIO.read(ImageIO.java:1422)
                at javax.imageio.ImageIO.read(ImageIO.java:1282)
                at TestBMPImageReader.main(TestBMPImageReader.java:14)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------

        import java.io.File;
        import java.io.IOException;
        import javax.imageio.ImageIO;
        public class TestBMPImageReader {

            /**
             * @param args
             */
            public static void main(String[] args) {
                try {
                    ImageIO.read(new File("rle8.bmp"));
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
        }

        ---------- END SOURCE ----------

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                pnarayanan Prahalad Kumar Narayanan (Inactive)
                Reporter:
                igor Igor Nekrestyanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: