Skip to content

Commit

Permalink
Revert "Check that chunk metadata size is accurate"
Browse files Browse the repository at this point in the history
This reverts commit e39841a. this is
incorrect behavior, chunk_len refers to the actual length of the chunk,
not the encrypted length
  • Loading branch information
billyb2 committed Jun 10, 2024
1 parent 2a83c0b commit d30ecce
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,6 @@ async fn handle_upload_chunk<M: MetaDB + 'static, C: ChunkDB + 'static>(

let user_id = get_user_id(token).unwrap();

if chunk_metadata.size != chunk.len() as u32 {
todo!("Deny uploads with size != chunk.len()");
}

// 8MiB(?)
if chunk_metadata.size > 1024 * 1024 * 8 {
todo!("Deny uploads larger than our max chunk size");
Expand Down

0 comments on commit d30ecce

Please sign in to comment.