Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aa47338 authored by Daniel Zheng's avatar Daniel Zheng Committed by Gerrit Code Review
Browse files

Merge "Added check to copy AVB footer"

parents 5a2a3021 e33e8a86
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1197,7 +1197,8 @@ static uint64_t get_partition_size(const std::string& partition) {
}
}


static void copy_avb_footer(const std::string& partition, struct fastboot_buffer* buf) {
static void copy_avb_footer(const std::string& partition, struct fastboot_buffer* buf) {
    if (buf->sz < AVB_FOOTER_SIZE || is_logical(partition)) {
    if (buf->sz < AVB_FOOTER_SIZE || is_logical(partition) ||
        should_flash_in_userspace(partition)) {
        return;
        return;
    }
    }
    // If overflows and negative, it should be < buf->sz.
    // If overflows and negative, it should be < buf->sz.