mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
Fix some anoying gcc buffer size warnings.
This commit is contained in:
@@ -457,7 +457,7 @@ static int cipher_c2dm(const char *org_c, const char *org_i, unsigned tag_size,
|
||||
static int cipher_dm2c(char **org_c, char **org_i, const char *c_dm, const char *i_dm)
|
||||
{
|
||||
char cipher[CLEN], mode[CLEN], iv[CLEN], auth[CLEN];
|
||||
char tmp[CAPIL], capi[CAPIL];
|
||||
char tmp[CAPIL*2], capi[CAPIL];
|
||||
size_t len;
|
||||
int i;
|
||||
|
||||
@@ -523,7 +523,7 @@ static char *get_dm_crypt_params(struct crypt_dm_active_device *dmd, uint32_t fl
|
||||
{
|
||||
int r, max_size, null_cipher = 0, num_options = 0, keystr_len = 0;
|
||||
char *params, *hexkey;
|
||||
char sector_feature[32], features[256], integrity_dm[256], cipher_dm[256];
|
||||
char sector_feature[32], features[512], integrity_dm[256], cipher_dm[256];
|
||||
|
||||
if (!dmd)
|
||||
return NULL;
|
||||
|
||||
@@ -1829,7 +1829,7 @@ int LUKS2_activate(struct crypt_device *cd,
|
||||
.sector_size = crypt_get_sector_size(cd)
|
||||
}
|
||||
};
|
||||
char dm_int_name[PATH_MAX], dm_int_dev_name[PATH_MAX];
|
||||
char dm_int_name[512], dm_int_dev_name[PATH_MAX];
|
||||
struct device *device = NULL;
|
||||
|
||||
/* do not allow activation when particular requirements detected */
|
||||
|
||||
Reference in New Issue
Block a user