Skip to content

At least one byte needs to be present for successful C / b decodes #2009

@mewejo

Description

@mewejo

Hi,

Upgraded from 3.0.37 to 3.0.38 and the following error is being thrown when connecting to an SSH server.

Rolling back to 3.0.37 fixes the issue. I had a quick look through the diff but couldn't see anything obvious. I was also able to log into the SSH server manually without issue.

LengthException: At least one byte needs to be present for successful C / b decodes in /var/www/vendor/phpseclib/phpseclib/phpseclib/Common/Functions/Strings.php:91
Stack trace:
#0 /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(1824): phpseclib3\Common\Functions\Strings::unpackSSH2()
#1 /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(1479): phpseclib3\Net\SSH2->key_exchange()
#2 /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2254): phpseclib3\Net\SSH2->connect()
#3 /var/www/vendor/phpseclib/phpseclib/phpseclib/Net/SSH2.php(2233): phpseclib3\Net\SSH2->sublogin()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions