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

Initialize reallocated memory in gvm_hosts_add (20.08) #524

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

timopollmeier
Copy link
Member

What:
If the array memory for the hosts is reallocated, the new memory is
initialized with all \0 bytes.

This is a backport of #520.

Why:
This ensures the array is correctly terminated when gvm_hosts_fill_gaps
is called when excluding hosts.

How:

Checklist:

If the array memory for the hosts is reallocated, the new memory is
initialized with all \0 bytes.
This ensures the array is correctly terminated when gvm_hosts_fill_gaps
is called when excluding hosts.

This is a backport of greenbone#520.
@timopollmeier timopollmeier requested a review from a team June 18, 2021 09:51
@timopollmeier timopollmeier changed the title Initialize reallocated memory in gvm_hosts_add Initialize reallocated memory in gvm_hosts_add (20.08) Jun 18, 2021
@y0urself y0urself enabled auto-merge June 18, 2021 10:10
@y0urself y0urself merged commit 4c4713a into greenbone:gvm-libs-20.08 Jun 18, 2021
@timopollmeier timopollmeier deleted the hosts-fix-20.08 branch October 15, 2021 12:31
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.

2 participants