[PCBC-191] Segfault on malformed argument in setMulti() Created: 01/Feb/13  Updated: 02/Apr/13  Resolved: 02/Apr/13

Status: Resolved
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: 1.1.2
Fix Version/s: 1.1.4
Security Level: Public

Type: Bug Priority: Major
Reporter: Juan Simon Assignee: Trond Norbye
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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

The issue can be replicated with the following script:

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.

Comment by Trond Norbye [ 02/Apr/13 ]
Generated at Thu Oct 02 00:22:01 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.