Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3543

DefaultSerializer may fail when it encounters Unicode surrogate pairs on buffer boundaries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.4.13
    • 3.4.10, 3.4.11, 3.4.12
    • None
    • None
    • 0

    Description

      see https://www.couchbase.com/forums/t/problem-deserializing-documents-with-certain-characters-in-specific-positions/37299

      Exception: The output char buffer is too small to contain the decoded characters, encoding ‘Unicode (UTF-8)’ fallback ‘System.Text.DecoderReplacementFallback’.

      This is unlikely to occur as surrogate pairs in strings are rare and the buffer boundary is every 1023 characters. But it does affect all framework versions, not just .NET 4. This appears to have been introduced by NCBC-3421

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            btburnett3 Brant Burnett
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty