Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-27234

dcp_message_system_event incorrectly using addIov

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • master
    • couchbase-bucket, memcached
    • None
    • Untriaged
    • No

    Description

      The dcp_message_system_event function uses addIov for the event/key and buffer which are pointers to data in the dcp stream's readyQueue, soon as dcp_message_system_event returns to ep-engine, the data goes out of scope and memcached could then be pointing at invalid data.

      Should be converted to copy-out style as there's ref counting we can employ (without more work to expose the underlying system event item, but copying is ok as the data is small)

      Attachments

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

        Activity

          People

            trond Trond Norbye
            jwalker Jim Walker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty