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

Commit b2a32cb9 authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru Committed by Android Git Automerger
Browse files

am 8fb0caa7: Merge "config_mbr: Fix integer overflow"

* commit '8fb0caa7':
  config_mbr: Fix integer overflow
parents 018227f5 8fb0caa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -152,7 +152,7 @@ mk_ext_pentry(struct disk_info *dinfo, struct part_info *pinfo, uint32_t *lba,


    /* we are going to write the ebr at the current LBA, and then bump the
    /* we are going to write the ebr at the current LBA, and then bump the
     * lba counter since that is where the logical data partition will start */
     * lba counter since that is where the logical data partition will start */
    item->offset = (*lba) * dinfo->sect_size;
    item->offset = ((loff_t)(*lba)) * dinfo->sect_size;
    (*lba)++;
    (*lba)++;


    ebr = (struct pc_boot_record *) &item->data;
    ebr = (struct pc_boot_record *) &item->data;