Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-344

NPE in PcxWriter for PCX without color palette (24-bit)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-alpha2
    • 1.0.0-alpha6
    • Format: PCX
    • None

    Description

      From: https://github.com/apache/commons-imaging/pull/273#pullrequestreview-1264740338

      A 24-bit PCX image has 8 bit per pixel and no color palette. The code is handling the parsing, but when you try to write it (as the roundtrip test does) it fails due to an access to the palette object in the PcxWriter (even though the palette is null/non-existent).

      Fix is really simple. But we must have a test case to prevent regressions.

      When fixing this one, we must also update the header of the Pcx classes to state the specification and version used, related to IMAGING-341

      Attachments

        Activity

          People

            Unassigned Unassigned
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: