Re: [PATCH v2] grub-core/disk/cryptodisk.c: Fix unintentional integer overflow

2022-10-17 Thread Daniel Kiper
On Sat, Oct 15, 2022 at 11:13:09AM +0200, Patrick Steinhardt wrote: > On Fri, Oct 14, 2022 at 05:47:08PM -0400, Alec Brown wrote: > > In the function grub_cryptodisk_endecrypt(), a for loop is incrementing the > > variable i by (1U << log_sector_size). The variable i is of type grub_size_t > > whic

Re: [PATCH v2] grub-core/disk/cryptodisk.c: Fix unintentional integer overflow

2022-10-15 Thread Patrick Steinhardt
On Fri, Oct 14, 2022 at 05:47:08PM -0400, Alec Brown wrote: > In the function grub_cryptodisk_endecrypt(), a for loop is incrementing the > variable i by (1U << log_sector_size). The variable i is of type grub_size_t > which is a 64-bit unsigned integer on x86_64 architecture. On the other hand, >