Skip to content

[BUG] Getting error "plaintext_len: substring expression < 0" on MacOS #2780

Closed
@rbetjes

Description

@rbetjes

Before you open an issue please check which version you are running and whether it is the latest in stable / dev branch

I am running version commit 388f3a3 but I also tested with tag V3.2.0

Before you open an issue please whether this is a known problem by searching the issues

Couldn't find anything

Command line / docker command to reproduce

./testssl.sh -f google.com

Expected behavior

I would expect to not see the error "./testssl.sh: line 14257: plaintext_len: substring expression < 0"

Your system (please complete the following information):

  • OS: MacOS Sonoma 14.6.1
  • Platform: Darwin 23.6.0 x86_64
  • OpenSSL + bash: Using OpenSSL 1.0.2-bad (Sep 3 2022) [~183 ciphers]

Additional context

The Bash version in MacOS does not support negative substring lengths.
I've already created a very simple fix for this, could create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions