Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
Description
The library should only try to use username and password overrides when they are not NULL.
The following code sample generates segfault on NULL dereference
<?php
|
|
$authenticator = new \Couchbase\ClassicAuthenticator();
|
$authenticator->cluster('Administrator', 'password');
|
|
$cluster = new \Couchbase\Cluster("http://127.0.0.1:8091");
|
$cluster->authenticate($authenticator);
|
$cluster->manager()->createBucket('my_bucket');
|
Attachments
For Gerrit Dashboard: PCBC-522 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
86938,3 | PCBC-522: Check username/password for NULL in Classic Authenticator | master | php-couchbase | Status: MERGED | +2 | +1 |