Skip to content

Comments

Fix undefined behavior/crash in GZipEncoder#1970

Merged
tatsuhiro-t merged 1 commit intoaria2:masterfrom
himikof:patch-2
Aug 25, 2022
Merged

Fix undefined behavior/crash in GZipEncoder#1970
tatsuhiro-t merged 1 commit intoaria2:masterfrom
himikof:patch-2

Conversation

@himikof
Copy link
Contributor

@himikof himikof commented Aug 24, 2022

When the output buffer is full, outbuf[produced] references past the buffer end, leading to UB and a possible assertion failure.
Fixes #1968, #1964

When the output buffer is full, outbuf[produced] references past the buffer end, leading to UB and a possible assertion failure.
Fixes aria2#1968, aria2#1964
@tatsuhiro-t tatsuhiro-t merged commit 8d5989d into aria2:master Aug 25, 2022
@tatsuhiro-t
Copy link
Collaborator

Thank you for PR. Merged now.

@tatsuhiro-t tatsuhiro-t added this to the v1.37.0 milestone Aug 25, 2022
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.

Crash when downloading on Fedora36

2 participants