Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3308

Missing endOfName chars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.11, 2.0.0, 2.0.1, 3.0.0 PDFBox
    • 1.8.12, 2.0.1, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      I came across a document that was using a null char 0x00 as array items separator and it wasn't handled correctly. According to chapter 7.2.2 The White-space characters shown in Table 1 separate syntactic constructs such as names and numbers from each other. and Table 1 contains NUL, HT, LF, FF, CR, SP.
      BaseParser::isEndOfName is missing NUL and FF, as a result, if you parse the array

      [/Indexed /DeviceRGB 255 <000000>]

      where /DeviceRGB and 255 are separated by NUL, and you write it back you get

      [/Indexed /DeviceRGB#00255 <000000>]

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            torakiki Andrea Vacondio
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: