Add a few tainted data info for coverity to avoid warnings.

If sysconf is lying, then anything can happen.
But check for overflow anyway.

Device/partition offset overflow for IV can only cause
bad decryption (expected).
This commit is contained in:
Milan Broz
2024-01-17 10:41:31 +01:00
parent b048a417b7
commit cac3184da3
2 changed files with 19 additions and 8 deletions

View File

@@ -281,6 +281,7 @@ uint64_t crypt_dev_partition_offset(const char *dev_path)
&val, "start"))
return 0;
/* coverity[tainted_data_return:FALSE] */
return val;
}