diff options
author | Matt Caswell <matt@openssl.org> | 2017-03-10 11:51:35 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-12 01:19:14 +0100 |
commit | 8a585601fea1091022034dd14b961c1ecd5916c3 (patch) | |
tree | 89aabb7a9041e1c7cd13a87265551adb6b469581 /fuzz | |
parent | Handle find-doc-nits script rename (diff) | |
download | openssl-8a585601fea1091022034dd14b961c1ecd5916c3.tar.xz openssl-8a585601fea1091022034dd14b961c1ecd5916c3.zip |
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 <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2894)
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 b/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 new file mode 100644 index 0000000000..b0ed1912b2 --- /dev/null +++ b/fuzz/corpora/conf/0d7ad6e04c0235cdc590756ceec867a05cff5823 @@ -0,0 +1,41 @@ +=;2I8 +=$$$$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ += +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$ +=$$$ +=$$$$$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$ +=$$$$$
\ No newline at end of file |