Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1631

Add short circuits in CharSequenceUtils if a character is not defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.12.0
    • lang.*
    • None

    Description

       

      Crash when the the char to be searched value it's out of range >=  '\u0000' <= '\uFFFF'

       Getting the next error -->

       

      java.lang.IllegalArgumentException: Not a valid Unicode code point: 0xFFFFF936

       

       

      Basically the problem is that when it is verified that the character to search is less than MIN_SUPPLEMENTARY_CODE_POINT, the search is not exited of the loop. It continues searching but this time values less than or equal to Character.MAX_CODE_POINT

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arturobernalg Arturo Bernal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m