Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-191

Segfault on malformed argument in setMulti()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.4
    • 1.1.2
    • None
    • Security Level: Public
    • None

    Description

      Providing a malformed array as a parameter to setMulti() results in "Segmentation fault (core dumped)"

      The issue can be replicated with the following script:
      https://gist.github.com/8a08980573d47c22aecc#file-seg_fault-php

      if instead of providing
      $docs[]['TEST_DOC::' . $x] = '

      {"a" : 1}

      ';
      we provide the correct structure
      $docs['TEST_DOC::' . $x] = '

      {"a" : 1}

      ';

      It works ok, but the first shouldn't segfault.

      Attachments

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

        Activity

          People

            trond Trond Norbye
            jsimon Juan Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty