Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-92937

validUTF8 doesn't catch all invalid UTF8

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 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

      Doesn't catch:

      • overlong encodings
      • surrogate pairs
      • bytes > 0xF4

       

            Assignee:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Reporter:
            stephanie.eristoff@mongodb.com Stephanie Eristoff
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: