From 8a585601fea1091022034dd14b961c1ecd5916c3 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 10 Mar 2017 10:51:35 +0000 Subject: Fix out-of-memory condition in conf conf has the ability to expand variables in config files. Repeatedly doing this can lead to an exponential increase in the amount of memory required. This places a limit on the length of a value that can result from an expansion. Credit to OSS-Fuzz for finding this problem. Reviewed-by: Rich Salz Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/2894) --- .../conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 (limited to 'fuzz/corpora') diff --git a/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 b/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 new file mode 100644 index 0000000..b0ed191 --- /dev/null +++ b/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 @@ -0,0 +1,41 @@ +=;2I8 +=$$$$$$󠁉 +=$$$$$$$ +=$$$ +=$$$󠁷 +=$$$ +=$$$ +=$$$ += +=$$$ +=$$$ +=$$$󠁷 +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$ +=$$$ +=$$$$$$$ +=$$$ +=$󠁝$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$ \ No newline at end of file -- cgit v1.1