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

Don't try to create a std::string out of a NIL pointer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:
      None
    • Environment:
      SmartOS

      Description

      When running SmartOS I got a coredump in strlen() called from one of the constructors creating a string out of a null pointer. According to my copy of the C++ specification the constructor with the char* requires the pointer to be a non-null value.

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

        Activity

        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-ep-engine-2-0 #481 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/481/)
        MB-7884: Don't creating a string from a NIL pointer (Revision e56a0d8eb857032885a9f6b598e7e5a01f73ea5e)

        Result = SUCCESS
        Trond Norbye :
        Files :

        • src/couch-kvstore/couch-kvstore.cc
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-ep-engine-2-0 #481 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/481/ ) MB-7884 : Don't creating a string from a NIL pointer (Revision e56a0d8eb857032885a9f6b598e7e5a01f73ea5e) Result = SUCCESS Trond Norbye : Files : src/couch-kvstore/couch-kvstore.cc

          People

          • Assignee:
            trond Trond Norbye
            Reporter:
            trond Trond Norbye
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes