Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14579

Various RESP commands are requesting wrong size for buffer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 15.0.0.Dev01, 14.0.8.Final
    • 14.0.0.Final
    • RESP
    • None

    Description

      Various RESP commands will request a buffer a given size. However, due to some typos these values are not always correct. This can cause reallocations in worst case where the memory region may be only large enough for the given requested size but border another used block.

      We should add assertions to verify these are all the correct sizes.

      Also we should change to ASCII charset when writing CharSequence as the characters are always guaranteed to be in the 0-127 byte range. Note that user input should still be assumed to be UTF-8 though to be safe.

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: