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

bad comparison of byte with 128

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.2 PDFBox
    • 3.0.3 PDFBox, 4.0.0
    • PDModel
    • None

    Description

      inspection by spotbugs shows a problem in o.a.padfbox.pdmodel.font.FontFactory line 285:

      the partial expression header[0] == 0x80 && ...

      is always false. The code should be{{ header[0] == (byte) 0x80 && ...}}

       

       

      Attachments

        Activity

          People

            tilman Tilman Hausherr
            dvonholten Dieter von Holten
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: