validUTF8 doesn't catch all invalid UTF8

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • ALL
    • Hide

      To reproduce, run validUTF8 on the following:

      • overlong encodings: "\xc0\x80"
      • surrogate pairs: "\xed\xa0\x80"
      • bytes > 0xF4: "\xF5\x80\x80\x80" // U+140000 > U+10FFFF

      this may allow for some invalid BSON to not be caught in validate

      Show
      To reproduce, run validUTF8 on the following: overlong encodings: "\xc0\x80" surrogate pairs: "\xed\xa0\x80" bytes > 0xF4: "\xF5\x80\x80\x80" // U+140000 > U+10FFFF this may allow for some invalid BSON to not be caught in validate
    • Execution Team 2024-08-05, Execution Team 2024-08-19
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Doesn't catch:

      • overlong encodings
      • surrogate pairs
      • bytes > 0xF4

       

              Assignee:
              Stephanie Eristoff
              Reporter:
              Stephanie Eristoff
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: