projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5270f8
)
Fix sscanf cipher string and avoid warning wih -fsanitize=address.
author
Milan Broz
<gmazyland@gmail.com>
Tue, 23 Jul 2013 20:07:13 +0000
(22:07 +0200)
committer
Milan Broz
<gmazyland@gmail.com>
Tue, 23 Jul 2013 20:07:13 +0000
(22:07 +0200)
Code need to count terminating zero.
lib/utils_crypt.h
patch
|
blob
|
history
diff --git
a/lib/utils_crypt.h
b/lib/utils_crypt.h
index
3026a7d
..
22bd901
100644
(file)
--- a/
lib/utils_crypt.h
+++ b/
lib/utils_crypt.h
@@
-26,7
+26,7
@@
#include <unistd.h>
#define MAX_CIPHER_LEN 32
-#define MAX_CIPHER_LEN_STR "3
2
"
+#define MAX_CIPHER_LEN_STR "3
1
"
#define MAX_KEYFILES 32
struct crypt_device;