提交 c8d66837 编写于 作者: K Kurt Roeckx

Use the correct maximum indent

Found by OSS-Fuzz
Reviewed-by: NRichard Levitte <levitte@openssl.org>
Reviewed-by: NPaul Dale <paul.dale@oracle.com>

GH: #9959
(cherry picked from commit a6105ef40d65b35818f2b8ae8ca9e57ca6956d1d)
上级 58f0a4f1
...@@ -36,8 +36,8 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u), ...@@ -36,8 +36,8 @@ int BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),
if (indent < 0) if (indent < 0)
indent = 0; indent = 0;
else if (indent > 128) else if (indent > 64)
indent = 128; indent = 64;
dump_width = DUMP_WIDTH_LESS_INDENT(indent); dump_width = DUMP_WIDTH_LESS_INDENT(indent);
rows = len / dump_width; rows = len / dump_width;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册