Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-295

Buffers and String offsets not updated when writing length

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • JDG 7.0.0 ER5
    • JDG 7.0.0 ER4
    • HotRod JS client
    • None

    Description

      When encoding a String, there's a chance that there's a need to extend the size of the buffer if the String won't fit the buffer. However, when calculating whether extending is required, only the String size is counted without counting the num bytes counter at the start. As a result of that, a String might end up being truncated and lead to operation hanging up.

      This happened in executing a Script where the number of bytes sent as message ID was bigger than 27 and the script name being executed was exactly 23 characters.

      The actual problem is that after writing the length of String or Buffers, the offset of the underlying buffer is not being updated and hence it could end up truncating data.

      Attachments

        Activity

          People

            amanukya@redhat.com Anna Manukyan
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: