mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user