Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-716

incorrect buffer-size calculation in XalanUTF16Writer.hpp

    XMLWordPrintableJSON

Details

    Description

      There's a bug in the current buffer-size determination of XalanUTF16Writer.hpp in the first if of the write(const value_type*,size_type) function. When this write function is called with a to-be-written string that happens to have a length that is exactly the sizeof kBufferSize (or larger) then our application crashes.

      Attachments

        1. XalanUTF16Writer.hpp.patch
          0.3 kB
          Martin Elzen

        Activity

          People

            minchau@ca.ibm.com Brian Minchau
            martin elzen Martin Elzen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: