[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4] Support to disable reed-solomon codes
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: [PATCH v4] Support to disable reed-solomon codes |
Date: |
Tue, 10 Dec 2013 00:23:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
> + /* Round up to the nearest sector boundary, and zero the extra memory */
> core_img = realloc (core_img, nsec * GRUB_DISK_SECTOR_SIZE);
> + assert (core_img && (nsec * GRUB_DISK_SECTOR_SIZE >= core_size));
Can you change that to xrealloc while on it?
Other than this, go ahead.
signature.asc
Description: OpenPGP digital signature