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

SASLPrep declares that u2070E is private use

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.16
    • Fix Version/s: 2.0.17, 3.0.0 PDFBox
    • Component/s: Crypto
    • Labels:
      None

      Description

      As reported by [~tallison@apache.org] in related issue. This is a typo in the SASLprep codeĀ 

      https://tools.ietf.org/html/rfc3454#appendix-C.3

         ----- Start Table C.3 -----
         E000-F8FF; [PRIVATE USE, PLANE 0]
         F0000-FFFFD; [PRIVATE USE, PLANE 15]
         100000-10FFFD; [PRIVATE USE, PLANE 16]
         ----- End Table C.3 -----
      

      The code is:

              return 0xE000 <= codepoint && codepoint <= 0xF8FF
                      || 0xF000 <= codepoint && codepoint <= 0xFFFFD
                      || 0x100000 <= codepoint && codepoint <= 0x10FFFD;
      

      He missed a "0" in the second line

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                tilman Tilman Hausherr
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: