Blame SOURCES/libpwquality-1.2.3-generate-buf.patch

de993b
diff -up libpwquality-1.2.3/src/generate.c.generate-buf libpwquality-1.2.3/src/generate.c
de993b
--- libpwquality-1.2.3/src/generate.c.generate-buf	2012-08-07 12:20:31.000000000 +0200
de993b
+++ libpwquality-1.2.3/src/generate.c	2017-11-15 11:16:50.954530937 +0100
de993b
@@ -100,7 +100,7 @@ consume_entropy(char *buf, int bits, int
de993b
 int
de993b
 pwquality_generate(pwquality_settings_t *pwq, int entropy_bits, char **password)
de993b
 {
de993b
-        char entropy[PWQ_MAX_ENTROPY_BITS/8 + 1];
de993b
+        char entropy[(PWQ_MAX_ENTROPY_BITS+PWQ_MAX_ENTROPY_BITS/9)/8 + 2];
de993b
         char *tmp;
de993b
         int maxlen;
de993b
         int try = 0;