mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Fix potential race condition on checksum.len
This commit is contained in:
parent
eb9e660d56
commit
03f498a5ed
1 changed files with 1 additions and 1 deletions
2
rzip.c
2
rzip.c
|
|
@ -718,8 +718,8 @@ static inline void hash_search(rzip_control *control, struct rzip_state *st,
|
|||
failure("Failed to malloc ckbuf in hash_search\n");
|
||||
control->do_mcpy(control, control->checksum.buf, cksum_limit, control->checksum.len);
|
||||
control->checksum.cksum = &st->cksum;
|
||||
cksum_update(control);
|
||||
cksum_limit += control->checksum.len;
|
||||
cksum_update(control);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue