mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Add comment to validation code.
This commit is contained in:
@@ -382,6 +382,7 @@ static bool validate_intervals(struct crypt_device *cd,
|
||||
int j, i = 0;
|
||||
|
||||
while (i < length) {
|
||||
/* Offset cannot be inside primary or secondary JSON area */
|
||||
if (ix[i].offset < 2 * metadata_size) {
|
||||
log_dbg(cd, "Illegal area offset: %" PRIu64 ".", ix[i].offset);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user