diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2023-08-11 12:00:31 +0200 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2023-08-11 12:00:31 +0200 |
commit | 2e5096e4f0959cb2974a17fe50ad5ad891b2384f (patch) | |
tree | 3c5d6feb6263a5b7b6c1e46c9fe13b9802207522 /src/libutil/git.cc | |
parent | 1ffb26311b5d74e9f607ec31bee6c17bbae6fdae (diff) |
FileTransfer::download: fix use-after-move
std::move(state->data) and data.empty() were called in a loop, and
could run with no other threads intervening. Accessing moved objects
is undefined behavior, and could cause a crash.
Diffstat (limited to 'src/libutil/git.cc')
0 files changed, 0 insertions, 0 deletions