From: Milan Broz Date: Tue, 23 Jul 2013 20:07:13 +0000 (+0200) Subject: Fix sscanf cipher string and avoid warning wih -fsanitize=address. X-Git-Tag: upstream/1.6~10 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fcryptsetup.git;a=commitdiff_plain;h=cfeaaa02fc50f7cab28c91f78d0f2da809bc0be1 Fix sscanf cipher string and avoid warning wih -fsanitize=address. Code need to count terminating zero. --- diff --git a/lib/utils_crypt.h b/lib/utils_crypt.h index 3026a7d..22bd901 100644 --- a/lib/utils_crypt.h +++ b/lib/utils_crypt.h @@ -26,7 +26,7 @@ #include #define MAX_CIPHER_LEN 32 -#define MAX_CIPHER_LEN_STR "32" +#define MAX_CIPHER_LEN_STR "31" #define MAX_KEYFILES 32 struct crypt_device;