mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-06 00:10:04 +01:00
Fix sscanf cipher string and avoid warning wih -fsanitize=address.
Code need to count terminating zero.
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#define MAX_CIPHER_LEN 32
|
#define MAX_CIPHER_LEN 32
|
||||||
#define MAX_CIPHER_LEN_STR "32"
|
#define MAX_CIPHER_LEN_STR "31"
|
||||||
#define MAX_KEYFILES 32
|
#define MAX_KEYFILES 32
|
||||||
|
|
||||||
struct crypt_device;
|
struct crypt_device;
|
||||||
|
|||||||
Reference in New Issue
Block a user