Nick Craig-Wood
18fa445ffc
compress: fix corrupted objects being created when the source ends early
...
When the source supplied fewer bytes than its declared size, the
compressed data file was stored under a name containing the declared
size while the metadata recorded the actual number of bytes read.
NewObject looks the data file up by the size in the metadata, so the
resulting object could never be read again, and the upload reported
success.
Check that the number of bytes read matches the declared size after
uploading the data and before writing the metadata, and remove the
data file and return an error if it does not.
This was found by the new FsPutShortEOF integration test.
2026-08-03 20:58:14 +01:00
..
2024-08-08 13:41:31 +01:00
2026-05-01 13:41:07 +01:00
2026-07-31 13:21:59 +01:00
2026-08-01 00:41:46 +01:00
2026-07-14 14:13:49 +01:00
2026-03-03 14:01:11 +00:00
2025-11-18 16:09:06 +00:00
2026-07-12 13:26:17 +01:00
2025-06-12 18:31:01 +01:00
2026-05-06 17:47:53 +01:00
2026-07-16 14:47:03 +01:00
2026-08-03 20:58:14 +01:00
2025-11-27 14:42:11 +00:00
2026-01-18 20:48:33 +01:00
2026-07-27 12:27:02 +01:00
2026-08-03 17:50:37 +01:00
2026-08-03 20:58:14 +01:00
2024-09-06 18:20:10 +01:00
2025-02-28 11:31:14 +00:00
2026-06-08 11:54:43 +01:00
2026-07-13 11:22:04 +01:00
2026-07-14 14:13:49 +01:00
2026-07-31 13:21:59 +01:00
2025-05-27 14:28:25 +01:00
2025-12-01 19:04:02 +00:00
2026-07-07 12:35:37 +01:00
2026-07-13 10:44:03 +01:00
2026-07-13 13:53:29 +01:00
2026-07-14 14:13:49 +01:00
2026-05-11 11:05:22 +01:00
2026-05-24 19:57:31 +01:00
2026-07-29 20:25:57 +01:00
2026-07-17 18:29:39 +01:00
2025-09-04 10:37:27 +01:00
2026-07-10 11:01:57 +01:00
2026-07-14 14:13:49 +01:00
2025-06-24 15:04:45 +01:00
2026-07-17 18:29:39 +01:00
2026-07-31 13:21:59 +01:00
2026-07-13 13:49:11 +01:00
2026-07-20 17:37:16 +01:00
2025-12-17 10:21:12 +00:00
2026-07-14 14:13:49 +01:00
2026-07-28 17:33:55 +01:00
2026-07-17 18:29:39 +01:00
2026-07-30 19:30:08 +01:00
2026-07-14 14:16:19 +01:00
2026-04-20 12:16:10 +01:00
2026-02-18 12:11:52 +00:00
2026-07-14 14:13:49 +01:00
2025-07-31 11:38:51 +01:00
2026-07-14 14:13:49 +01:00
2026-07-17 18:29:39 +01:00
2025-04-08 15:14:00 +01:00
2026-07-14 14:13:49 +01:00
2026-07-31 13:21:59 +01:00
2026-07-09 17:50:26 +01:00
2026-07-31 13:21:59 +01:00
2026-07-30 14:41:09 +01:00
2026-02-18 12:11:52 +00:00
2025-02-28 11:31:14 +00:00
2026-08-03 17:52:23 +01:00
2024-04-22 19:29:12 +02:00
2026-05-06 10:51:16 +01:00
2026-07-02 11:30:15 +01:00
2026-07-17 18:29:39 +01:00
2025-09-14 15:58:20 +01:00
2026-07-31 13:21:59 +01:00
2026-07-30 20:01:18 +01:00
2026-07-16 18:12:00 +01:00