Skip to content

Comments

Fix memory leak in d2i_ASN1_OBJECT.#14952

Closed
slontis wants to merge 1 commit intoopenssl:masterfrom
slontis:d2i_ASN1_OBJECT_leak_fix_master
Closed

Fix memory leak in d2i_ASN1_OBJECT.#14952
slontis wants to merge 1 commit intoopenssl:masterfrom
slontis:d2i_ASN1_OBJECT_leak_fix_master

Conversation

@slontis
Copy link
Member

@slontis slontis commented Apr 21, 2021

Fixes #14667

Added fix supplied by @levitte in PR #14938
Reworked test supplied by @smcpeak into a unit test.

Tested via valgrind before and after the fix was added.

@levitte I just created a separate PR that was based against master branch (not 111).

Checklist
  • documentation is added or updated
  • tests are added or updated

Fixes openssl#14667

Added fix supplied by @levitte in PR openssl#14938
Reworked test supplied by @smcpeak into a unit test.
@slontis slontis added branch: master Applies to master branch approval: review pending This pull request needs review by a committer labels Apr 21, 2021
@slontis slontis requested a review from levitte April 21, 2021 03:58
@paulidale paulidale added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Apr 21, 2021
@levitte
Copy link
Member

levitte commented Apr 21, 2021

Are you saying we should not have the test in 1.1.1?

@slontis
Copy link
Member Author

slontis commented Apr 21, 2021

Are you saying we should not have the test in 1.1.1?

I don't mind either way... Kill this PR and add the test to your PR if you want.

@levitte
Copy link
Member

levitte commented Apr 21, 2021

Kill this PR and add the test to your PR if you want.

Okie.

@levitte
Copy link
Member

levitte commented Apr 21, 2021

Now cherry-picked. Thanks for coding that test!

@levitte levitte closed this Apr 21, 2021
@slontis
Copy link
Member Author

slontis commented Apr 21, 2021

Thanks @smcpeak for supplying a testcase - it makes it much easier to add a test when someone goes to the trouble of doing that..

@smcpeak
Copy link
Contributor

smcpeak commented Apr 21, 2021

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

d2i_ASN1_OBJECT leaks the 'sn' and 'ln' fields of ASN1_OBJECT

4 participants