Git Product home page Git Product logo

Comments (4)

pokowaka avatar pokowaka commented on June 12, 2024

Thanks! Do you happen to have a pull request with the change by any chance?

from jwt-cpp.

pietercardoen avatar pietercardoen commented on June 12, 2024

I never did that but I took time to read how to do it. Pull request is done ;).

from jwt-cpp.

goktan avatar goktan commented on June 12, 2024

As a user of jwt-cpp, I was just passing by and checked out the PR. I can confirm it solves the leak on productive code. Also I'd suggest having following (or similar) change in the test code so the test output also stays clean at valgrind.

diff --git a/test/validators/validators_factory_test.cpp b/test/validators/validators_factory_test.cpp
index 87e6ac9..1cfa951 100644
--- a/test/validators/validators_factory_test.cpp
+++ b/test/validators/validators_factory_test.cpp
@@ -217,7 +217,7 @@ TEST(parse_test, accepts_multiple_types) {
""key1" : { "HS256" : { "secret" : "key1" } }, "
""key3" : { "HS512" : { "secret" : "key3" } } "
"} }";

  • ASSERT_NO_THROW(MessageValidatorFactory::Build(json));
  • ASSERT_NO_THROW(std::unique_ptr(MessageValidatorFactory::Build(json)));
    }

TEST(parse_test, rsa_not_in_pem_format) {

from jwt-cpp.

pokowaka avatar pokowaka commented on June 12, 2024

@goktan Would you mind sharing your patch as a pull request?

from jwt-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.