Skip to content

Commit

Permalink
Merge pull request #10154 from intelfx/work/fix-null-deref
Browse files Browse the repository at this point in the history
libfetchers/git: fix UB due to invalid usage of unique_ptr
  • Loading branch information
thufschmitt authored Mar 5, 2024
2 parents 82d7d74 + 651e627 commit 584d64b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfetchers/git-utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ struct GitInputAccessor : InputAccessor
i = lookupCache.emplace(path, std::move(entry)).first;
}

return &*i->second;
return i->second.get();
}

git_tree_entry * need(const CanonPath & path)
Expand Down

0 comments on commit 584d64b

Please sign in to comment.