镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Menacing thread safety comment in node_crypto.cc #21488

Closed

Description

@TimothyGu

node/src/node_crypto.cc

Lines 2157 to 2160 in a40e062

// XXX(bnoordhuis) X509_verify_cert_error_string() is not actually thread-safe
// in the presence of invalid error codes. Probably academical but something
// to keep in mind if/when node ever grows multi-isolate capabilities.
const char* reason = X509_verify_cert_error_string(x509_verify_error);

Now that we have workers, the scenario described in the comment is here. Do we need to do anything about it? Or can we just change the comment to a simple note rather a XXX?

/cc @addaleax @bnoordhuis

Activity

  1. added
    cryptoIssues and PRs related to the crypto subsystem.
    workerIssues and PRs related to the worker_threads module and Worker API.
    on Jun 23, 2018
  2. bnoordhuis commented on Jun 23, 2018

    @bnoordhuis
    Member

    This was actually fixed in openssl/openssl@c0a445a9f27. The comment is obsolete and can be removed.

  3. added a commit that references this issue on Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cryptoIssues and PRs related to the crypto subsystem.workerIssues and PRs related to the worker_threads module and Worker API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions