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

get_gpa_access_state: avoid returning dangling reference #163

Merged
merged 1 commit into from
Sep 2, 2024

Commits on Sep 2, 2024

  1. get_gpa_access_state: avoid returning dangling reference

    Previously, VmFd::get_gpa_access_state returned a dangling
    reference (in the form of a raw pointer) to a vector that was
    allocated and freed during the function call.  This commit modifies it
    to instead return the vector directly, since no other information is
    required by its only consumer (VmFd::get_dirty_log).
    
    Signed-off-by: Lucy Menon <168595099+syntactically@users.noreply.github.com>
    syntactically committed Sep 2, 2024
    Configuration menu
    Copy the full SHA
    7551cf1 View commit details
    Browse the repository at this point in the history