Skip to content

ts: refactor decoding DER#1045

Open
rhenium wants to merge 2 commits intoruby:masterfrom
rhenium:ky/ts-d2i-avoid-reuse
Open

ts: refactor decoding DER#1045
rhenium wants to merge 2 commits intoruby:masterfrom
rhenium:ky/ts-d2i-avoid-reuse

Conversation

@rhenium
Copy link
Copy Markdown
Member

@rhenium rhenium commented Apr 29, 2026

Do not rely on the "reuse" behavior of d2i_*{,_bio}() functions which has been discouraged in the man page. This also fixes a potential memory leak reported in #1011.

rhenium added 2 commits April 30, 2026 01:41
The man page discourages the use of this behavior. This also fixes a
potential memory leak reported at
<ruby#1011>.
Also, avoid using the "reuse" behavior of d2i_*{,_bio}() functions.
@rhenium rhenium force-pushed the ky/ts-d2i-avoid-reuse branch from 8efe057 to 0b7debd Compare April 29, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory leak due to incomplete error handling when d2i_TS_RESP_bio() fails

1 participant