Ensure partitions are at least 1 block in size

delta_generator rounds down source partitions to multiples of block
size. If the source image is < 1 block(4K), it will be rounded to 0.
Ensure that we round down partitions to >= 4K.

Test: th
Bug: 297980845
Change-Id: Idc1aeb7d6a5e2ed539c129a53b732435218a1a65
diff --git a/payload_generator/generate_delta_main.cc b/payload_generator/generate_delta_main.cc
index 5f0c9d2..9afa805 100644
--- a/payload_generator/generate_delta_main.cc
+++ b/payload_generator/generate_delta_main.cc
@@ -470,7 +470,7 @@
     if (part.path.empty()) {
       continue;
     }
-    const auto size = utils::FileSize(part.path);
+    const auto size = std::max<size_t>(utils::FileSize(part.path), kBlockSize);
     if (size % kBlockSize != 0) {
       const auto err =
           truncate(part.path.c_str(), size / kBlockSize * kBlockSize);