Use the correct maximum indent
authorKurt Roeckx <kurt@roeckx.be>
Fri, 20 Sep 2019 18:26:42 +0000 (20:26 +0200)
committerKurt Roeckx <kurt@roeckx.be>
Sat, 21 Sep 2019 08:59:13 +0000 (10:59 +0200)
Found by OSS-Fuzz

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
GH: #9959
(cherry picked from commit a6105ef40d65b35818f2b8ae8ca9e57ca6956d1d)

crypto/bio/b_dump.c

index 0d06414e7d912f9465845d0e73ac2e3d7246fed5..45f1c523ce5ba5bc42216c27d7a4c813e12cb196 100644 (file)
@@ -36,8 +36,8 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
 
     if (indent < 0)
         indent = 0;
-    else if (indent > 128)
-        indent = 128;
+    else if (indent > 64)
+        indent = 64;
 
     dump_width = DUMP_WIDTH_LESS_INDENT(indent);
     rows = len / dump_width;