Details
-
Bug
-
Resolution: Fixed
-
Major
-
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] = '
';
we provide the correct structure
$docs['TEST_DOC::' . $x] = '
';
It works ok, but the first shouldn't segfault.
Attachments
For Gerrit Dashboard: PCBC-191 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
25432,2 | PCBC-191 Don't coredump for invalid argument | master | php-ext-couchbase | Status: MERGED | +2 | +1 |
26109,2 | PCBC-227: Allow store of pure numeric keys | master | php-ext-couchbase | Status: MERGED | +2 | +1 |
26223,2 | Revert "PCBC-227: Allow store of pure numeric keys" | master | php-ext-couchbase | Status: MERGED | +2 | +1 |