Fix archive backend crash (#475)

* Fix archive backend

* Fix overflow bug + add workflow

* Potential fix for pull request finding 'CodeQL / Workflow does not contain permissions'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix lint

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
DecDuck
2026-08-21 10:20:14 +10:00
committed by GitHub
co-authored by Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent e654cdf52e
commit c5a70e6801
4 changed files with 62 additions and 3 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ impl DropServer {
{
let mut mutex_lock = self.write_stream.lock().await;
mutex_lock.write(&buf.len().to_le_bytes()).await?;
mutex_lock.write_all(&buf.len().to_le_bytes()).await?;
mutex_lock.write_all(&buf).await?;
};