Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KaxBlock: don't reset potentially unallocated memory #23

Merged
merged 1 commit into from
May 19, 2019

Conversation

robUx4
Copy link
Contributor

@robUx4 robUx4 commented May 19, 2019

When using SCOPE_PARTIAL_DATA the GetBuffer()/Data pointer is never allocated.
If this exception occurs we must not write on NULL pointed data.

When the memory is allocated it doesn't have any use to reset the memory to 0
since SetValueIsSet(false) is called right before, invalidating the buffer.

When using SCOPE_PARTIAL_DATA the GetBuffer()/Data pointer is never allocated.
If this exception occurs we must not write on NULL pointed data.

When the memory is allocated it doesn't have any use to reset the memory to 0
since SetValueIsSet(false) is called right before, invalidating the buffer.
@robUx4 robUx4 added the bug label May 19, 2019
@robUx4 robUx4 requested a review from mbunkus May 19, 2019 08:07
@mbunkus mbunkus merged commit 120b7b1 into master May 19, 2019
@mbunkus
Copy link
Contributor

mbunkus commented May 19, 2019

This one's fine & tests OK for me. Thanks.

@robUx4 robUx4 deleted the fix-null-write branch May 19, 2019 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants